<p>If you're using below 1.8, there isn't a way. The DIALSTATUS channel variable can give you a little, but not with those response codes.</p>
<p>However, if you're using 1.8, there's some hope: you can use ${HASH(SIP_CAUSE,<channel>)} (where <channel> is the destination channel, not source) to read the SIP response code.</p>
<p>For my setup, I have an OpenSIPS sever that handles the lower level logic such as failure routes. I find it a lot amiable to deal with than Asterisk for that sort of thing.</p>
<p>- Logan</p>
<div class="gmail_quote">On Sep 23, 2012 5:17 PM, "Jarek Jarzebowski" <<a href="mailto:jarek.jarzebowski@gmail.com">jarek.jarzebowski@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello,<br>
<br>
I need to do such a simple thing:<br>
<br>
1. Dial SIP/123<br>
2. If I get for example "503" - jump to Dial SIP/789<br>
3. If I get for example "403" - jump to Playback(...)<br>
<br>
The real question is:<br>
how can I get SIP Responses and use it in dialplan?<br>
<br>
Regards,<br>
Jarek<br>
<br>
--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
<a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
</blockquote></div>