<div dir="ltr">I think you need to us<font face="arial, helvetica, sans-serif">e ${<span style>sip_redirect_contact_</span><span style>user_0} - the "raw" form only works for thing in the <a href="http://wiki.freeswitch.org/wiki/Caller_profile_field">caller_profile</a>, e.g. </span>destination_number.</font><br clear="all">
<div dir="ltr"><span style="font-family:Verdana,Arial,Helvetica,sans-serif;font-size:small">-Avi</span><font face="Verdana, Arial, Helvetica, sans-serif"><br></font></div><br>
<br><br><div class="gmail_quote">On Mon, Feb 6, 2012 at 12:32 PM, Miha Zoubek <span dir="ltr"><<a 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">
<div bgcolor="#FFFFFF" text="#000000">
Just one questione.<br>
<br>
In my info I can see that variable is set:<br>
<br>
<small>variable_sip_redirect_contact_user_0: [051357952]</small><br>
<br>
After this variable is set I a condition in my dialplan:<br>
<small><br>
<condition field="sip_redirect_contact_user_0" expression="^$"
></small><br>
<br>
but in my log I can see that this varible is not set in condition :<br>
<br>
<small> Regex (PASS) [IZVEDI_PREUSMERITEV]
destination_number(IZVEDI_PREUSMERITEV) =~ e<br>
Dialplan: <a href="mailto:sofia/internal/0038618100100@xxx.xxx.xxx.xxx" target="_blank">sofia/internal/0038618100100@xxx.xxx.xxx.xxx</a> Regex
(PASS) [IZVEDI_PREUSMERITEV] sip_redirect_contact_user_0() =~ /^$/
break</small><br>
<br>
I am asking this because I can not make appropriate condition if
this variable is not in my condition.<br>
<br>
Thanks!<span class="HOEnZb"><font color="#888888"><br>
<br>
miha</font></span><div><div class="h5"><br>
<br>
On 2/6/2012 9:11 AM, Miha Zoubek wrote:
<blockquote type="cite">
HI @Avi,<br>
<br>
I do not know how did I missed that.<br>
<br>
Not it works:)<br>
<br>
Thanks!<br>
<br>
BR,<br>
Miha<br>
<br>
On 2/6/2012 8:50 AM, Avi Marcus wrote:
<blockquote type="cite">
<div dir="ltr">Try ${sip_redirect_contact_user_0:1} to tell it
to skip character 0...<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>
<div class="gmail_quote">On Mon, Feb 6, 2012 at 9:44 AM, Miha
Zoubek <span dir="ltr"><<a href="mailto:miha@softnet.si" target="_blank">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">
<div bgcolor="#FFFFFF" text="#000000"> Hi @Michael,<br>
<br>
I set in dialplan like this:<br>
<br>
<action application="bridge" data=<a href="mailto:sofia/external/386$%7Bsip_redirect_contact_user_0:0%7D@xxx.xxx.xxx.xxx" target="_blank">"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 href="mailto:sofia/internal/0038618100100@xxx.xxx.xxx.xxx" target="_blank">sofia/internal/0038618100100@xxx.xxx.xxx.xxx</a>
bridge(<a href="mailto:sofia/external/386051357952@xxx.xxx.xxx.xxx" target="_blank">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>
<div>
<div> <br>
On 2/1/2012 7:25 PM, Michael Collins wrote:
<blockquote 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 href="http://wiki.freeswitch.org/wiki/Manipulating_Channel_Variables" target="_blank">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 href="mailto:miha@softnet.si" target="_blank">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 href="mailto:sofia/external/386$%7Bsip_redirect_contact_user_0%7D@xxx.xxx.xxx.xxx" target="_blank">"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 href="mailto:consulting@freeswitch.org" target="_blank">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>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">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>
<br>
<fieldset></fieldset>
<br>
<pre>_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a>
Official FreeSWITCH Sites
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a>
FreeSWITCH-users mailing list
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a>
</pre>
</blockquote>
<br>
<br>
<pre cols="72">--
Best regards / Lep Pozdrav
Miha Zoubek
Softnet d.o.o. </pre>
</div>
</div>
</div>
<br>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">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>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">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>
<br>
</blockquote>
</div>
<br>
</div>
<br>
<fieldset></fieldset>
<br>
<pre>_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a>
Official FreeSWITCH Sites
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a>
FreeSWITCH-users mailing list
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a>
</pre>
</blockquote>
<br>
<br>
<pre cols="72">--
Best regards / Lep Pozdrav
Miha Zoubek
Softnet d.o.o. </pre>
<br>
<fieldset></fieldset>
<br>
<pre>_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a>
Official FreeSWITCH Sites
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a>
FreeSWITCH-users mailing list
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a>
</pre>
</blockquote>
<br>
<br>
<pre cols="72">--
Best regards / Lep Pozdrav
Miha Zoubek
Softnet d.o.o. </pre>
</div></div></div>
<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>
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>
<br></blockquote></div><br></div>