[Freeswitch-users] Striping destination number
Avi Marcus
avi at avimarcus.net
Mon Feb 6 10:50:01 MSK 2012
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 at 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 at 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 at xxx.xxx.xxx.xxx bridge(
> sofia/external/386051357952 at 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 at 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 at 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 at freeswitch.org
>> http://www.freeswitchsolutions.com
>>
>>
>>
>>
>> Official FreeSWITCH Sites
>> http://www.freeswitch.org
>> http://wiki.freeswitch.org
>> http://www.cluecon.com
>>
>> 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
>>
>
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:consulting at freeswitch.orghttp://www.freeswitchsolutions.com
>
> FreeSWITCH-powered IP PBX: The CudaTel Communication Server
>
> Official FreeSWITCH Siteshttp://www.freeswitch.orghttp://wiki.freeswitch.orghttp://www.cluecon.com
>
> FreeSWITCH-users mailing listFreeSWITCH-users at lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.freeswitch.org
>
>
>
> --
> Best regards / Lep Pozdrav
> Miha Zoubek
> Softnet d.o.o.
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
>
>
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> 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/20120206/b8d06297/attachment.html
Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users
mailing list