<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>Thanks - that does work to an extent. <BR>
<BR>
Now the problem is that not all gateways would allow "arbitrary" extensions. E.g. AIM Callout - it *requires* that the extension/caller-id be your aim username.<BR>
<BR>
-Saurabh<BR>
<BR><BR><BR><BR> <BR>
<HR id=EC_stopSpelling>
<BR>
Date: Wed, 29 Oct 2008 12:46:44 -0500<BR>From: anthony.minessale@gmail.com<BR>To: freeswitch-users@lists.freeswitch.org<BR>Subject: Re: [Freeswitch-users] SIP incoming call routing<BR><BR>whatever you put in the "extension" param in the gateway should control what destination_number it has in the inbound call. 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 class=EC_gmail_quote>On Wed, Oct 29, 2008 at 4:52 AM, Saurabh Aggarwal <SPAN dir=ltr><<A href="mailto:saurabh_aggarwal@hotmail.com">saurabh_aggarwal@hotmail.com</A>></SPAN> wrote:<BR>
<BLOCKQUOTE class=EC_gmail_quote 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> <BR>-Saurabh<BR> <BR><BR><BR><BR><BR> <BR>
<HR>
<BR>Date: Wed, 29 Oct 2008 15:12:28 +0530<BR>From: <A href="mailto:talk2ram@gmail.com">talk2ram@gmail.com</A><BR>To: <A href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</A><BR>Subject: Re: [Freeswitch-users] SIP incoming call routing
<DIV>
<DIV></DIV>
<DIV class=EC_Wj3C7c><BR><BR><BR><BR><BR>
<DIV>On Wed, Oct 29, 2008 at 2:52 PM, Saurabh Aggarwal <SPAN dir=ltr><<A href="mailto:saurabh_aggarwal@hotmail.com">saurabh_aggarwal@hotmail.com</A>></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 "arbitrary" sip servers (as requested by users) - each user gets his own sip gateway in the freeswitch configuration. Then they can make outgoing calls and calls are routed through their specific SIP gateway.<BR> <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'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> <BR>Question - is it possible to do it in the dialplan (dynamic) or do we have to write an application to do this mapping?<BR> <BR>-Saurabh<BR></DIV></BLOCKQUOTE>
<DIV> </DIV>
<DIV>have you looked at this example</DIV>
<DIV> </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> </DIV>
<DIV>ram</DIV></DIV><BR></DIV></DIV>
<DIV class=EC_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® 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/" 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">MSN:anthony_minessale@hotmail.com</A><BR>GTALK/JABBER/<A href="mailto:PAYPAL:anthony.minessale@gmail.com">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">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">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='_new'>Try Windows Mobile® today</a></body>
</html>