<div dir="ltr"><div><div><div>Hello Razvan,<br><br></div>Thank you. I asked similar question few days back about status code ..sorry about that.<br><br></div>Regards<br><br></div>John<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jan 15, 2015 at 4:42 PM, Răzvan Crainea <span dir="ltr"><<a href="mailto:razvan@opensips.org" target="_blank">razvan@opensips.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<div><tt>Hi, John!<br>
<br>
If the call is rejected, than the "X-internal-hangup" header is
in the reply. failure_route is ran in the request context.
Therefore, you have to use the is_present_hf() function in the
onreply_route.<br>
Alternatively, you can check for the header existing using the
hdr pseudo-variable in the reply context (i.e if
($(<reply>hdr(</tt><tt>X-internal-hangup)) != NULL)).<br>
<br>
Best regards,<br>
</tt>
<pre cols="72">Răzvan Crainea
OpenSIPS Solutions
<a href="http://www.opensips-solutions.com" target="_blank">www.opensips-solutions.com</a></pre><span class="">
On 01/15/2015 12:40 PM, John Nash wrote:<br>
</span></div>
<blockquote type="cite"><span class="">
<div dir="ltr">
<div>I am testing a setup where opensips sending call to
freeswitch and if call is rejected by freswitch a custom
header "X-internal-hangup". In opensips failure_route I am
trying to check it using is_present_hf() function but it never
reaches inside conditions. In wireshark I see this header.<br>
<br>
</div>
is_present_hf is working fine when used in main request block.<br>
</div>
<br>
<fieldset></fieldset>
<br>
</span><pre>_______________________________________________
Users mailing list
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</div>
<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br></div>