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/[EMAIL PROTECTED],,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
_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users