<div dir="ltr"><div>Hello,</div><div>I think it&#39;s a kind of newbie question, but i&#39;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.</div><div><br></div><div>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.</div><div>Example :</div><div><div>        &lt;condition field=&quot;${acl(${network_addr} T_CNX_VPN)}&quot; expression=&quot;true&quot; break=&quot;on-true&quot;&gt;</div><div>            &lt;action inline=&quot;true&quot; application=&quot;set&quot; data=&quot;accountcode=T_CNX&quot;/&gt;</div><div>        &lt;/condition&gt;</div></div><div>It works but the dialplan needs to be modified for each new trunk.</div><div><br></div><div>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.</div><div>I tested sip_acl_authed_by, but this seems to be available only when the call is authenticated (?)</div><div><br></div><div>I&#39;m sure a lot of people had the same question</div><div>What would be your advice ?</div><div><br></div><div>D. Jeannerod</div></div>