Try ${sip_redirect_contact_user_0:1} to tell it to skip character 0... -Avi On Mon, Feb 6, 2012 at 9:44 AM, Miha Zoubek <miha@softnet.si> wrote:
Hi @Michael,
I set in dialplan like this:
<action application="bridge" data= "sofia/external/386${sip_redirect_contact_user_0:0}@xxx.xxx.xxx.xxx"<sofia/external/386$%7Bsip_redirect_contact_user_0:0%7D@xxx.xxx.xxx.xxx>/>
sip_redirect_contact_user_0 is set to 051325856, so 0 should be trimed.
But in log I get this:
EXECUTE sofia/internal/0038618100100@xxx.xxx.xxx.xxx bridge( sofia/external/386051357952@xxx.xxx.xxx.xxx)
You can see that 0 is not trimed. Can you pls help me why?
Thanks!
BR, Miha
I have one problem.
On 2/1/2012 7:25 PM, Michael Collins wrote:
If you know for a fact that it's only a leading zero then you can use the variable manipulation features:
http://wiki.freeswitch.org/wiki/Manipulating_Channel_Variables
-MC
On Wed, Feb 1, 2012 at 1:19 AM, Miha Zoubek <miha@softnet.si> wrote:
Hi,
how can I strip destination number in my dialplan if the destination number is not in condition option.
<anti-action application="bridge" data="sofia/external/386${sip_redirect_contact_user_0}@xxx.xxx.xxx.xxx"<sofia/external/386$%7Bsip_redirect_contact_user_0%7D@xxx.xxx.xxx.xxx>/> I need to stip leading zero from ${sip_redirect_contact_user_0} variable.
Thanks! Miha
-- Best regards / Lep Pozdrav Miha Zoubek Softnet d.o.o.
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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
_________________________________________________________________________ Professional FreeSWITCH Consulting Services:consulting@freeswitch.orghttp://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Serverhttp://www.cudatel.com
Official FreeSWITCH Siteshttp://www.freeswitch.orghttp://wiki.freeswitch.orghttp://www.cluecon.com
FreeSWITCH-users mailing listFreeSWITCH-users@lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.frees...
-- Best regards / Lep Pozdrav Miha Zoubek Softnet d.o.o.
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.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