[Asterisk-Users] HANGUPCAUSE macro..

Eric Wieling eric at fnords.org
Tue Oct 26 06:08:20 MST 2004


IAX does not correctly set the HANGUPCAUSE for a LOT of things.  Look at 
DIALSTATUS or look at the dial-result macro on 
http://www.fnords.org/~eric/asterisk/downloads/macros.inc

Matt Schulte wrote:
> I am connecting Asterisk to Asterisk to PSTN (Either by SIP or PRI) and
> am having some issues dealing with busy signals. I have the HANGUPCAUSE
> dial result macro in place to generate my hangup causes. I get a
> hangupcause on my "gateway" machine with a code of 34, here's the code:
> 
> ... -snip-
> exten => hangupcause+34,1,Busy
> 
> It does in fact pass this on to the "IAD" asterisk machine as it saw the
> following:
> 
>     -- IAX2/x.x.x.x:4569/1 is busy
>     -- Hungup 'IAX2/x.x.x.x:4569/1'
>   == Everyone is busy/congested at this time
>     -- Executing Macro("Zap/2-1", "dial-result") in new stack
>     -- Executing NoOp("Zap/2-1", "HANGUPCAUSE is 0") in new stack
> 
> The last line doesn't make sense to me, if it knows it's a busy signal
> why on earth would it use code 0? (code 0 is "NOTDEFINED") Is there
> another
> way to handle these calls?
> 
> This is in my extensions.conf, as an example:
> 
> exten => _.,1,Dial(IAX2/xxxx:blah at host.netlogic.net/${EXTEN})
> exten => _.,2,Macro(dial-result)
> 
> On priority 2 I want to avoid using "Busy", makes sense?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: eric.vcf
Type: text/x-vcard
Size: 146 bytes
Desc: not available
Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20041026/3709ba6c/eric.vcf


More information about the asterisk-users mailing list