<div dir="ltr"><div>Best I can think of:</div>mod_lcr has a regex you can apply to the different gateways. You need to set it per row, however, rather than per provider.<div><br clear="all"><div dir="ltr"><span style="font-family:Verdana,Arial,Helvetica,sans-serif"><span style="font-size:small">-Avi</span></span></div>
<br><br><div class="gmail_quote">On Tue, May 29, 2012 at 2:45 PM, Sherif Omran <span dir="ltr"><<a href="mailto:sherifomran2000@yahoo.com" target="_blank">sherifomran2000@yahoo.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello guys,<br>
<br>
I have a german gateway among other gateways going to the same dialling plan and it does not send the interational caller ID prefix so I want to add 0049 and strip the first 0 in the caller ID sent.<br>
<br>
But Is it possible to add a condition inside the gateway setting as follows (action applicaiton set ... etc)?<br>
<br>
<gateway name="trunk_1000"><br>
<param name="realm" value="<a href="http://bluesip.net" target="_blank">bluesip.net</a>"/><br>
<param name="username" value="xxxxxxxx"/><br>
<param name="password" value="xxxxxxxx"/><br>
<param name="register" value="true"/><br>
<action application="set" data="effective_caller_id_number=0${caller_id_number}"/><br>
<param name="extension" value="kgvm-1002"/><br>
</gateway<br>
<br>
I don't want to add it to the dialing plan in order not to affect the caller id from other gateways.<br>
Thank you<br>
<br>
Sherif<br>
<br>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
Join Us At ClueCon - Aug 7-9, 2012<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></div></div>