<div dir="ltr">Try¬†<span style="font-size:12.8px">require-nested=&quot;false&quot; on the destination_number condition.</span></div><div class="gmail_extra"><br><div class="gmail_quote">On 5 July 2016 at 09:37, Panagiotis Skoulikaritis <span dir="ltr">&lt;<a href="mailto:pskoul@gmail.com" target="_blank">pskoul@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dear all<br>
<br>
I&#39;m trying to add a &quot;+&quot; sign in front of the cli before it is send out.<br>
If the cli contains already a &quot;+&quot; sign or if the cli starts with 1-9<br>
everything works, but if the cli starts with 00 the call fails with 480.<br>
<br>
<br>
Any idea what might cause this ?<br>
<br>
Bellow is the dialplan<br>
<br>
<br>
&lt;extension name=&quot;test_cli&quot;&gt;<br>
&lt;condition field=&quot;network_addr&quot;<br>
expression=&quot;^(^xx\.xx\.xx\.xx|^xx\.xx\.xx\.xx)$&quot;/&gt;<br>
&lt;condition field=&quot;destination_number&quot; expression=&quot;^1234#(\d+)$&quot;&gt;<br>
&lt;condition field=&quot;caller_id_number&quot; expression=&quot;^(00)(\d+)$&quot; break=&quot;never&quot;&gt;<br>
&lt;action inline=&quot;true&quot; application=&quot;set&quot;<br>
data=&quot;effective_caller_id_number=+$2&quot;/&gt;<br>
&lt;action inline=&quot;true&quot; application=&quot;set&quot;<br>
data=&quot;effective_caller_id_name=+$2&quot;/&gt;<br>
&lt;/condition&gt;<br>
&lt;condition field=&quot;caller_id_number&quot; expression=&quot;^([1-9]\d+)$&quot; break=&quot;never&quot;&gt;<br>
&lt;action inline=&quot;true&quot; application=&quot;set&quot;<br>
data=&quot;effective_caller_id_number=+$1&quot;/&gt;<br>
&lt;action inline=&quot;true&quot; application=&quot;set&quot;<br>
data=&quot;effective_caller_id_name=+$1&quot;/&gt;<br>
&lt;/condition&gt;<br>
&lt;action application=&quot;set&quot; data=&quot;call_direction=outgoing&quot;/&gt;<br>
&lt;action application=&quot;set&quot; data=&quot;hangup_after_bridge=true&quot;/&gt;<br>
&lt;action application=&quot;set&quot; data=&quot;continue_on_fail=true&quot;/&gt;<br>
&lt;action application=&quot;set&quot; data=&quot;sip_cid_in_1xx=false&quot;/&gt;<br>
&lt;action application=&quot;set&quot; data=&quot;inherit_codec=true&quot;/&gt;<br>
&lt;action application=&quot;set&quot; data=&quot;accountcode=${sip_h_X-ACCOUNTCODE}&quot;<br>
inline=&quot;true&quot;/&gt;<br>
&lt;action application=&quot;export&quot;<br>
data=&quot;nolocal:accountcode=${sip_h_X-ACCOUNTCODE}&quot; inline=&quot;true&quot;/&gt;<br>
&lt;action application=&quot;unset&quot; data=&quot;sip_h_X-ACCOUNTCODE&quot; inline=&quot;true&quot;/&gt;<br>
&lt;action application=&quot;set&quot; data=&quot;execute_on_answer=sched_hangup +21600<br>
alloted_timeout&quot;/&gt;<br>
&lt;action application=&quot;bridge&quot; data=&quot;sofia/external/+$1@yy.yy.yy.yy:5060&quot;/&gt;<br>
&lt;action application=&quot;bridge&quot; data=&quot;sofia/external/+$1@zz.zz.zz.zz:5060&quot;/&gt;<br>
&lt;/condition&gt;<br>
&lt;/extension&gt;<br>
<br>
<br>
the logs I&#39;m getting when the call fails<br>
<br>
Dialplan: sofia/external/<a href="mailto:00123456789@192.168.157.14">00123456789@192.168.157.14</a> parsing<br>
[public-&gt;test_cli] continue=false<br>
Dialplan: sofia/external/<a href="mailto:00123456789@192.168.157.14">00123456789@192.168.157.14</a> Regex (PASS)<br>
[test_cli] network_addr(192.168.160.10) =~<br>
/^(^192\.168\.160\.10|^192\.168\.170\.10)$/ break=on-false<br>
|--- Dialplan: Processing recursive conditions level:1<br>
[test_cli_recur_1] require-nested=TRUE<br>
|--- Dialplan: sofia/external/<a href="mailto:00123456789@192.168.157.14">00123456789@192.168.157.14</a> Regex (PASS)<br>
[test_cli_recur_1] caller_id_number(00123456789) =~ /^(00)(\d+)$/<br>
break=never<br>
|--- Dialplan: sofia/external/<a href="mailto:00123456789@192.168.157.14">00123456789@192.168.157.14</a> Action<br>
set(effective_caller_id_number=+123456789) INLINE<br>
EXECUTE sofia/external/<a href="mailto:00123456789@192.168.157.14">00123456789@192.168.157.14</a><br>
set(effective_caller_id_number=+123456789)<br>
2016-07-05 04:12:06.258273 [DEBUG] mod_dptools.c:1469<br>
sofia/external/<a href="mailto:00123456789@192.168.157.14">00123456789@192.168.157.14</a> SET<br>
[effective_caller_id_number]=[+123456789]<br>
|--- Dialplan: sofia/external/<a href="mailto:00123456789@192.168.157.14">00123456789@192.168.157.14</a> Action<br>
set(effective_caller_id_name=+123456789) INLINE<br>
EXECUTE sofia/external/<a href="mailto:00123456789@192.168.157.14">00123456789@192.168.157.14</a><br>
set(effective_caller_id_name=+123456789)<br>
2016-07-05 04:12:06.258273 [DEBUG] mod_dptools.c:1469<br>
sofia/external/<a href="mailto:00123456789@192.168.157.14">00123456789@192.168.157.14</a> SET<br>
[effective_caller_id_name]=[+123456789]<br>
|--- Dialplan: sofia/external/<a href="mailto:00123456789@192.168.157.14">00123456789@192.168.157.14</a> Regex (FAIL)<br>
[test_cli_recur_1] caller_id_number(00123456789) =~ /^([1-9]\d+)$/<br>
break=never<br>
2016-07-05 04:12:06.258273 [DEBUG] switch_core_state_machine.c:216<br>
(sofia/external/<a href="mailto:00123456789@192.168.157.14">00123456789@192.168.157.14</a>) State Change CS_ROUTING -&gt;<br>
CS_EXECUTE<br>
2016-07-05 04:12:06.258273 [DEBUG] switch_core_session.c:1396 Send<br>
signal sofia/external/<a href="mailto:00123456789@192.168.157.14">00123456789@192.168.157.14</a> [BREAK]<br>
2016-07-05 04:12:06.258273 [DEBUG] switch_core_state_machine.c:528<br>
(sofia/external/<a href="mailto:00123456789@192.168.157.14">00123456789@192.168.157.14</a>) State ROUTING going to sleep<br>
2016-07-05 04:12:06.258273 [DEBUG] switch_core_state_machine.c:472<br>
(sofia/external/<a href="mailto:00123456789@192.168.157.14">00123456789@192.168.157.14</a>) Running State Change CS_EXECUTE<br>
2016-07-05 04:12:06.258273 [DEBUG] switch_core_state_machine.c:535<br>
(sofia/external/<a href="mailto:00123456789@192.168.157.14">00123456789@192.168.157.14</a>) State EXECUTE<br>
2016-07-05 04:12:06.258273 [DEBUG] mod_sofia.c:178<br>
sofia/external/<a href="mailto:00123456789@192.168.157.14">00123456789@192.168.157.14</a> SOFIA EXECUTE<br>
2016-07-05 04:12:06.258273 [DEBUG] switch_core_state_machine.c:258<br>
sofia/external/<a href="mailto:00123456789@192.168.157.14">00123456789@192.168.157.14</a> Standard EXECUTE<br>
EXECUTE sofia/external/<a href="mailto:00123456789@192.168.157.14">00123456789@192.168.157.14</a> set(outside_call=true)<br>
2016-07-05 04:12:06.258273 [DEBUG] mod_dptools.c:1469<br>
sofia/external/<a href="mailto:00123456789@192.168.157.14">00123456789@192.168.157.14</a> SET [outside_call]=[true]<br>
EXECUTE sofia/external/<a href="mailto:00123456789@192.168.157.14">00123456789@192.168.157.14</a><br>
export(RFC2822_DATE=Tue, 05 Jul 2016 04:12:06 +0000)<br>
2016-07-05 04:12:06.258273 [DEBUG] switch_channel.c:1267 EXPORT<br>
(export_vars) [RFC2822_DATE]=[Tue, 05 Jul 2016 04:12:06 +0000]<br>
2016-07-05 04:12:06.258273 [NOTICE] switch_core_state_machine.c:315<br>
sofia/external/<a href="mailto:00123456789@192.168.157.14">00123456789@192.168.157.14</a> has executed the last dialplan<br>
instruction, hanging up.<br>
2016-07-05 04:12:06.258273 [NOTICE] switch_core_state_machine.c:317<br>
Hangup sofia/external/<a href="mailto:00123456789@192.168.157.14">00123456789@192.168.157.14</a> [CS_EXECUTE]<br>
[NORMAL_CLEARING]<br>
2016-07-05 04:12:06.258273 [DEBUG] switch_channel.c:3242 Send signal<br>
sofia/external/<a href="mailto:00123456789@192.168.157.14">00123456789@192.168.157.14</a> [KILL]<br>
2016-07-05 04:12:06.258273 [DEBUG] switch_core_session.c:1396 Send<br>
signal sofia/external/<a href="mailto:00123456789@192.168.157.14">00123456789@192.168.157.14</a> [BREAK]<br>
2016-07-05 04:12:06.258273 [DEBUG] switch_core_state_machine.c:535<br>
(sofia/external/<a href="mailto:00123456789@192.168.157.14">00123456789@192.168.157.14</a>) State EXECUTE going to sleep<br>
2016-07-05 04:12:06.258273 [DEBUG] switch_core_state_machine.c:472<br>
(sofia/external/<a href="mailto:00123456789@192.168.157.14">00123456789@192.168.157.14</a>) Running State Change CS_HANGUP<br>
2016-07-05 04:12:06.258273 [DEBUG] switch_core_state_machine.c:735<br>
(sofia/external/<a href="mailto:00123456789@192.168.157.14">00123456789@192.168.157.14</a>) Callstate Change RINGING -&gt;<br>
HANGUP<br>
2016-07-05 04:12:06.258273 [DEBUG] switch_core_state_machine.c:737<br>
(sofia/external/<a href="mailto:00123456789@192.168.157.14">00123456789@192.168.157.14</a>) State HANGUP<br>
2016-07-05 04:12:06.258273 [DEBUG] mod_sofia.c:413 Channel<br>
sofia/external/<a href="mailto:00123456789@192.168.157.14">00123456789@192.168.157.14</a> hanging up, cause: NORMAL_CLEARING<br>
2016-07-05 04:12:06.258273 [DEBUG] mod_sofia.c:549 Responding to INVITE<br>
with: 480<br>
2016-07-05 04:12:06.258273 [DEBUG] switch_core_state_machine.c:60<br>
sofia/external/<a href="mailto:00123456789@192.168.157.14">00123456789@192.168.157.14</a> Standard HANGUP, cause:<br>
NORMAL_CLEARING<br>
2016-07-05 04:12:06.258273 [DEBUG] switch_core_state_machine.c:737<br>
(sofia/external/<a href="mailto:00123456789@192.168.157.14">00123456789@192.168.157.14</a>) State HANGUP going to sleep<br>
2016-07-05 04:12:06.258273 [DEBUG] switch_core_state_machine.c:504<br>
(sofia/external/<a href="mailto:00123456789@192.168.157.14">00123456789@192.168.157.14</a>) State Change CS_HANGUP -&gt;<br>
CS_REPORTING<br>
2016-07-05 04:12:06.258273 [DEBUG] switch_core_session.c:1396 Send<br>
signal sofia/external/<a href="mailto:00123456789@192.168.157.14">00123456789@192.168.157.14</a> [BREAK]<br>
2016-07-05 04:12:06.258273 [DEBUG] switch_core_state_machine.c:472<br>
(sofia/external/<a href="mailto:00123456789@192.168.157.14">00123456789@192.168.157.14</a>) Running State Change<br>
CS_REPORTING<br>
2016-07-05 04:12:06.258273 [DEBUG] switch_core_state_machine.c:823<br>
(sofia/external/<a href="mailto:00123456789@192.168.157.14">00123456789@192.168.157.14</a>) State REPORTING<br>
2016-07-05 04:12:06.258273 [DEBUG] switch_core_state_machine.c:104<br>
sofia/external/<a href="mailto:00123456789@192.168.157.14">00123456789@192.168.157.14</a> Standard REPORTING, cause:<br>
NORMAL_CLEARING<br>
2016-07-05 04:12:06.258273 [DEBUG] switch_core_state_machine.c:823<br>
(sofia/external/<a href="mailto:00123456789@192.168.157.14">00123456789@192.168.157.14</a>) State REPORTING going to sleep<br>
2016-07-05 04:12:06.258273 [DEBUG] switch_core_state_machine.c:498<br>
(sofia/external/<a href="mailto:00123456789@192.168.157.14">00123456789@192.168.157.14</a>) State Change CS_REPORTING -&gt;<br>
CS_DESTROY<br>
2016-07-05 04:12:06.258273 [DEBUG] switch_core_session.c:1396 Send<br>
signal sofia/external/<a href="mailto:00123456789@192.168.157.14">00123456789@192.168.157.14</a> [BREAK]<br>
2016-07-05 04:12:06.258273 [DEBUG] switch_core_session.c:1623 Session<br>
40729659 (sofia/external/<a href="mailto:00123456789@192.168.157.14">00123456789@192.168.157.14</a>) Locked, Waiting on<br>
external entities<br>
2016-07-05 04:12:06.258273 [NOTICE] switch_core_session.c:1641 Session<br>
40729659 (sofia/external/<a href="mailto:00123456789@192.168.157.14">00123456789@192.168.157.14</a>) Ended<br>
2016-07-05 04:12:06.258273 [NOTICE] switch_core_session.c:1645 Close<br>
Channel sofia/external/<a href="mailto:00123456789@192.168.157.14">00123456789@192.168.157.14</a> [CS_DESTROY]<br>
2016-07-05 04:12:06.258273 [DEBUG] switch_core_state_machine.c:626<br>
(sofia/external/<a href="mailto:00123456789@192.168.157.14">00123456789@192.168.157.14</a>) Running State Change CS_DESTROY<br>
2016-07-05 04:12:06.258273 [DEBUG] switch_core_state_machine.c:636<br>
(sofia/external/<a href="mailto:00123456789@192.168.157.14">00123456789@192.168.157.14</a>) State DESTROY<br>
2016-07-05 04:12:06.258273 [DEBUG] mod_sofia.c:323<br>
sofia/external/<a href="mailto:00123456789@192.168.157.14">00123456789@192.168.157.14</a> SOFIA DESTROY<br>
2016-07-05 04:12:06.258273 [DEBUG] switch_core_state_machine.c:111<br>
sofia/external/<a href="mailto:00123456789@192.168.157.14">00123456789@192.168.157.14</a> Standard DESTROY<br>
2016-07-05 04:12:06.258273 [DEBUG] switch_core_state_machine.c:636<br>
(sofia/external/<a href="mailto:00123456789@192.168.157.14">00123456789@192.168.157.14</a>) State DESTROY going to sleep<br>
2016-07-05 04:13:01.618279 [NOTICE] mod_cdr_csv.c:123 Rotated CDR<br>
logfile /usr/local/freeswitch/log/cdr-csv/cdr-csv/Master.csv<br>
freeswitch@internal&gt;<br>
<br>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" rel="noreferrer" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" rel="noreferrer" 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" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" rel="noreferrer" target="_blank">http://www.freeswitch.org</a><br>
</blockquote></div><br></div>