Hi,
I have the following dialplan, and when the hard sip account and she is uncredited, the variable ${DIALSTATUS} back as congested. Next get “Got SIP response 402” Payment Required "back from 1XX.1XX.1XX.1XX: 5060."
I’m trying to use $ {HASH (SIP_CAUSE, $ {CDR (dstchannel)})} to get the return code sip. But always come back empty.
Dialplan:
exten => _XXXXXXXXXXX,1,Dial(SIP/7012815/${EXTEN})
exten => _XXXXXXXXXXX,n,Verbose(2,SIP return code : ${HASH(SIP_CAUSE,${CDR(dstchannel)})})
exten => _XXXXXXXXXXX,n,Hangup
Log:
-- Executing [06XXXXXXXX5@from-internal:1] Dial("SIP/95-00000004", "SIP/7012815/06XXXXXXXX5,120,grWjL(3600000)") in new stack
-- Setting call duration limit to 3600.000 seconds.
== Using SIP RTP CoS mark 5
-- Called SIP/7012815/06XXXXXXXX5
-- Got SIP response 402 "Payment Required" back from 1XX.1XX.1XX.1XX:5060
== Everyone is busy/congested at this time (1:0/0/1)
-- Executing [06XXXXXXXX5@from-internal:2] Verbose("SIP/95-00000004", "2,SIP return code : ") in new stack
== SIP return code :
-- Executing [06XXXXXXXX5@from-internal:3] Hangup("SIP/95-00000004", "") in new stack
== Spawn extension (from-internal, 06XXXXXXXX5, 3) exited non-zero on 'SIP/95-00000004'
Any tips?
Asterisk 1.8.10.0
OS: Debian 6 - Kernel 2.6.32
Best Regards,
Marcio.