PDA

View Full Version : Analog lines with no disconnect supervision



Carlos Galveias
02-24-11, 08:30 AM
In portugal we have some issues on analog lines, some providers have no disconnect supervision and that means that the line remains open , even if the remote hangs up. What we receive that indicates that there was a hangup is a polarity reversal.
So basically we have a polarity reversal for answer and one for hangup.

Some providers dont even send the hangup polarity reversal , so we do a busy detect to detect the "tut tut tut" when the remote hangs up and closes the circuit.

On zaptel, we just use the following settings:



answeronpolarityswitch=yes
hanguponpolarityswitch=yes
busydetect = yes

busycount = 10



On pika configuration files, i have not found identical settings and so in these providers analog lines wont work properly with your drivers (analog lines here are really bad).



Is there any solution for this?

Thanks

Carlos Galveias

mrecoskie
02-25-11, 11:41 AM
Hi Carlos,

The fields of interest are the 'answer' and 'disconnect' fields in the '/etc/pika/pikagp_aoh.cfg' file. The defaults used do not include polarity reversal so these fields will need to be modified in your case. You can include 'pr' (and 'tones' for disconnect) or use 'any' for both.

; The 'answer' key specifies the type of answer supervision to
; perform on the trunks. Multiple types, separated by a '|'
; (vertical bar) character can be specified. The following values
; may be specified:
;
; Value ... Description
; ----- -----------
; none ... No answer supervision is available.
; any ... Mark the call as answered when any of the predefined answer events (listed below) is detected.
; default ... Mark the call as answered when speech, sit tone or a fax (or modem) tone is detected.
; speech ... Mark the call as answered when speech is detected.
; sit ... Mark the call as answered when a SIT tone.is detected.
; fax ... Mark the call as answered when a fax (or modem) tone is detected.
; pr ... Mark the call as answered when a polarity reversal is detected in the proceeding state.
;
; The 'disconnect' key specifies the type of disconnect supervision
; to perform on the trunks. Multiple types, separated by a '|'
; (vertical bar) character can be specified. The following values
; may be specified:
;
; Value ... Description
; ----- -----------
; any ... Drop the call when any of the predefined disconnect events (listed below) is detected.
; default ... Drop the call when when an lcterm, or a call progress tone (dial tone, busy tone or reorder tone) is detected.
; lcterm ... Drop the call when a loop current drop of a sufficient duration is detected
; tones ... Drop the call when a call progress tone (dial tone, busy tone or reorder tone) is detected.
; pr ... Drop the call when a polarity reversal is detected while in the connected state.
;

mrecoskie
02-25-11, 12:00 PM
In terms of the busy signal, the default may also need to be modified for Portugal. From www.3amsystems.com (http://www.3amsystems.com), I can see the make/break for the busy and fastbusy tones are the following in Portugal:

Busy 0.5s on / 0.5s off
Busy (mobile) 0.36s on / 0.36s off
Fastbusy 0.2s on / 0.2s off


This can be configured in the '/etc/pika/inccpa.cfg' file. First add a second busy tone.

pattern4=cp_busy_mobile

...

[cp_busy_mobile]
type=2
tolerance=30
cadences=3
states=2
ignorestates=1
state0=360
state1=360

And then change the fastbusy to 200ms on / 200ms off.

[cp_fastbusy]
type=3
tolerance=30
cadences=3
states=2
ignorestates=1
state0=200
state1=200