whatever you put in the &quot;extension&quot; param in the gateway should control what destination_number it has in the inbound call.&nbsp; you can also do your regex in your dialplan on any of the info in the sip packet besides destination number if you wish.<br>
<br><br><div class="gmail_quote">On Wed, Oct 29, 2008 at 4:52 AM, Saurabh Aggarwal <span dir="ltr">&lt;<a href="mailto:saurabh_aggarwal@hotmail.com">saurabh_aggarwal@hotmail.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;">




<div>Yes, but there is no DID in my system for incoming calls. I have users dynamically registering gateways, and calls coming in to SIP ids that they have used to register.<br>
&nbsp;<br>
-Saurabh<br>
&nbsp;<br>
<br><br><br><br>&nbsp;<br>

<hr>
<br>
Date: Wed, 29 Oct 2008 15:12:28 +0530<br>From: <a href="mailto:talk2ram@gmail.com" target="_blank">talk2ram@gmail.com</a><br>To: <a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswitch.org</a><br>
Subject: Re: [Freeswitch-users] SIP incoming call routing<div><div></div><div class="Wj3C7c"><br><br><br><br><br>
<div>On Wed, Oct 29, 2008 at 2:52 PM, Saurabh Aggarwal <span dir="ltr">&lt;<a href="mailto:saurabh_aggarwal@hotmail.com" target="_blank">saurabh_aggarwal@hotmail.com</a>&gt;</span> wrote:<br>
<blockquote style="border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div>We are using freeswitch as a SIP proxy, where we are letting people register with freeswitch, and in-turn we do the SIP registration for them to &quot;arbitrary&quot; sip servers (as requested by users) - each user gets&nbsp;his own sip gateway in the freeswitch configuration. Then they can make outgoing calls and calls are routed through their specific SIP gateway.<br>
&nbsp;<br>Now the problem is that when a call is received from one of these SIP registrations, it hits the public.xml where I can&#39;t seem to figure out how to get the SIP gateway information from which it came in. The SIP gateway name actually contains the information where it should be routed to. Any ideas on how to approach this problem?<br>
&nbsp;<br>Question - is it possible to do it in the dialplan (dynamic)&nbsp;or do we have to write an application to do this mapping?<br>&nbsp;<br>-Saurabh<br></div></blockquote>
<div>&nbsp;</div>
<div>have you looked at this example</div>
<div>&nbsp;</div>
<div><a href="http://wiki.freeswitch.org/wiki/Getting_Started_Guide#Receiving_an_inbound_call_from_a_Gateway" target="_blank">http://wiki.freeswitch.org/wiki/Getting_Started_Guide#Receiving_an_inbound_call_from_a_Gateway</a></div>

<div>&nbsp;</div>
<div>ram</div></div><br></div></div><div class="Ih2E3d"><hr>When your life is on the go—take your life with you. <a href="http://clk.atdmt.com/MRT/go/115298558/direct/01/" target="_blank">Try Windows Mobile&reg; today</a></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><br clear="all"><br>-- <br>Anthony Minessale II<br><br>FreeSWITCH <a href="http://www.freeswitch.org/">http://www.freeswitch.org/</a><br>ClueCon <a href="http://www.cluecon.com/">http://www.cluecon.com/</a><br>
<br>AIM: anthm<br><a href="mailto:MSN%3Aanthony_minessale@hotmail.com">MSN:anthony_minessale@hotmail.com</a><br>GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com">PAYPAL:anthony.minessale@gmail.com</a><br>
IRC: <a href="http://irc.freenode.net">irc.freenode.net</a> #freeswitch<br><br>FreeSWITCH Developer Conference<br><a href="mailto:sip%3A888@conference.freeswitch.org">sip:888@conference.freeswitch.org</a><br><a href="http://iax:guest@conference.freeswitch.org/888">iax:guest@conference.freeswitch.org/888</a><br>
<a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org">googletalk:conf+888@conference.freeswitch.org</a><br>pstn:213-799-1400<br>