<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<br>
<div class="moz-cite-prefix">On 30/10/14 13:52, Jonas Kellens wrote:<br>
</div>
<blockquote cite="mid:54524288.7020001@telenet.be" type="cite">
<meta http-equiv="content-type" content="text/html;
charset=windows-1252">
<font face="Helvetica, Arial, sans-serif">Hello,<br>
<br>
I read on the wiki :<br>
<br>
Asterisk 1.8 will allow to read SIP response codes in the
dialplan via <strong>${HASH(SIP_CAUSE,<channel-name>)}</strong>.
Additionally make sure you're using the destination channel, not
the source channel.<br>
<br>
But when I use this in my dialplan, this 'variable' is empty.<br>
<br>
Dialplan :<br>
<br>
exten => h,n,NoOp(sip cause = ${HASH(SIP_CAUSE,${CHANNEL})})<br>
exten => h,n,NoOp(sip cause = ${HASH(SIP_CAUSE,CHANNEL)})<br>
<br>
CLI :<br>
<br>
[Oct 30 14:48:03] -- Executing [h@pbx-routing:5]
NoOp("SIP/SipAT01-00000015", "sip cause = ") in new stack<br>
[Oct 30 14:48:03] -- Executing [h@pbx-routing:6]
NoOp("SIP/SipAT01-00000015", "sip cause = ") in new stack<br>
<br>
</font><br>
</blockquote>
<br>
Take a look at my blog entry about it :-<br>
<br>
<a class="moz-txt-link-freetext" href="http://gblades.blogspot.co.uk/2013/07/how-to-get-sip-response-code-in.html">http://gblades.blogspot.co.uk/2013/07/how-to-get-sip-response-code-in.html</a><br>
</body>
</html>