Try sending one of these calls to the info application in your public dialplan. Most likely there will be a few fields which you can key off of in your dialplan conditions. If your providers have static IPs then you can always use the network_addr field to match on. Once you match on a particular IP address (or whichever field) then you can execute the transfer app and send the call to another context altogether:<br>
<br><extension name="example IP addr match"><br> <condition field="network_addr" expression="^1\.2\.3\.4$"/> <!-- IP addr of originating server --><br> <condition field="destination_number" expression="^(.*)$"><br>
<action application="transfer" data="$1 XML my_context"/><br> </condition><br></extension><br><br>Let us know how it goes.<br>-MC<br><br><div class="gmail_quote">On Fri, Mar 12, 2010 at 9:34 PM, Tim St. Pierre <span dir="ltr"><<a href="mailto:fs-list@communicatefreely.net">fs-list@communicatefreely.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Hello,<br>
<br>
Is there a way for incoming calls from a gateway to go to a context other than the default one set<br>
in the sofia profile? I need a way to separate calls from providers vs. calls from the public at large.<br>
<br>
Here's the scenario:<br>
<br>
Our external sofia profile maps to the public IP address and listens on port 5060. Our providers<br>
send calls to this address, but we also need to have anonymous sip calls come in to the public<br>
address, on the default port. We want the calls from our SIP trunks to get billed appropriately,<br>
and increment our mod_limit counters, etc. If a call comes in from somewhere other than a SIP<br>
trunk, we want it to have access to extensions, but be rated as a free call.<br>
<br>
All our SIP trunks are mapped using static addresses - there isn't any registration or<br>
authentication happening in either direction. Each one has a gateway entry.<br>
<br>
Thanks!<br>
<br>
-Tim<br>
<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>
</blockquote></div><br>