[Asterisk-Users] HANGUPCAUSE macro..

Matt Schulte mschulte at netlogic.net
Tue Oct 26 05:56:28 MST 2004


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?


	Matt



More information about the asterisk-users mailing list