Just one questione.
In my info I can see that variable is set:
variable_sip_redirect_contact_user_0: [051357952]
After this variable is set I a condition in my dialplan:
<condition field="sip_redirect_contact_user_0" expression="^$" >
but in my log I can see that this varible is not set in condition :
Regex (PASS) [IZVEDI_PREUSMERITEV] destination_number(IZVEDI_PREUSMERITEV) =~ e
Dialplan: sofia/internal/0038618100100@xxx.xxx.xxx.xxx Regex (PASS) [IZVEDI_PREUSMERITEV] sip_redirect_contact_user_0() =~ /^$/ break
I am asking this because I can not make appropriate condition if this variable is not in my condition.
Thanks!
miha
On 2/6/2012 9:11 AM, Miha Zoubek wrote:HI @Avi,
I do not know how did I missed that.
Not it works:)
Thanks!
BR,
Miha
On 2/6/2012 8:50 AM, Avi Marcus wrote: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" />
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" />
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.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
-- 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.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
-- 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
-- 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