[asterisk-users] dial, answered and then hangup

Phil Knighton phil.knighton at mjog.com
Mon Dec 17 10:02:11 CST 2007


Rilawich,

We use a TDM400P here in the UK, and if you set
"hanguponpolarityswitch=yes" in zapata.conf, we get the same result.  I
think it is country specific, but try switching this to "no" and see
what happens.  This cured our problems.

I have a note in zapata.conf (not sure if its from the release confs or
from someone internal here) that says "Fatal on TDM400P if set to yes".

Good Luck

Phil

-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Rilawich
Ango
Sent: 17 December 2007 14:19
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] dial, answered and then hangup

On Dec 17, 2007 4:32 PM, Tzafrir Cohen <tzafrir.cohen at xorcom.com> wrote:
>
> On Mon, Dec 17, 2007 at 11:34:42AM +0800, Rilawich Ango wrote:
> > Below is the log I got.  It seems related to Polarity Reversal.
> >
> > --zapata.conf--
> > ;answeronpolarityswitch=yes
> > hanguponpolarityswitch=yes
> >
> > --full log--
> > [Dec 15 19:35:35] DEBUG[2195] res_config_mysql.c: MySQL RealTime:
Retrieve SQL:
> > SELECT * FROM oi_systemalias WHERE alias = '22720000'
> > [Dec 15 19:35:35] VERBOSE[2195] logger.c:        > No Realtime
Matches Found.
> > [Dec 15 19:35:35] VERBOSE[2195] logger.c:     -- Executing
[927220000 at internal:2
> > ] GotoIf("SIP/114-b7d06198", "1?:hu_trunkhk") in new stack
> > [Dec 15 19:35:35] VERBOSE[2195] logger.c:     -- Executing
[927220000 at internal:3
> > ] Dial("SIP/114-b7d06198", "Zap/g0/22720000|25") in new stack [Dec 
> > 15 19:35:35] DEBUG[2195] dsp.c: dsp busy pattern set to 0,0 [Dec 15 
> > 19:35:35] DEBUG[2195] chan_zap.c: Dialing '22720000'
> > [Dec 15 19:35:35] DEBUG[2195] chan_zap.c: Deferring dialing...
> > [Dec 15 19:35:35] VERBOSE[2195] logger.c:     -- Called g0/22720000
> > [Dec 15 19:35:38] VERBOSE[2195] logger.c:     -- Zap/1-1 answered
SIP/114-b7d061
> > 98
> > [Dec 15 19:35:41] DEBUG[2195] chan_zap.c: Ignore switch to REVERSED 
> > Polarity on channel 1, state 6 [Dec 15 19:35:41] DEBUG[2195] 
> > chan_zap.c: Polarity Reversal event occured - DEBU G 1: channel 1, 
> > state 6, pol= 1, aonp= 0, honp= 1, pdelay= 600, tv= 864361 [Dec 15 
> > 19:35:41] DEBUG[2195] chan_zap.c: Polarity Reversal detected and now

> > Han ging up on channel 1 [Dec 15 19:35:41] DEBUG[2195] chan_zap.c: 
> > Polarity Reversal event occured - DEBU G 2: channel 1, state 6, pol=

> > 0, aonp= 0, honp= 1, pdelay= 600, tv= 864361
>
> Answer and then an immediate hangup? (as signalled by the provider)
Yes
>
> > [Dec 15 19:35:41] VERBOSE[2195] logger.c:     -- Hungup 'Zap/1-1'
> > [Dec 15 19:35:41] VERBOSE[2195] logger.c:   == Spawn extension
(internal, 922720
> > 000, 3) exited non-zero on 'SIP/114-b7d06198'
> > [Dec 15 19:35:41] VERBOSE[2195] logger.c:     -- Executing
[h at internal:1] Hangup
> > ("SIP/114-b7d06198", "") in new stack
> >
> > On Dec 17, 2007 10:29 AM, dave cantera <david.cantera at iacnet.net>
wrote:
> > > rilawich,
> > > can you post the CLI output so we can see what is going on?
> > > from the exten, it is doing exactly what you tell it to do...  
> > > dial then hangup daveC
> >
> > _______________________________________________
> > --Bandwidth and Colocation Provided by http://www.api-digital.com--
> >
> > asterisk-users mailing list
> > To UNSUBSCRIBE or update options visit:
> >    http://lists.digium.com/mailman/listinfo/asterisk-users
>
> --
>                Tzafrir Cohen
> icq#16849755              jabber:tzafrir.cohen at xorcom.com
> +972-50-7952406           mailto:tzafrir.cohen at xorcom.com
> http://www.xorcom.com  iax:guest at local.xorcom.com/tzafrir
>
>
> _______________________________________________
> --Bandwidth and Colocation Provided by http://www.api-digital.com--
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
>

_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.com--

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users



More information about the asterisk-users mailing list