Pastebin the console log of each of these failed attempts so that we can see what exactly is happening.<br>-MC<br><br><div class="gmail_quote">On Wed, Nov 10, 2010 at 9:22 AM, Santiago Soares <span dir="ltr">&lt;<a href="mailto:santiagosoares@gmail.com">santiagosoares@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">This didn&#39;t work either. The X-Header-Name header is present only on the 486 response message. It contains the hangup cause.<br>
I need to get the value of the header in the 486 message generated in response for the Invite.<br>

Like this:<br><br>         Invite              Invite<br>User-------------&gt;FS---------------&gt;Server<br><br>                               486<br>          404         X-Header=Not Found<br>User&lt;------------FS&lt;---------------Server<br>


<br><br>FS would receive a 486 response with X-Header, and generate a response to the user based on X-Header value.<div class="im"><br>Is it possible?<br><br clear="all">Santiago Soares<br><br>
<br><br></div><div><div></div><div class="h5"><div class="gmail_quote">On Wed, Nov 10, 2010 at 2:28 PM, Anthony Minessale <span dir="ltr">&lt;<a href="mailto:anthony.minessale@gmail.com" target="_blank">anthony.minessale@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">

<div>&lt;extension name=&quot;header_test_extension&quot;&gt;<br>
<br>
</div>&lt;condition field=&quot;network_addr&quot; expression=&quot;10.1.1.1&quot;/&gt;<br>
<div>    &lt;condition field=&quot;${sip_h_X-Header-Name}&quot; expression=&quot;Header Value&quot;&gt;<br>
        &lt;action application=&quot;respond&quot; data=&quot;404&quot;/&gt;<br>
        &lt;action application=&quot;hangup&quot;/&gt;<br>
</div>        &lt;anti-action application=&quot;set&quot; data=&quot;continue_on_fail=USER_BUSY&quot;/&gt;<br>
        &lt;anti-action application=&quot;bridge&quot;<br>
<div>data=&quot;sofia/gateway/profile/${sip_to_user}&quot;/&gt;<br>
    &lt;/condition&gt;<br>
</div>&lt;/extension&gt;<br>
<div><div></div><div><br>
<br>
On Wed, Nov 10, 2010 at 7:02 AM, Santiago Soares<br>
&lt;<a href="mailto:santiagosoares@gmail.com" target="_blank">santiagosoares@gmail.com</a>&gt; wrote:<br>
&gt; Thank you for the answers, but it didn&#39;t work.<br>
&gt; Isn&#39;t there any way I can get a header value from the called endpoint<br>
&gt; response?<br>
&gt; I have a server that returns 486 for many call setup problems, and I&#39;d like<br>
&gt; that FS send another response to the caller endpoint, based on this<br>
&gt; &quot;X-Header-Name&quot;.<br>
&gt; In other words, I&#39;d like to override the callee response, based on this<br>
&gt; header value.<br>
&gt; Is it possible?<br>
&gt;<br>
&gt; Santiago Soares<br>
&gt; Fone: (41) 8488-0537<br>
&gt;<br>
&gt;<br>
&gt; On Wed, Nov 10, 2010 at 4:27 AM, Troy Anderson<br>
&gt; &lt;<a href="mailto:freeswitch@tlainvestments.com" target="_blank">freeswitch@tlainvestments.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; Santiago,<br>
&gt;&gt;<br>
&gt;&gt; I think something like this will work:<br>
&gt;&gt;<br>
&gt;&gt; &lt;extension name=&quot;header_test_extension&quot;&gt;<br>
&gt;&gt;        &lt;condition field=&quot;network_addr&quot; expression=&quot;10.1.1.1&quot;&gt;<br>
&gt;&gt;            &lt;action application=&quot;set&quot; data=&quot;continue_on_fail=USER_BUSY&quot;/&gt;<br>
&gt;&gt;            &lt;action application=&quot;bridge&quot;<br>
&gt;&gt; data=&quot;sofia/gateway/profile/${sip_to_user}&quot;/&gt;<br>
&gt;&gt;            &lt;action application=&quot;transfer&#39;<br>
&gt;&gt; data=&quot;header_test_extension-BUSY&quot;&gt;<br>
&gt;&gt;        &lt;/condition&gt;<br>
&gt;&gt; &lt;/extension&gt;<br>
&gt;&gt;<br>
&gt;&gt; &lt;extension name=&quot;header_test_extension-BUSY&quot;&gt;<br>
&gt;&gt;    &lt;condition field=&quot;${sip_h_X-Header-Name}&quot; expression=&quot;Header Value&quot;&gt;<br>
&gt;&gt;        &lt;action application=&quot;respond&quot; data=&quot;404&quot;/&gt;<br>
&gt;&gt;        &lt;action application=&quot;hangup&quot;/&gt;<br>
&gt;&gt;    &lt;/condition&gt;<br>
&gt;&gt; &lt;/extension&gt;<br>
&gt;&gt;<br>
&gt;&gt; -Troy<br>
&gt;&gt;<br>
&gt;&gt; On Nov 8, 2010, at 1:46 PM, Santiago Soares wrote:<br>
&gt;&gt;<br>
&gt;&gt; &gt; Hello everybody,<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; I&#39;d like to handle my calls like this:<br>
&gt;&gt; &gt; If callee sends a &quot;486 User Busy&quot; AND a certain header is present in the<br>
&gt;&gt; &gt; response, Freeswitch would send a &quot;404 Not Found&quot; to the caller.<br>
&gt;&gt; &gt; The following code would solve my problem:<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; &lt;extension name=&quot;header_test_extension&quot;&gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; &lt;condition field=&quot;network_addr&quot; expression=&quot;10.1.1.1&quot;&gt;<br>
&gt;&gt; &gt;     &lt;action application=&quot;set&quot; data=&quot;continue_on_fail=USER_BUSY&quot;/&gt;<br>
&gt;&gt; &gt;     &lt;action application=&quot;bridge&quot;<br>
&gt;&gt; &gt; data=&quot;sofia/gateway/profile/${sip_to_user}&quot;/&gt;<br>
&gt;&gt; &gt;     &lt;condition field=&quot;${sip_h_X-Header-Name}&quot; expression=&quot;Header Value&quot;&gt;<br>
&gt;&gt; &gt;         &lt;action application=&quot;respond&quot; data=&quot;404&quot;/&gt;<br>
&gt;&gt; &gt;         &lt;action application=&quot;hangup&quot;/&gt;<br>
&gt;&gt; &gt;     &lt;/condition&gt;<br>
&gt;&gt; &gt; &lt;/condition&gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; &lt;/extension&gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; But the thing is that Freeswitch doesn&#39;t allow nested conditions.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Any ideas on how I can handle this?<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Santiago Soares<br>
&gt;&gt; &gt; Fone: (41) 8488-0537<br>
&gt;&gt; &gt; _______________________________________________<br>
&gt;&gt; &gt; FreeSWITCH-users mailing list<br>
&gt;&gt; &gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
&gt;&gt; &gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt;&gt; &gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt;&gt; &gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; FreeSWITCH-users mailing list<br>
&gt;&gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
&gt;&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt;&gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt;&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; FreeSWITCH-users mailing list<br>
&gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt;<br>
&gt;<br>
<br>
<br>
<br>
</div></div>--<br>
Anthony Minessale II<br>
<br>
FreeSWITCH <a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org/</a><br>
ClueCon <a href="http://www.cluecon.com/" target="_blank">http://www.cluecon.com/</a><br>
Twitter: <a href="http://twitter.com/FreeSWITCH_wire" target="_blank">http://twitter.com/FreeSWITCH_wire</a><br>
<br>
AIM: anthm<br>
<a href="mailto:MSN%3Aanthony_minessale@hotmail.com" target="_blank">MSN:anthony_minessale@hotmail.com</a><br>
GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com" target="_blank">PAYPAL:anthony.minessale@gmail.com</a><br>
IRC: <a href="http://irc.freenode.net" target="_blank">irc.freenode.net</a> #freeswitch<br>
<br>
FreeSWITCH Developer Conference<br>
<a href="mailto:sip%3A888@conference.freeswitch.org" target="_blank">sip:888@conference.freeswitch.org</a><br>
<a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org" target="_blank">googletalk:conf+888@conference.freeswitch.org</a><br>
pstn:+19193869900<br>
<div><div></div><div><br>
_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</div></div></blockquote></div><br>
</div></div><br>_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br>