<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<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>
<br>
Can anyone tell me how this should be used ?<br>
<br>
<br>
Kind regards,<br>
<br>
Jonas.<br>
</font>
</body>
</html>