[asterisk-users] PROGRESS code

Bill Gibbs bgibbs at edurotech.com
Tue Mar 20 04:34:28 MST 2007


I have a PRI switch type national

Asterisk 1.2.16

Zaptel 1.2.15

 

If I call an invalid number I get

 

*       PROGRESS with cause code 28 received

 

Asterisk continues to attempt to connect the call until the timeout is
reached and I hear ringing.

 

I want to capture the progress code, which I thought was in HANGUPCAUSE
but when I NoOp that variable it's always 16 when I dial an invalid
number...not 28

 

Also, I don't see how to immediately indicate the number is invalid,
without waiting for the channel to automatically hang up.

 

Is that just the way it works...I gotta wait?

 

Why is HANGUPCAUSE 16 but I get Progress cause code 28?  28 is clearly
correct because "11" is an invalid number format.

 

exten => _.,1,Dial(Zap/g1/${EXTEN})

exten => _.,n,NoOp(Dial Status is ${DIALSTATUS})

exten => _.,n,NoOp(Hang Up Clause is ${HANGUPCAUSE})

exten => _.,n,Congestion

 

    -- Executing Dial("SIP/x.x.x.x-090bec30", "Zap/g1/11") in new stack

    -- Requested transfer capability: 0x00 - SPEECH

    -- Called g1/11

    -- Zap/1-1 is proceeding passing it to SIP/x.x.x.x-090bec30

    -- PROGRESS with cause code 28 received

    -- Zap/1-1 is making progress passing it to SIP/x.x.x.x-090bec30

    -- Channel 0/1, span 1 got hangup request

    -- Hungup 'Zap/1-1'

  == No one is available to answer at this time (1:0/0/0)

    -- Executing NoOp("SIP/x.x.x.x-090bec30", "Dial Status is NOANSWER")
in new stack

    -- Executing NoOp("SIP/x.x.x.x-090bec30", "Hang Up Cause is 16") in
new stack

    -- Executing Congestion("SIP/x.x.x.x-090bec30", "") in new stack

  == Spawn extension (pri-only, 11, 4) exited non-zero on
'SIP/x.x.x.x-090bec30'

    -- Executing Hangup("SIP/x.x.x.x-090bec30", "") in new stack

 

Bill

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20070320/3b83de48/attachment.htm


More information about the asterisk-users mailing list