[Freeswitch-users] Gateways ACL Context

David Ponzone david.ponzone at ipeva.fr
Sun May 8 05:04:09 MSD 2011


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 at 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 at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20110508/0a5223df/attachment.html 


More information about the FreeSWITCH-users mailing list