[asterisk-users] status line header
Carles Pina i Estany
carles at pina.cat
Thu Apr 17 11:01:35 CDT 2008
Hello,
I need to read the Status-Line (I need to know if it's 603, 503, 404)
after a Dial. I have tried:
exten => s,2,Dial(SIP/${ARG1}@XXXX,,tTwW)
exten => s,3,Set(t=${SIP_HEADER(Status-Line)})
But t is empty
I have also tried:
exten => s,5,Verbose(*** STATUS: ${DIALSTATUS})
exten => s,6,Verbose(*** STATUS2: ${HANGUPCAUSE})
DIALSTATUS: I usually get Congestion (but I know from sniffer that
sometime sStatus-Line is 404, sometmies 603 and sometimes 503).
HANGUPCAUSE: I have used in ISDN but here is always 0.
How could I get the Status-Line code?
Thank you very much,
--
Carles Pina i Estany GPG id: 0x8CBDAE64
http://pinux.info Manresa - Barcelona
More information about the asterisk-users
mailing list