Hello,I think it's a kind of newbie question, but i'm trying to find the simplest way of detecting the source of a call (public trunks), which of course rely on the source IP of the call.I already defined one ACL per trunk, to authorize only allowed IP adresses, and test the different acls in the dialplan to identify the source trunk of a call, and set the associated accountcode.Example :<condition field="${acl(${network_addr} T_CNX_VPN)}" expression="true" break="on-true"><action inline="true" application="set" data="accountcode=T_CNX"/></condition>It works but the dialplan needs to be modified for each new trunk.I am wondering if there is a best way to do that, using for example a channel variable, containing the ACL which matched for the call.I tested sip_acl_authed_by, but this seems to be available only when the call is authenticated (?)I'm sure a lot of people had the same questionWhat would be your advice ?D. Jeannerod
_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com
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