this is how i do it from the dialplan:<br><br><br><br><br>   &lt;extension name=&quot;ServiceLookup&quot;&gt;<br>      &lt;condition field=&quot;destination_number&quot; expression=&quot;^(300030)(.*)|^\+(300030)(.*)&quot;&gt;<br>
<br>         &lt;action application=&quot;set&quot; data=&quot;bPfx=$1$3&quot;/&gt;<br>         &lt;action application=&quot;set&quot; data=&quot;bNum=$2$4&quot;/&gt;<br><br>         &lt;action inline=&quot;true&quot; application=&quot;set&quot; data=&quot;intf=${regex(${caller_id_number}|^i\+(......)(.*) |%1)}&quot;/&gt;<br>
         &lt;action application=&quot;set&quot; data=&quot;caller_id_number=${cond(${intf}==true ? ${caller_id_number:1:32} : ${caller_id_number})}&quot;/&gt;<br><br>         &lt;action inline=&quot;true&quot; application=&quot;set&quot; data=&quot;aPfx=${caller_id_number:0:6}&quot;/&gt;<br>
         &lt;action inline=&quot;true&quot; application=&quot;set&quot; data=&quot;aNum=${caller_id_number:6:16}&quot;/&gt;<br>         &lt;action inline=&quot;true&quot; application=&quot;set&quot; data=&quot;IP_ADDR=${network_addr}:5060&quot;/&gt;<br>
<br>         &lt;action application=&quot;lookup_service_destination&quot; data=&quot;in ${aNum}, <br>                                                                in ${aPfx}, <br>                                                                in ${bNum}, <br>
                                                                in ${bPfx}, <br>                                                                in ${IP_ADDR}, <br>                                                                out redContact, <br>
                                                                out authResult&quot;/&gt;<br><br>         &lt;action application=&quot;log&quot; data=&quot;INFO ######################## ServiceLookup ########################\n&quot;/&gt;<br>
         &lt;action application=&quot;log&quot; data=&quot;INFO ######################## contact = &#39;${redContact}&#39; ##############\n&quot;/&gt;<br>         &lt;action application=&quot;log&quot; data=&quot;INFO ######################## CallerNum = &#39;${caller_id_number:6:16}&#39; ##########\n&quot;/&gt;<br>
         &lt;action application=&quot;log&quot; data=&quot;INFO ######################## RADIUS auth = &#39;${authResult}&#39; ##########\n&quot;/&gt;<br><br>         &lt;action application=&quot;execute_extension&quot; data=&quot;doRedirect XML public&quot;/&gt;<br>
        &lt;/condition&gt;<br>   &lt;/extension&gt;<br><br><br>   &lt;extension name=&quot;doRedirect&quot;&gt;<br>      &lt;condition field=&quot;destination_number&quot; expression=&quot;^doRedirect$&quot;/&gt;<br>      &lt;condition field=&quot;${authResult}&quot; expression=&quot;^0$|&quot;&gt;<br>
         &lt;action application=&quot;log&quot; data=&quot;INFO ######################## RADIUS auth OK!!!&#39; ##########\n&quot;/&gt;<br>         &lt;action application=&quot;redirect&quot; data=&quot;${red_contact}&quot;/&gt;<br>
         &lt;anti-action application=&quot;log&quot; data=&quot;INFO ######################## RADIUS auth NOK!! ##########\n&quot;/&gt;<br>         &lt;anti-action application=&quot;respond&quot; data=&quot;403 Forbidden&quot;/&gt;<br>
      &lt;/condition&gt;<br><br>   &lt;/extension&gt;<br><br><br><br><br><div class="gmail_quote">On Wed, Nov 25, 2009 at 6:45 PM, Michael Jerris <span dir="ltr">&lt;<a href="mailto:mike@jerris.com">mike@jerris.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">In trunk there is a sofia profile setting to allow dialplan processing of 302 responses.  This won&#39;t get you back into your same javascript, but you can probably do something clever from there.<br>

<br>
Mike<br>
<div class="im"><br>
On Nov 24, 2009, at 5:04 PM, John Platts wrote:<br>
<br>
&gt;<br>
&gt; I have considered writing JavaScript code to bridge two calls together. However, I would like to perform custom handling of the 302 Moved Temporarily response. How do I handle the 302 Moved Temporarily response if I use JavaScript?<br>

&gt;<br>
<br>
_______________________________________________<br>
</div><div><div></div><div class="h5">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>
</div></div></blockquote></div><br>