Dear All. How i can change to a private context like "my_context" for inbound traffic from gateways authorized on ACL and how i can assign different private context for each gateway authorized in ACL, like: <list name="domains" default="deny"> <node type="allow" cidr="190.XXX.XX.XXX/32"/> context foo <node type="allow" cidr="66.X.XXX.XX/32"/> context foo1 </list> Regards.
Your ACLs just allow and disallow connections most commonly for non-registering endpoints that Freeswitch communicates with. In your external sip profile you can assign a context with which traffic can be routed with using your inbound dialplan. You should define your context within your dialplan profile. With this, you can either write your entire dialplan or use includes to create a subdirectory that holds all the specific settings instead of a more "global" context definition. <http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_transfer> On Fri, May 6, 2011 at 7:00 PM, FERNANDO VILLARROEL <fvillarroel@yahoo.com>wrote:
Dear All.
How i can change to a private context like "my_context" for inbound traffic from gateways authorized on ACL and how i can assign different private context for each gateway authorized in ACL, like:
<list name="domains" default="deny"> <node type="allow" cidr="190.XXX.XX.XXX/32"/> context foo <node type="allow" cidr="66.X.XXX.XX/32"/> context foo1
</list>
Regards.
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
in the context of the SIP profile receiving the calls, you need to add some rules, where you put some conditions on network_addr and make the required action. Basically, the idea is: <extension name="from_gatewayfoo"> <condition field="network_addr" expression="190.XXX.XX.XXX"/> <condition field="destination_number" expression="^\(.*)$"> <action application="transfer" data="$1 XML foo"/> </condition> </extension> You can also use this to do some stuff on your calls, like setting accountcode or normalizing your destination_number format before the transfer, in order to clean your gateway context (foo) and increase readability. David Ponzone Direction Technique email: david.ponzone@ipeva.fr tel: 01 74 03 18 97 gsm: 06 66 98 76 34 Service Client IPeva tel: 0811 46 26 26 www.ipeva.fr - www.ipeva-studio.com Ce message et toutes les pièces jointes sont confidentiels et établis à l'intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisée est interdite. Tout message électronique est susceptible d'altération. IPeva décline toute responsabilité au titre de ce message s'il a été altéré, déformé ou falsifié. Si vous n'êtes pas destinataire de ce message, merci de le détruire immédiatement et d'avertir l'expéditeur. Le 07/05/2011 à 04:00, FERNANDO VILLARROEL a écrit :
Dear All.
How i can change to a private context like "my_context" for inbound traffic from gateways authorized on ACL and how i can assign different private context for each gateway authorized in ACL, like:
<list name="domains" default="deny"> <node type="allow" cidr="190.XXX.XX.XXX/32"/> context foo <node type="allow" cidr="66.X.XXX.XX/32"/> context foo1
</list>
Regards.
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
participants (3)
-
Brad Mina
-
David Ponzone
-
FERNANDO VILLARROEL