The extension param only influences the username portion of the contact address?. <br>If they require a certain contact address username they are insane.<br>We also have extra params like from-domain, and caller-id-in-from to compensate for other foolish broken sip services<br>
who use pointless unnatural requirements on the contents of your invite for security.<br><br>If you must set the contact to your username, you would have to match on something else in the invite.<br>It would be up to them to send something significant in the invite that you could match against to tell what number they are calling.<br>
<br>destination_number is not the only thing you can regex for, route all calls to the &quot;info&quot; app and call the various did and look<br>for a variable that will tell you the info you need.<br><br><br><div class="gmail_quote">
On Wed, Nov 5, 2008 at 1:36 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>Thanks - that does work to an extent. <br>
&nbsp;<br>
Now the problem is that not all gateways would allow &quot;arbitrary&quot; extensions. E.g. AIM Callout - it *requires* that the extension/caller-id be your aim username.<br>
&nbsp;<br>
-Saurabh<br>
<br><br><br><br>&nbsp;<br>

<hr>
<br>
Date: Wed, 29 Oct 2008 12:46:44 -0500<br>From: <a href="mailto:anthony.minessale@gmail.com" target="_blank">anthony.minessale@gmail.com</a><div><div></div><div class="Wj3C7c"><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<br><br>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><br>
<div>On Wed, Oct 29, 2008 at 4:52 AM, 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="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><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="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>
<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" 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>
<br></blockquote></div><br><br clear="all"><br>-- <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>
<br>AIM: anthm<br><a href="mailto:MSN:anthony_minessale@hotmail.com" target="_blank">MSN:anthony_minessale@hotmail.com</a><br>GTALK/JABBER/<a href="mailto:PAYPAL:anthony.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:888@conference.freeswitch.org" target="_blank">sip:888@conference.freeswitch.org</a><br>
<a href="http://conference.freeswitch.org/888" target="_blank">iax:guest@conference.freeswitch.org/888</a><br><a href="mailto:googletalk:conf%2B888@conference.freeswitch.org" target="_blank">googletalk:conf+888@conference.freeswitch.org</a><br>
pstn:213-799-1400<br><br><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></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>