[Asterisk-Users] In France asterisk never detect hang up. Why ?

Faris Raouf asterisk at raouf.net
Thu Nov 24 05:59:19 MST 2005


f6hqz-m at hamwlan.net wrote:
> Hello everybody  :-)
> 
> This are my first line french zapata.conf settings.
> I have 3 like this, with only rx/tx gain a little bit different levels.
> Running well.
> Best Regards,
> Francois BERGERET,
> France.
> 
> usecallerid=yes
> hidecallerid=no
> usecallingpres=yes
> callwaitingcallerid=yes
> threewaycalling=yes
> transfer=yes
> canpark=yes
> cancallforward=yes
> callreturn=yes
> echocancel=yes
> echocancelwhenbridged=yes
> echotraining=yes
> rxgain=2
> txgain=6
> group=1
> callgroup=1
> pickupgroup=1
> immediate=no
> busydetect=yes
> busycount=3
> busypattern=500,500
> signalling = fxs_ks
> channel => 1
> 
> -----Message d'origine-----
> De : asterisk-users-bounces at lists.digium.com
> [mailto:asterisk-users-bounces at lists.digium.com] De la part de asterisk user
> dupont
> Envoyé : vendredi 18 novembre 2005 13:33
> À : asterisk-users at lists.digium.com
> Objet : [Asterisk-Users] In France asterisk never detect hang up. Why ?
> 
> 
> Hello.
> 
> I am sorry my english is not good at all.
> 
> When i have a call from a fxo port of a tdm400p, asterisk waits one minute
> before detecting that the caller has hang up his phone.
> 
> I have in my extension conf :
> answer
> background  (the prompt is 40 second long)
> dial (on fxs port)  confgured for 30 seconds ringing.
> 
> if the caller hang up at the begining of the background prompt, asterisk
> waits until he make ring the phone on the dial command for the all 30
> secondes before detecting the hang up.
> 
> Do you know if there is a way to repair that ?
> 
> here is what i see on asterisk when the caller hang up IMMEDITALY after the
> test prompt begins :
> 
> *CLI>     -- Starting simple switch on 'Zap/4-1'
>     -- Executing Answer("Zap/4-1", "") in new stack
>     -- Executing NoOp("Zap/4-1", "0675458745") in new stack
>     -- Executing Set("Zap/4-1", "TIMEOUT(response)=20") in new stack
>     -- Response timeout set to 20
>     -- Executing BackGround("Zap/4-1", "barge") in new stack
>     -- Playing 'test' (language 'fr')
>     -- Executing Dial("Zap/4-1", "Zap/2|0675458745|30") in new stack
>     -- Called 2
>     -- Zap/2-1 is ringing
>     -- Zap/2-1 is ringing
>     -- Zap/2-1 is ringing
>     -- Zap/2-1 is ringing
>     -- Zap/2-1 answered Zap/4-1
>     -- Attempting native bridge of Zap/4-1 and Zap/2-1
>     -- Hungup 'Zap/2-1'
>   == Spawn extension (reseau, s, 5) exited non-zero on 'Zap/4-1'
>     -- Executing Hangup("Zap/4-1", "") in new stack
>   == Spawn extension (reseau, h, 1) exited non-zero on 'Zap/4-1'
>     -- Hungup 'Zap/4-1'
> 
> 
> In my zapata.conf i have :
> 
> language=fr
> default=fr
> relaxdtmf=yes
> echocancelwhenbridged=yes
> rxgain=0.0
> txgain=0.0
> cidsignalling=v23
> usecallerid=yes
> group => 1
> context=reseau
> signalling=fxs_ks
> callprogress=yes
> busydetect=yes
> callerid=asreceived
> busycount=5
> pulse=yes
> 
> In my zaptel.conf i have :
> 
> loadzone=fr
> defaultzone=fr
> fxoks=1-3
> fxsks=4
> 
> 
> If anyone can see what is wrong he will really help me.
> 
> thank you.

Your English is better than my French :-)

Making the TDM400p detect hangups can be hard. I had it working OK with 
pre-1.2 versions, but now in 1.2 stable I'm also having some problems 
again. I'll investigate in more details eventually.

For now, the only thing I can suggest is that you add:

hanguponpolarityswitch=yes

in your zapata.conf

In the UK, hangups are signaled by a polarity switch, and since 
sometimes the UK and Europe do the same thing, I'm hoping this will be 
the case for you too.

However, even with this option enabled, like I say, I'm having some 
small problems with 1.2 stable. I hope to have time this weekend to 
investigate and see what is going on.

Faris.






More information about the asterisk-users mailing list