<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi @Michael,<br>
<br>
I set in dialplan like this:<br>
<br>
<action application="bridge"
data=<a class="moz-txt-link-rfc2396E" href="mailto:sofia/external/386${sip_redirect_contact_user_0:0}@xxx.xxx.xxx.xxx">"sofia/external/386${sip_redirect_contact_user_0:0}@xxx.xxx.xxx.xxx"</a>
/><br>
<br>
sip_redirect_contact_user_0 is set to 051325856, so 0 should be
trimed.<br>
<br>
But in log I get this:<br>
<br>
<br>
EXECUTE <a class="moz-txt-link-abbreviated" href="mailto:sofia/internal/0038618100100@xxx.xxx.xxx.xxx">sofia/internal/0038618100100@xxx.xxx.xxx.xxx</a>
bridge(<a class="moz-txt-link-abbreviated" href="mailto:sofia/external/386051357952@xxx.xxx.xxx.xxx">sofia/external/386051357952@xxx.xxx.xxx.xxx</a>)<br>
<br>
You can see that 0 is not trimed. Can you pls help me why?<br>
<br>
Thanks!<br>
<br>
BR,<br>
Miha<br>
<br>
I have one problem. <br>
<br>
On 2/1/2012 7:25 PM, Michael Collins wrote:
<blockquote
cite="mid:CAKzWOxXBAthM_X2SxSOxvX58qCfj800gMaV2evTZSPENAmh2AA@mail.gmail.com"
type="cite">If you know for a fact that it's only a leading zero
then you can use the variable manipulation features:<br>
<br>
<a moz-do-not-send="true"
href="http://wiki.freeswitch.org/wiki/Manipulating_Channel_Variables">http://wiki.freeswitch.org/wiki/Manipulating_Channel_Variables</a><br>
<br>
-MC<br>
<br>
<div class="gmail_quote">On Wed, Feb 1, 2012 at 1:19 AM, Miha
Zoubek <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:miha@softnet.si">miha@softnet.si</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
how can I strip destination number in my dialplan if the
destination<br>
number is not in condition option.<br>
<br>
<anti-action application="bridge"<br>
data=<a class="moz-txt-link-rfc2396E" href="mailto:sofia/external/386${sip_redirect_contact_user_0}@xxx.xxx.xxx.xxx">"sofia/external/386${sip_redirect_contact_user_0}@xxx.xxx.xxx.xxx"</a>
/><br>
I need to stip leading zero from
${sip_redirect_contact_user_0} variable.<br>
<br>
Thanks!<br>
Miha<br>
<br>
<br>
--<br>
Best regards / Lep Pozdrav<br>
Miha Zoubek<br>
Softnet d.o.o.<br>
<br>
<br>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a moz-do-not-send="true"
href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a moz-do-not-send="true"
href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a moz-do-not-send="true" href="http://www.cudatel.com"
target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a moz-do-not-send="true" href="http://www.freeswitch.org"
target="_blank">http://www.freeswitch.org</a><br>
<a moz-do-not-send="true" href="http://wiki.freeswitch.org"
target="_blank">http://wiki.freeswitch.org</a><br>
<a moz-do-not-send="true" href="http://www.cluecon.com"
target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a moz-do-not-send="true"
href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a moz-do-not-send="true"
href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users"
target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a moz-do-not-send="true"
href="http://lists.freeswitch.org/mailman/options/freeswitch-users"
target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a moz-do-not-send="true" href="http://www.freeswitch.org"
target="_blank">http://www.freeswitch.org</a><br>
</blockquote>
</div>
<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
<a class="moz-txt-link-abbreviated" href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server
<a class="moz-txt-link-freetext" href="http://www.cudatel.com">http://www.cudatel.com</a>
Official FreeSWITCH Sites
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://wiki.freeswitch.org">http://wiki.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://www.cluecon.com">http://www.cluecon.com</a>
FreeSWITCH-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
</pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
Best regards / Lep Pozdrav
Miha Zoubek
Softnet d.o.o. </pre>
</body>
</html>