<div dir="ltr"><div>Thanks Sergey for the help,<br><br></div>I&#39;ll use the sip_route_uri &amp;  sip_invite_req_uri to manage my SPA3k gateway<br><div><div><br><br><br></div><div>Thanks<br></div><div>JCM<br><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Aug 10, 2015 at 5:33 AM, Sergey Safarov <span dir="ltr">&lt;<a href="mailto:s.safarov@gmail.com" target="_blank">s.safarov@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"><div dir="ltr">Use sip_invite_req_uri<div><a href="https://freeswitch.org/confluence/display/FREESWITCH/Channel+Variables" target="_blank">https://freeswitch.org/confluence/display/FREESWITCH/Channel+Variables</a><br></div><div><br></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Aug 10, 2015 at 8:26 AM, Jaime Cruz <span dir="ltr">&lt;<a href="mailto:jaimecm@gmail.com" target="_blank">jaimecm@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"><div dir="ltr"><div><div><div><div>Hi Sergey,<br></div>Thanks for your help,<br>it&#39; worked to change the Invite &quot;To:&quot; Uri,<br><br></div>but as I tested, the linksys SPA3000&amp;3102 is not taken the destination from the To Uri nor from the Invite Uri as &quot;INVITE <a href="http://sip:nnnnnn@200.200.200.200:5061" target="_blank">sip:nnnnnn@200.200.200.200:5061</a> SIP/2.0&quot; as &quot;nnnnnn&quot; can be any destination that I want to dial via it&#39;s PSTN line.<br><br></div>Do you think that there&#39;s an option to change this in FS,<br><br><br><br></div><div>Thanks for your help.<br></div><div>JCM<br></div><div><div><br><br>======<br><div>originate: {sip_invite_to_uri=&lt;<a href="mailto:sip%3A226560600@voip.hablaip.com" target="_blank">sip:226560600@voip.hablaip.com</a>&gt;}user/<a href="mailto:100123@voip.hablaip.com" target="_blank">100123@voip.hablaip.com</a><br><div><div>======<br>INVITE <a href="http://sip:100123@200.200.200.200:5061" target="_blank">sip:100123@200.200.200.200:5061</a> SIP/2.0<br>Via: SIP/2.0/UDP 100.100.100.100;rport;branch=z9hG4bK32ScZ5j0X2NQH<br>Max-Forwards: 69<br>From: &quot;Katty Casa.&quot; &lt;sip:Katty <a href="mailto:Casa@voip.hablaip.com" target="_blank">Casa@voip.hablaip.com</a>&gt;;tag=XZvcHv1avcZ5c<br>To: &lt;<a href="mailto:sip%3A226560600@voip.hablaip.com" target="_blank">sip:226560600@voip.hablaip.com</a>&gt;<br>Call-ID: 2b0f621f-b9c0-1233-ab8f-000c292ac960<br>CSeq: 79255480 INVITE<br>Contact: &lt;<a href="http://sip:mod_sofia@100.100.100.100:5060" target="_blank">sip:mod_sofia@100.100.100.100:5060</a>&gt;<br>======<br>2015-08-10 02:04:49.318695 [DEBUG] switch_ivr_originate.c:2101 Parsing global variables<br>2015-08-10 02:04:49.318695 [DEBUG] switch_event.c:1698 Parsing variable [sip_invite_to_uri]=[&lt;<a href="mailto:sip%3A226560600@voip.hablaip.com" target="_blank">sip:226560600@voip.hablaip.com</a>&gt;]<br>==========<br><br><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div>On Sun, Aug 9, 2015 at 11:43 AM, Sergey Safarov <span dir="ltr">&lt;<a href="mailto:s.safarov@gmail.com" target="_blank">s.safarov@gmail.com</a>&gt;</span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div dir="ltr"><span style="font-size:12.8000001907349px">Special assignment of used port is not required</span><div><span style="font-size:12.8000001907349px">Using dial-string like &quot;</span><span style="font-size:12.8000001907349px">user/</span><a href="mailto:reg_user@mydomain.org" style="font-size:12.8000001907349px" target="_blank">reg_user@mydomain.org</a>&quot; automatically do it</div><span><font color="#888888"><div><br></div></font></span><div><span><font color="#888888">Sergey<br></font></span><div class="gmail_extra"><br><div class="gmail_quote"><span>On Sun, Aug 9, 2015 at 1:34 PM,  <span dir="ltr">&lt;<a href="mailto:covici@ccs.covici.com" target="_blank">covici@ccs.covici.com</a>&gt;</span> wrote:<br></span><span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Also, at least in mine, you have to use port 5061 to dial out.<br>
<div><div><br><br></div></div></blockquote></span></div><br></div></div></div>
<br></div></div><span>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><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" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br></span></blockquote></div><br><br clear="all"><br>-- <br><span><div>Jaime Cruz<br><a href="mailto:jaimecm@gmail.com" target="_blank">jaimecm@gmail.com</a><br><a href="https://www.facebook.com/jaimecruzmendoza" target="_blank">https://www.facebook.com/jaimecruzmendoza</a></div>
</span></div></div></div></div>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><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" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br></div>
</div></div><br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" target="_blank">http://www.cluecon.com</a><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" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature">Jaime Cruz<br><a href="mailto:jaimecm@gmail.com" target="_blank">jaimecm@gmail.com</a><br><a href="https://www.facebook.com/jaimecruzmendoza" target="_blank">https://www.facebook.com/jaimecruzmendoza</a></div>
</div>