${HASH(SIP_CAUSE,)}
Hello,
I read on the wiki :
Asterisk 1.8 will allow to read SIP response codes in the dialplan via
*${HASH(SIP_CAUSE,
But when I use this in my dialplan, this ‘variable’ is empty.
Dialplan :
exten => h,n,NoOp(sip cause = ${HASH(SIP_CAUSE,${CHANNEL})})
exten => h,n,NoOp(sip cause = ${HASH(SIP_CAUSE,CHANNEL)})
CLI :
[Oct 30 14:48:03] — Executing [h@pbx-routing:5]
NoOp(“SIP/SipAT01-00000015”, “sip cause = “) in new stack
[Oct 30 14:48:03] — Executing [h@pbx-routing:6]
NoOp(“SIP/SipAT01-00000015”, “sip cause = “) in new stack
Can anyone tell me how this should be used ?
Kind regards,
Jonas.
2 thoughts on - ${HASH(SIP_CAUSE,)}
Take a look at my blog entry about it :-
http://gblades.blogspot.co.uk/2013/07/how-to-get-sip-response-code-in.html
sip.conf: storesipcause=yes