fieldpark,<br><br>It would be far simpler to just ignore it in the regex of the 2nd extension - then you wouldn't need the 1st extension at all!<br><br><extension name="9_to_GW"><br>
<condition field="dest_num" expression="^\+?(9\d+)$"><br>
<action application="bridge" data="sofia/internal/$<a href="mailto:1@192.168.200.101" target="_blank">1@192.168.200.101</a>"/><br>
</condition><br>
</extension><br>
<br>The ? after the \+ makes it optional. This extension will match both 9123 and +9123, and bridge both as <a href="mailto:123@192.168.200.101">123@192.168.200.101</a><br><br>The only reason I can think of for stripping it first would be if you have a very long dialplan, where it might then be simpler than optionally checking for a + in every regex in the rest of the dialplan. For a simple dialplan the above extension would be simpler.<br>
<br><br>Avi's suggestion should work fine and would look like this:<br><br><div class="im"><extension name="strip_plus" continue="true"><br>
<condition field="destination_number" expression="^\+(\d+)$"><br></div> <action <span style="background-color:rgb(255, 255, 51)"></span>application="set" data="dest_num=$1"/><br>
<anti-action <span style="background-color:rgb(255, 255, 51)"></span>application="set" data="dest_num=${destination_number}"/><br>
</condition><br></extension><br><extension name="9_to_GW"><br> <condition field="${dest_num}" expression="^(9\d+)$"><br> <action application="bridge" data="sofia/internal/$<a href="mailto:1@192.168.200.101" target="_blank">1@192.168.200.101</a>"/><br>
</condition><br></extension><br><br><br>I'd suggest a transfer would be simpler than doing this though because it this approach changes the field you're accessing in every extension. A transfer would rewrite the destination_number so you wouldn't need to check a channel variable each time any more. Yes it does reexecute the dialplan, but if it's placed as the very first extension that should have a very small impact on performance (the time taken to run a single regex that fails on the first character is pretty small, and checking a channel variable on every extension is slower than checking the destination_number field so it might actually be faster than the above*).<br>
<br><extension name="strip_plus"><br><div class="im">
<condition field="destination_number" expression="^\+(\d+)$"><br></div> <action <span style="background-color:rgb(255, 255, 51)"></span>application="transfer" data="$1"/><br>
</condition><br></extension><br><extension name="9_to_GW"><br> <condition field="destination_number" expression="^(9\d+)$"><br> <action application="bridge" data="sofia/internal/$<a href="mailto:1@192.168.200.101" target="_blank">1@192.168.200.101</a>"/><br>
</condition><br></extension><br><br><br><br>-Steve<br><br><br>* Looking for a channel variable means looping through the list of all channel variables while destination_number is hardcoded to look it up in the caller profile structure so there's no loop involved.<br>
<br><br><div class="gmail_quote">On 9 May 2011 11:50, Avi Marcus <span dir="ltr"><<a href="mailto:avi@avimarcus.net">avi@avimarcus.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div dir="ltr">As mentioned, that's because you can't set <span style="border-collapse:collapse;font-family:arial, sans-serif;font-size:13px">destination_number -- it's a reserved variable.</span><div>
<font face="arial, sans-serif"><span style="border-collapse:collapse">Either a) transfer to the new number, or b) create a new variable for processing the number.</span></font></div>
<div><font face="arial, sans-serif"><span style="border-collapse:collapse">e.g. with an anti-action that sets the new variable to be the unchanged number.</span></font></div>
<div><font face="arial, sans-serif"><span style="border-collapse:collapse">-Avi<font color="#888888"><br></font></span></font><div><div></div><div class="h5"><div><font face="arial, sans-serif"><span style="border-collapse:collapse"><br>
</span></font><br><div class="gmail_quote">On Sun, May 8, 2011 at 4:56 AM, fieldpeak <span dir="ltr"><<a href="mailto:fieldpeak@gmail.com" target="_blank">fieldpeak@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
i tested the inline usage, unluckly, it failed. it looks the inline still can not effect 9 to GW rule...<br><br><i>dial plan is:</i><div><br><extension name="remove_plus_of_dst_num" continue="true"><br>
<condition field="destination_number" expression="^\+(\d+)$"><br></div> <action <span style="background-color:rgb(255, 255, 51)">inline="true" </span>application="set" data="destination_number=$1"/><div>
<br>
</condition><br></extension><br><br>...<br><extension name="9_to_GW" ><br> <condition field="destination_number" expression="^(9\d+)$"><br> <action application="bridge" data="sofia/internal/$<a href="mailto:1@192.168.200.101" target="_blank">1@192.168.200.101</a>"/><br>
</condition><br></extension><br><br></div><i>the log is:</i><br><br>freeswitch@mypc><br>2011-05-08 09:35:40.067099 [ERR] switch_xml.c:1311 Couldnt open C:\FreeSWITCH\conf\<br>autoload_configs\..\sip_profiles\external/*.xml (No such file or directory)<br>
2011-05-08 09:35:40.543126 [ERR] switch_xml.c:1311 Couldnt open C:\FreeSWITCH\conf\<br>dialplan\public/*.xml (No such file or directory)<br><br>+OK [Success]<br><br>2011-05-08 09:35:41.115159 [INFO] mod_pocketsphinx.c:482 PocketSphinx Reloaded<br>
2011-05-08 09:35:41.117159 [INFO] switch_time.c:999 Timezone reloaded 530 defini<br>tions<br>2011-05-08 09:35:44.882374 [DEBUG] sofia.c:6488 IP 192.168.200.201 Approved by a<div><br>cl "<a href="http://192.168.0.0/16%5B%5D" target="_blank">192.168.0.0/16[]</a>". Access Granted.<br>
</div>
2011-05-08 09:35:44.883374 [NOTICE] switch_channel.c:812 New Channel sofia/inter<br>nal/<a href="mailto:4001@192.168.200.100" target="_blank">4001@192.168.200.100</a> [efeb55d7-3712-4a30-9eba-786ad83b2e90]<br>2011-05-08 09:35:44.884374 [DEBUG] sofia.c:4760 Channel sofia/internal/4001@192.<div>
<br>
168.200.100 entering state [received][100]<br></div>2011-05-08 09:35:44.884374 [DEBUG] sofia.c:4771 Remote SDP:<br>v=0<br>o=AudiocodesGW 2088509637 2088509507 IN IP4 192.168.200.201<div><br>s=Phone-Call<br>c=IN IP4 192.168.200.201<br>
t=0 0<br></div>m=audio 6020 RTP/AVP 8 0 96<div><br>a=rtpmap:8 PCMA/8000<br>a=rtpmap:0 PCMU/8000<br>a=rtpmap:96 telephone-event/8000<br>a=fmtp:96 0-15<br>a=ptime:20<br><br></div>2011-05-08 09:35:44.884374 [DEBUG] sofia.c:4908 (sofia/internal/4001@192.168.200<div>
<br>
.100) State Change CS_NEW -> CS_INIT<br></div>2011-05-08 09:35:44.884374 [DEBUG] switch_core_session.c:1116 Send signal sofia/<div><br>internal/<a href="mailto:4001@192.168.200.100" target="_blank">4001@192.168.200.100</a> [BREAK]<br>
</div>2011-05-08 09:35:44.885374 [DEBUG] switch_core_state_machine.c:325 (sofia/intern<div><br>
al/<a href="mailto:4001@192.168.200.100" target="_blank">4001@192.168.200.100</a>) Running State Change CS_INIT<br></div>2011-05-08 09:35:44.885374 [DEBUG] switch_core_state_machine.c:361 (sofia/intern<div><br>
al/<a href="mailto:4001@192.168.200.100" target="_blank">4001@192.168.200.100</a>) State INIT<br></div>
2011-05-08 09:35:44.885374 [DEBUG] mod_sofia.c:84 sofia/internal/4001@192.168.20<br>0.100 SOFIA INIT<br>2011-05-08 09:35:44.885374 [DEBUG] mod_sofia.c:124 (sofia/internal/4001@192.168.<div><br>200.100) State Change CS_INIT -> CS_ROUTING<br>
</div>
2011-05-08 09:35:44.885374 [DEBUG] switch_core_session.c:1116 Send signal sofia/<div><br>internal/<a href="mailto:4001@192.168.200.100" target="_blank">4001@192.168.200.100</a> [BREAK]<br></div>2011-05-08 09:35:44.885374 [DEBUG] switch_core_state_machine.c:361 (sofia/intern<div>
<br>
al/<a href="mailto:4001@192.168.200.100" target="_blank">4001@192.168.200.100</a>) State INIT going to sleep<br></div>2011-05-08 09:35:44.885374 [DEBUG] switch_core_state_machine.c:325 (sofia/intern<div><br>al/<a href="mailto:4001@192.168.200.100" target="_blank">4001@192.168.200.100</a>) Running State Change CS_ROUTING<br>
</div>
2011-05-08 09:35:44.885374 [DEBUG] switch_channel.c:1668 (sofia/internal/4001@19<div><br>2.168.200.100) Callstate Change DOWN -> RINGING<br></div>2011-05-08 09:35:44.885374 [DEBUG] switch_core_state_machine.c:364 (sofia/intern<div>
<br>
al/<a href="mailto:4001@192.168.200.100" target="_blank">4001@192.168.200.100</a>) State ROUTING<br></div>2011-05-08 09:35:44.885374 [DEBUG] mod_sofia.c:147 sofia/internal/4001@192.168.2<br>00.100 SOFIA ROUTING<br>2011-05-08 09:35:44.885374 [DEBUG] switch_core_state_machine.c:77 sofia/internal<div>
<br>
/<a href="mailto:4001@192.168.200.100" target="_blank">4001@192.168.200.100</a> Standard ROUTING<br></div>2011-05-08 09:35:44.885374 [INFO] mod_dialplan_xml.c:331 Processing 4001 <4001>-<br>>+9123 in context default<br>
Dialplan: sofia/internal/<a href="mailto:4001@192.168.200.100" target="_blank">4001@192.168.200.100</a> parsing [default->unloop] continue<br>
=false<br>Dialplan: sofia/internal/<a href="mailto:4001@192.168.200.100" target="_blank">4001@192.168.200.100</a> Regex (PASS) [unloop] ${unroll_loo<div><br>ps}(true) =~ /^true$/ break=on-false<br>Dialplan: sofia/internal/<a href="mailto:4001@192.168.200.100" target="_blank">4001@192.168.200.100</a> Regex (FAIL) [unloop] ${sip_looped<br>
_call}() =~ /^true$/ break=on-false<br>Dialplan: sofia/internal/<a href="mailto:4001@192.168.200.100" target="_blank">4001@192.168.200.100</a> parsing <span style="background-color:rgb(255, 255, 102)">[default->remove_plus_of_d</span><br style="background-color:rgb(255, 255, 102)">
<span style="background-color:rgb(255, 255, 102)">st_num] continue=true</span><br style="background-color:rgb(255, 255, 102)"><span style="background-color:rgb(255, 255, 102)">Dialplan: sofia/internal/<a href="mailto:4001@192.168.200.100" target="_blank">4001@192.168.200.100</a> Regex (PASS) [remove_plus_of_dst_n</span><br style="background-color:rgb(255, 255, 102)">
<span style="background-color:rgb(255, 255, 102)">um] destination_number(+9123) =~ /^\+(\d+)$/ break=on-false</span><br style="background-color:rgb(255, 255, 102)"><span style="background-color:rgb(255, 255, 102)">Dialplan: sofia/internal/<a href="mailto:4001@192.168.200.100" target="_blank">4001@192.168.200.100</a> Action set(destination_number=9123</span><br>
</div>
) <span style="background-color:rgb(255, 0, 0)">INLINE</span><div><br>EXECUTE sofia/internal/<a href="mailto:4001@192.168.200.100" target="_blank">4001@192.168.200.100</a> set(destination_number=9123)<br></div>
2011-05-08 09:35:44.888374 [DEBUG] mod_dptools.c:1060 sofia/internal/4001@192.16<div><br>
8.200.100 SET [destination_number]=[9123]<br></div>Dialplan: sofia/internal/<a href="mailto:4001@192.168.200.100" target="_blank">4001@192.168.200.100</a> parsing [default->remove_plus_of_s<br>rc_num] continue=true<br>
Dialplan: sofia/internal/<a href="mailto:4001@192.168.200.100" target="_blank">4001@192.168.200.100</a> Regex (FAIL) [remove_plus_of_src_n<div><br>
um] caller_id_number(4001) =~ /^\+(\d+)$/ break=on-false<br></div>Dialplan: sofia/internal/<a href="mailto:4001@192.168.200.100" target="_blank">4001@192.168.200.100</a> parsing [default->7_8_to_Lync] con<br>tinue=false<br>
Dialplan: sofia/internal/<a href="mailto:4001@192.168.200.100" target="_blank">4001@192.168.200.100</a> Regex (FAIL) [7_8_to_Lync] destina<div><br>
tion_number(+9123) =~ /^([78]\d{3})$/ break=on-false<br></div><span style="background-color:rgb(255, 255, 102)">Dialplan: sofia/internal/<a href="mailto:4001@192.168.200.100" target="_blank">4001@192.168.200.100</a> parsing [default->9_to_GW] continu</span><br style="background-color:rgb(255, 255, 102)">
<span style="background-color:rgb(255, 255, 102)">e=false</span><br style="background-color:rgb(255, 255, 102)"><span style="background-color:rgb(255, 255, 102)">Dialplan: sofia/internal/<a href="mailto:4001@192.168.200.100" target="_blank">4001@192.168.200.100</a> Regex (<span style="background-color:rgb(255, 0, 0)">FAIL</span>) [9_to_GW] destination</span><div>
<br style="background-color:rgb(255, 255, 102)">
<span style="background-color:rgb(255, 255, 102)">_number</span><span style="background-color:rgb(255, 0, 0)">(+9123</span><span style="background-color:rgb(255, 102, 102)">)</span> =~ /^(9\d+)$/ break=on-false<br></div>
Dialplan: sofia/internal/<a href="mailto:4001@192.168.200.100" target="_blank">4001@192.168.200.100</a> parsing [default->1_to_IPP] contin<br>
ue=false<br>Dialplan: sofia/internal/<a href="mailto:4001@192.168.200.100" target="_blank">4001@192.168.200.100</a> Regex (FAIL) [1_to_IPP] destinatio<br>n_number(+9123) =~ /^\+{0,1}(1\d{3})$/ break=on-false<div>
<br>Dialplan: sofia/internal/<a href="mailto:4001@192.168.200.100" target="_blank">4001@192.168.200.100</a> parsing [default->DISA] continue=f<br>
alse<br></div>Dialplan: sofia/internal/<a href="mailto:4001@192.168.200.100" target="_blank">4001@192.168.200.100</a> Regex (FAIL) [DISA] destination_nu<div><br>mber(+9123) =~ /^\*(3472)$/ break=on-false<br></div>
Dialplan: sofia/internal/<a href="mailto:4001@192.168.200.100" target="_blank">4001@192.168.200.100</a> parsing [default->Recordings] cont<br>
inue=false<br>Dialplan: sofia/internal/<a href="mailto:4001@192.168.200.100" target="_blank">4001@192.168.200.100</a> Regex (FAIL) [Recordings] destinat<div><br>ion_number(+9123) =~ /^\*(732673)$/ break=on-false<br>
</div>2011-05-08 09:35:44.889374 [DEBUG] switch_core_state_machine.c:119 (sofia/intern<div><br>
al/<a href="mailto:4001@192.168.200.100" target="_blank">4001@192.168.200.100</a>) State Change CS_ROUTING -> CS_EXECUTE<br></div>2011-05-08 09:35:44.889374 [DEBUG] switch_core_session.c:1116 Send signal sofia/<div>
<br>internal/<a href="mailto:4001@192.168.200.100" target="_blank">4001@192.168.200.100</a> [BREAK]<br></div>
2011-05-08 09:35:44.889374 [DEBUG] switch_core_state_machine.c:364 (sofia/intern<div><br>al/<a href="mailto:4001@192.168.200.100" target="_blank">4001@192.168.200.100</a>) State ROUTING going to sleep<br></div>
2011-05-08 09:35:44.889374 [DEBUG] switch_core_state_machine.c:325 (sofia/intern<div><br>
al/<a href="mailto:4001@192.168.200.100" target="_blank">4001@192.168.200.100</a>) Running State Change CS_EXECUTE<br></div>2011-05-08 09:35:44.889374 [DEBUG] switch_core_state_machine.c:371 (sofia/intern<div>
<br>al/<a href="mailto:4001@192.168.200.100" target="_blank">4001@192.168.200.100</a>) State EXECUTE<br></div>
2011-05-08 09:35:44.889374 [DEBUG] mod_sofia.c:240 sofia/internal/4001@192.168.2<br>00.100 SOFIA EXECUTE<br>2011-05-08 09:35:44.889374 [DEBUG] switch_core_state_machine.c:157 sofia/interna<div><br>l/<a href="mailto:4001@192.168.200.100" target="_blank">4001@192.168.200.100</a> Standard EXECUTE<br>
</div>
2011-05-08 09:35:44.889374 [NOTICE] switch_core_state_machine.c:189 sofia/intern<div><br>al/<a href="mailto:4001@192.168.200.100" target="_blank">4001@192.168.200.100</a> has executed the last dialplan instruction, hanging up.<br>
</div>2011-05-08 09:35:44.889374 [DEBUG] switch_channel.c:2563 (sofia/internal/4001@19<div><br>
2.168.200.100) Callstate Change RINGING -> HANGUP<br></div>2011-05-08 09:35:44.889374 [NOTICE] switch_core_state_machine.c:191 Hangup sofia<div><br>/internal/<a href="mailto:4001@192.168.200.100" target="_blank">4001@192.168.200.100</a> [CS_EXECUTE] [NORMAL_CLEARING]<br>
</div>
2011-05-08 09:35:44.890375 [DEBUG] switch_channel.c:2579 Send signal sofia/inter<div><br>nal/<a href="mailto:4001@192.168.200.100" target="_blank">4001@192.168.200.100</a> [KILL]<br></div>2011-05-08 09:35:44.890375 [DEBUG] switch_core_session.c:1116 Send signal sofia/<div>
<br>
internal/<a href="mailto:4001@192.168.200.100" target="_blank">4001@192.168.200.100</a> [BREAK]<br></div>2011-05-08 09:35:44.890375 [DEBUG] switch_core_state_machine.c:371 (sofia/intern<div><br>al/<a href="mailto:4001@192.168.200.100" target="_blank">4001@192.168.200.100</a>) State EXECUTE going to sleep<br>
</div>
2011-05-08 09:35:44.890375 [DEBUG] switch_core_state_machine.c:325 (sofia/intern<div><br>al/<a href="mailto:4001@192.168.200.100" target="_blank">4001@192.168.200.100</a>) Running State Change CS_HANGUP<br></div>
2011-05-08 09:35:44.891375 [DEBUG] switch_core_state_machine.c:565 (sofia/intern<div><br>
al/<a href="mailto:4001@192.168.200.100" target="_blank">4001@192.168.200.100</a>) State HANGUP<br></div>2011-05-08 09:35:44.891375 [DEBUG] mod_sofia.c:457 Channel sofia/internal/4001@1<div><br>92.168.200.100 hanging up, cause: NORMAL_CLEARING<br>
</div>2011-05-08 09:35:44.891375 [DEBUG] mod_sofia.c:519 Responding to INVITE with: 48<br>
0<br>2011-05-08 09:35:44.891375 [DEBUG] switch_core_state_machine.c:46 sofia/internal<div><br>/<a href="mailto:4001@192.168.200.100" target="_blank">4001@192.168.200.100</a> Standard HANGUP, cause: NORMAL_CLEARING<br>
</div>2011-05-08 09:35:44.891375 [DEBUG] switch_core_state_machine.c:565 (sofia/intern<div><br>
al/<a href="mailto:4001@192.168.200.100" target="_blank">4001@192.168.200.100</a>) State HANGUP going to sleep<br></div>2011-05-08 09:35:44.891375 [DEBUG] switch_core_state_machine.c:356 (sofia/intern<div><br>
al/<a href="mailto:4001@192.168.200.100" target="_blank">4001@192.168.200.100</a>) State Change CS_HANGUP -> CS_REPORTING<br></div>
2011-05-08 09:35:44.891375 [DEBUG] switch_core_session.c:1116 Send signal sofia/<div><br>internal/<a href="mailto:4001@192.168.200.100" target="_blank">4001@192.168.200.100</a> [BREAK]<br></div>2011-05-08 09:35:44.891375 [DEBUG] switch_core_state_machine.c:325 (sofia/intern<div>
<br>
al/<a href="mailto:4001@192.168.200.100" target="_blank">4001@192.168.200.100</a>) Running State Change CS_REPORTING<br></div>2011-05-08 09:35:44.891375 [DEBUG] switch_core_state_machine.c:625 (sofia/intern<div>
<br>al/<a href="mailto:4001@192.168.200.100" target="_blank">4001@192.168.200.100</a>) State REPORTING<br></div>
2011-05-08 09:35:45.153390 [DEBUG] switch_core_state_machine.c:53 sofia/internal<div><br>/<a href="mailto:4001@192.168.200.100" target="_blank">4001@192.168.200.100</a> Standard REPORTING, cause: NORMAL_CLEARING<br>
</div>2011-05-08 09:35:45.153390 [DEBUG] switch_core_state_machine.c:625 (sofia/intern<div><br>
al/<a href="mailto:4001@192.168.200.100" target="_blank">4001@192.168.200.100</a>) State REPORTING going to sleep<br></div>2011-05-08 09:35:45.153390 [DEBUG] switch_core_state_machine.c:350 (sofia/intern<div><br>
al/<a href="mailto:4001@192.168.200.100" target="_blank">4001@192.168.200.100</a>) State Change CS_REPORTING -> CS_DESTROY<br></div>
2011-05-08 09:35:45.153390 [DEBUG] switch_core_session.c:1116 Send signal sofia/<div><br>internal/<a href="mailto:4001@192.168.200.100" target="_blank">4001@192.168.200.100</a> [BREAK]<br></div>2011-05-08 09:35:45.153390 [DEBUG] switch_core_session.c:1288 Session 4 (sofia/i<div>
<br>
nternal/<a href="mailto:4001@192.168.200.100" target="_blank">4001@192.168.200.100</a>) Locked, Waiting on external entities<br></div>2011-05-08 09:35:45.153390 [NOTICE] switch_core_session.c:1306 Session 4 (sofia/<div>
<br>internal/<a href="mailto:4001@192.168.200.100" target="_blank">4001@192.168.200.100</a>) Ended<br></div>
2011-05-08 09:35:45.153390 [NOTICE] switch_core_session.c:1308 Close Channel sof<div><br>ia/internal/<a href="mailto:4001@192.168.200.100" target="_blank">4001@192.168.200.100</a> [CS_DESTROY]<br></div>2011-05-08 09:35:45.154390 [DEBUG] switch_core_state_machine.c:454 (sofia/intern<div>
<br>
al/<a href="mailto:4001@192.168.200.100" target="_blank">4001@192.168.200.100</a>) Callstate Change HANGUP -> DOWN<br></div>2011-05-08 09:35:45.154390 [DEBUG] switch_core_state_machine.c:457 (sofia/intern<div>
<br>al/<a href="mailto:4001@192.168.200.100" target="_blank">4001@192.168.200.100</a>) Running State Change CS_DESTROY<br></div>
2011-05-08 09:35:45.154390 [DEBUG] switch_core_state_machine.c:467 (sofia/intern<div><br>al/<a href="mailto:4001@192.168.200.100" target="_blank">4001@192.168.200.100</a>) State DESTROY<br></div>2011-05-08 09:35:45.154390 [DEBUG] mod_sofia.c:362 sofia/internal/4001@192.168.2<br>
00.100 SOFIA DESTROY<br>2011-05-08 09:35:45.154390 [DEBUG] switch_core_state_machine.c:60 sofia/internal<div><br>/<a href="mailto:4001@192.168.200.100" target="_blank">4001@192.168.200.100</a> Standard DESTROY<br>
</div>2011-05-08 09:35:45.154390 [DEBUG] switch_core_state_machine.c:467 (sofia/intern<div><br>
al/<a href="mailto:4001@192.168.200.100" target="_blank">4001@192.168.200.100</a>) State DESTROY going to sleep<br><br><br></div><div><div></div><div><div class="gmail_quote">2011/5/8 David Ponzone <span dir="ltr"><<a href="mailto:david.ponzone@ipeva.fr" target="_blank">david.ponzone@ipeva.fr</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Avi,<div><br></div><div>are you sure about that ?</div><div><br></div><div>I have LUA scripts which rewrite the destination_number with SetVariable and that works fine.</div>
<div>Of course, to do that in the XML dialplan, as said before, inline should be used to set the value.</div><div><br><div>
<span style="border-collapse:separate;color:rgb(0, 0, 0);font-family:Helvetica;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><span style="border-collapse:separate;color:rgb(0, 0, 0);font-family:Helvetica;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div style="word-wrap:break-word">
<div><font face="'Helvetica Neue'"><font color="#1C00FF">David Ponzone </font><font size="3" color="#000000"><span style="font-size:12px">Direction Technique</span></font></font></div><div><font face="'Helvetica Neue'"><font size="3"><span style="font-size:13px">email: <a href="mailto:david.ponzone@ipeva.fr" target="_blank">david.ponzone@ipeva.fr</a></span></font></font></div>
<div><font face="'Helvetica Neue'"><font size="3"><span style="font-size:13px">tel: 01 74 03 18 97</span></font></font></div><div><font face="'Helvetica Neue'"><font size="3"><span style="font-size:13px">gsm: 06 66 98 76 34</span></font></font></div>
<div><font face="'Helvetica Neue'"><br></font></div><div><font color="#1C00FF" face="'Helvetica Neue'">Service Client<span> </span></font><font face="'Helvetica Neue'"><font color="#FF0000">IP</font></font><font color="#1C00FF" face="'Helvetica Neue'">eva</font></div>
<div><font color="#1C00FF" face="'Helvetica Neue'"><span style="color:rgb(0, 0, 0);font-family:Helvetica"><div><font face="'Helvetica Neue'"><font size="3"><span style="font-size:13px">tel: 0811 46 26 26</span></font></font></div>
<div><font size="3" face="'Helvetica Neue'"><span style="font-size:13px"><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;color:rgb(0, 34, 243)"><span style="text-decoration:underline"><a>www.ipeva.fr</a></span><span style="color:rgb(101, 104, 149)"> - <span style="color:rgb(0, 34, 243);text-decoration:underline"><a>www.ipeva-studio.com</a></span></span></div>
<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;color:rgb(0, 34, 243)"><span style="text-decoration:underline"><br></span></div><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;color:rgb(0, 34, 243)">
<span><div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;text-align:justify;color:rgb(192, 192, 192)"><i>Ce message et toutes les pièces jointes sont confidentiels et établis à l'intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisée est interdite. Tout message électronique est susceptible d'altération. </i><b><i>IPeva</i></b><i> décline toute responsabilité au titre de ce message s'il a été altéré, déformé ou falsifié. Si vous n'êtes pas destinataire de ce message, merci de le détruire immédiatement et d'avertir l'expéditeur.</i></div>
<div style="text-decoration:underline;text-align:justify"><font color="#C0C0C0"><i><br></i></font></div></span></div></span></font></div></span></font></div></div></span><br></span><br>
</div>
<br><div><div>Le 07/05/2011 à 19:52, Avi Marcus a écrit :</div><div><div></div><div><br><blockquote type="cite"><div dir="ltr">Indeed, inline is a missing ingredient. As well though is the previously mentioned - you can't (directly) overwrite the destination number. You can either use a new variable throughout, or transfer to set the new destination number. Note that transferring causes the dialplan to be re-run from the start..<div>
<br></div><div>-Avi<br><br><div class="gmail_quote">On Sat, May 7, 2011 at 7:13 PM, Kristian Kielhofner <span dir="ltr"><<a href="mailto:kris@kriskinc.com" target="_blank">kris@kriskinc.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
There is certainly more than one way to skin this cat...<br>
<br>
However, to keep with your current method you should read up on<br>
dialplan hunting vs. execution and "inline" execution:<br>
<br>
<a href="http://wiki.freeswitch.org/wiki/Dialplan_XML#Inline_Actions" target="_blank">http://wiki.freeswitch.org/wiki/Dialplan_XML#Inline_Actions</a><br>
<br>
In short you need to add inline="true" to your first extension.<br>
<div><div></div><div><br>
On Sat, May 7, 2011 at 11:04 AM, fieldpeak <<a href="mailto:fieldpeak@gmail.com" target="_blank">fieldpeak@gmail.com</a>> wrote:<br>
> Gurus,<br>
><br>
> i met an issue for dial plan, it sounds easy but puzzled me a few days not<br>
> fix it yet...i belive gurus here could help me...<br>
><br>
> i want to remove the + of destination number before routing to PSTN GW, e.g.<br>
> when i dial +9123, i would like FS remove +, and then route to the PSTN GW,<br>
> below is the dial plan and log,<br>
><br>
> See the log, FS did remove '+' of '+9123', but then when it checks the rule<br>
> ‘9_to_GW’, it still checks '+9123' (I expect it is '9123'), and then failed.<br>
><br>
> Thanks.<br>
><br>
><br>
><br>
> Dial plan:<br>
><br>
> <extension name="remove_plus_of_dst_num" continue="true"><br>
><br>
> <condition field="destination_number" expression="^\+(\d+)$"><br>
><br>
> <action application="set" data="effective_destination_number=$1"/><br>
><br>
> </condition><br>
><br>
> </extension><br>
><br>
> …...<br>
><br>
> <extension name="9_to_GW" ><br>
><br>
> <condition field="destination_number" expression="^(9\d+)$"><br>
><br>
> <action application="bridge"<br>
> data="sofia/internal/$<a href="mailto:1@192.168.200.101" target="_blank">1@192.168.200.101</a>"/><br>
><br>
> </condition><br>
><br>
> </extension><br>
><br>
><br>
><br>
> Log:<br>
><br>
> freeswitch@mypc> 2011-05-07 22:48:05.717537 [DEBUG] sofia.c:6488 IP<br>
> 192.168.200.201<br>
><br>
> Approved by acl "<a href="http://192.168.0.0/16%5B%5D" target="_blank">192.168.0.0/16[]</a>". Access Granted.<br>
><br>
> 2011-05-07 22:48:05.717537 [NOTICE] switch_channel.c:812 New Channel<br>
> sofia/inter<br>
><br>
> nal/+<a href="mailto:4001@192.168.200.100" target="_blank">4001@192.168.200.100</a> [92568c57-ff7b-4dbc-b322-a9babf893e62]<br>
><br>
> 2011-05-07 22:48:05.719537 [DEBUG] sofia.c:4760 Channel<br>
> sofia/internal/+4001@192<br>
><br>
> .168.200.100 entering state [received][100]<br>
><br>
> 2011-05-07 22:48:05.719537 [DEBUG] sofia.c:4771 Remote SDP:<br>
><br>
> v=0<br>
><br>
> o=AudiocodesGW 1062502113 1062501981 IN IP4 192.168.200.201<br>
><br>
> s=Phone-Call<br>
><br>
> c=IN IP4 192.168.200.201<br>
><br>
> t=0 0<br>
><br>
> m=audio 6060 RTP/AVP 8 0 96<br>
><br>
> a=rtpmap:8 PCMA/8000<br>
><br>
> a=rtpmap:0 PCMU/8000<br>
><br>
> a=rtpmap:96 telephone-event/8000<br>
><br>
> a=fmtp:96 0-15<br>
><br>
> a=ptime:20<br>
><br>
><br>
><br>
> 2011-05-07 22:48:05.719537 [DEBUG] sofia.c:4908<br>
> (sofia/internal/+4001@192.168.20<br>
><br>
> 0.100) State Change CS_NEW -> CS_INIT<br>
><br>
> 2011-05-07 22:48:05.719537 [DEBUG] switch_core_session.c:1116 Send signal<br>
> sofia/<br>
><br>
> internal/+<a href="mailto:4001@192.168.200.100" target="_blank">4001@192.168.200.100</a> [BREAK]<br>
><br>
> 2011-05-07 22:48:05.722537 [DEBUG] switch_core_state_machine.c:325<br>
> (sofia/intern<br>
><br>
> al/+<a href="mailto:4001@192.168.200.100" target="_blank">4001@192.168.200.100</a>) Running State Change CS_INIT<br>
><br>
> 2011-05-07 22:48:05.722537 [DEBUG] switch_core_state_machine.c:361<br>
> (sofia/intern<br>
><br>
> al/+<a href="mailto:4001@192.168.200.100" target="_blank">4001@192.168.200.100</a>) State INIT<br>
><br>
> 2011-05-07 22:48:05.722537 [DEBUG] mod_sofia.c:84<br>
> sofia/internal/+4001@192.168.2<br>
><br>
> 00.100 SOFIA INIT<br>
><br>
> 2011-05-07 22:48:05.722537 [DEBUG] mod_sofia.c:124<br>
> (sofia/internal/+4001@192.168<br>
><br>
> .200.100) State Change CS_INIT -> CS_ROUTING<br>
><br>
> 2011-05-07 22:48:05.722537 [DEBUG] switch_core_session.c:1116 Send signal<br>
> sofia/<br>
><br>
> internal/+<a href="mailto:4001@192.168.200.100" target="_blank">4001@192.168.200.100</a> [BREAK]<br>
><br>
> 2011-05-07 22:48:05.722537 [DEBUG] switch_core_state_machine.c:361<br>
> (sofia/intern<br>
><br>
> al/+<a href="mailto:4001@192.168.200.100" target="_blank">4001@192.168.200.100</a>) State INIT going to sleep<br>
><br>
> 2011-05-07 22:48:05.722537 [DEBUG] switch_core_state_machine.c:325<br>
> (sofia/intern<br>
><br>
> al/+<a href="mailto:4001@192.168.200.100" target="_blank">4001@192.168.200.100</a>) Running State Change CS_ROUTING<br>
><br>
> 2011-05-07 22:48:05.722537 [DEBUG] switch_channel.c:1668<br>
> (sofia/internal/+4001@1<br>
><br>
> 92.168.200.100) Callstate Change DOWN -> RINGING<br>
><br>
> 2011-05-07 22:48:05.722537 [DEBUG] switch_core_state_machine.c:364<br>
> (sofia/intern<br>
><br>
> al/+<a href="mailto:4001@192.168.200.100" target="_blank">4001@192.168.200.100</a>) State ROUTING<br>
><br>
> 2011-05-07 22:48:05.722537 [DEBUG] mod_sofia.c:147<br>
> sofia/internal/+4001@192.168.<br>
><br>
> 200.100 SOFIA ROUTING<br>
><br>
> 2011-05-07 22:48:05.722537 [DEBUG] switch_core_state_machine.c:77<br>
> sofia/internal<br>
><br>
> /+<a href="mailto:4001@192.168.200.100" target="_blank">4001@192.168.200.100</a> Standard ROUTING<br>
><br>
> 2011-05-07 22:48:05.722537 [INFO] mod_dialplan_xml.c:331 Processing +4001<br>
> <+4001<br>
><br>
>>->+9123 in context default<br>
><br>
> Dialplan: sofia/internal/+<a href="mailto:4001@192.168.200.100" target="_blank">4001@192.168.200.100</a> parsing [default->unloop]<br>
> continu<br>
><br>
> e=false<br>
><br>
> Dialplan: sofia/internal/+<a href="mailto:4001@192.168.200.100" target="_blank">4001@192.168.200.100</a> Regex (PASS) [unloop]<br>
> ${unroll_lo<br>
><br>
> ops}(true) =~ /^true$/ break=on-false<br>
><br>
> Dialplan: sofia/internal/+<a href="mailto:4001@192.168.200.100" target="_blank">4001@192.168.200.100</a> Regex (FAIL) [unloop]<br>
> ${sip_loope<br>
><br>
> d_call}() =~ /^true$/ break=on-false<br>
><br>
> Dialplan: sofia/internal/+<a href="mailto:4001@192.168.200.100" target="_blank">4001@192.168.200.100</a> parsing<br>
> [default->remove_plus_of_<br>
><br>
> dst_num] continue=true<br>
><br>
> Dialplan: sofia/internal/+<a href="mailto:4001@192.168.200.100" target="_blank">4001@192.168.200.100</a> Regex (PASS)<br>
> [remove_plus_of_dst_<br>
><br>
> num] destination_number(+9123) =~ /^\+(\d+)$/ break=on-false<br>
><br>
> Dialplan: sofia/internal/+<a href="mailto:4001@192.168.200.100" target="_blank">4001@192.168.200.100</a> Action<br>
> set(destination_number=912<br>
><br>
> 3)<br>
><br>
> Dialplan: sofia/internal/+<a href="mailto:4001@192.168.200.100" target="_blank">4001@192.168.200.100</a> parsing<br>
> [default->remove_plus_of_<br>
><br>
> src_num] continue=true<br>
><br>
> Dialplan: sofia/internal/+<a href="mailto:4001@192.168.200.100" target="_blank">4001@192.168.200.100</a> Regex (PASS)<br>
> [remove_plus_of_src_<br>
><br>
> num] caller_id_number(+4001) =~ /^\+(\d+)$/ break=on-false<br>
><br>
> Dialplan: sofia/internal/+<a href="mailto:4001@192.168.200.100" target="_blank">4001@192.168.200.100</a> Action<br>
> set(effective_caller_id_na<br>
><br>
> me=4001)<br>
><br>
> Dialplan: sofia/internal/+<a href="mailto:4001@192.168.200.100" target="_blank">4001@192.168.200.100</a> Action<br>
> set(effective_caller_id_nu<br>
><br>
> mber=4001)<br>
><br>
> Dialplan: sofia/internal/+<a href="mailto:4001@192.168.200.100" target="_blank">4001@192.168.200.100</a> parsing<br>
> [default->7_8_to_Lync] co<br>
><br>
> ntinue=false<br>
><br>
> Dialplan: sofia/internal/+<a href="mailto:4001@192.168.200.100" target="_blank">4001@192.168.200.100</a> Regex (FAIL) [7_8_to_Lync]<br>
> destin<br>
><br>
> ation_number(+9123) =~ /^([78]\d{3})$/ break=on-false<br>
><br>
> Dialplan: sofia/internal/+<a href="mailto:4001@192.168.200.100" target="_blank">4001@192.168.200.100</a> parsing [default->9_to_GW]<br>
> contin<br>
><br>
> ue=false<br>
><br>
> Dialplan: sofia/internal/+<a href="mailto:4001@192.168.200.100" target="_blank">4001@192.168.200.100</a> Regex (FAIL) [9_to_GW]<br>
> destinatio<br>
><br>
> n_number(+9123) =~ /^(9\d+)$/ break=on-false<br>
><br>
> Dialplan: sofia/internal/+<a href="mailto:4001@192.168.200.100" target="_blank">4001@192.168.200.100</a> parsing [default->1_to_IPP]<br>
> conti<br>
><br>
> nue=false<br>
><br>
> Dialplan: sofia/internal/+<a href="mailto:4001@192.168.200.100" target="_blank">4001@192.168.200.100</a> Regex (FAIL) [1_to_IPP]<br>
> destinati<br>
><br>
> on_number(+9123) =~ /^(1\d{3})$/ break=on-false<br>
><br>
> Dialplan: sofia/internal/+<a href="mailto:4001@192.168.200.100" target="_blank">4001@192.168.200.100</a> parsing [default->DISA]<br>
> continue=<br>
><br>
> false<br>
><br>
> Dialplan: sofia/internal/+<a href="mailto:4001@192.168.200.100" target="_blank">4001@192.168.200.100</a> Regex (FAIL) [DISA]<br>
> destination_n<br>
><br>
> umber(+9123) =~ /^\*(3472)$/ break=on-false<br>
><br>
> Dialplan: sofia/internal/+<a href="mailto:4001@192.168.200.100" target="_blank">4001@192.168.200.100</a> parsing [default->Recordings]<br>
> con<br>
><br>
> tinue=false<br>
><br>
> Dialplan: sofia/internal/+<a href="mailto:4001@192.168.200.100" target="_blank">4001@192.168.200.100</a> Regex (FAIL) [Recordings]<br>
> destina<br>
><br>
> tion_number(+9123) =~ /^\*(732673)$/ break=on-false<br>
><br>
> 2011-05-07 22:48:05.727537 [DEBUG] switch_core_state_machine.c:119<br>
> (sofia/intern<br>
><br>
> al/+<a href="mailto:4001@192.168.200.100" target="_blank">4001@192.168.200.100</a>) State Change CS_ROUTING -> CS_EXECUTE<br>
><br>
> 2011-05-07 22:48:05.727537 [DEBUG] switch_core_session.c:1116 Send signal<br>
> sofia/<br>
><br>
> internal/+<a href="mailto:4001@192.168.200.100" target="_blank">4001@192.168.200.100</a> [BREAK]<br>
><br>
> 2011-05-07 22:48:05.727537 [DEBUG] switch_core_state_machine.c:364<br>
> (sofia/intern<br>
><br>
> al/+<a href="mailto:4001@192.168.200.100" target="_blank">4001@192.168.200.100</a>) State ROUTING going to sleep<br>
><br>
> 2011-05-07 22:48:05.727537 [DEBUG] switch_core_state_machine.c:325<br>
> (sofia/intern<br>
><br>
> al/+<a href="mailto:4001@192.168.200.100" target="_blank">4001@192.168.200.100</a>) Running State Change CS_EXECUTE<br>
><br>
> 2011-05-07 22:48:05.727537 [DEBUG] switch_core_state_machine.c:371<br>
> (sofia/intern<br>
><br>
> al/+<a href="mailto:4001@192.168.200.100" target="_blank">4001@192.168.200.100</a>) State EXECUTE<br>
><br>
> 2011-05-07 22:48:05.727537 [DEBUG] mod_sofia.c:240<br>
> sofia/internal/+4001@192.168.<br>
><br>
> 200.100 SOFIA EXECUTE<br>
><br>
> 2011-05-07 22:48:05.727537 [DEBUG] switch_core_state_machine.c:157<br>
> sofia/interna<br>
><br>
> l/+<a href="mailto:4001@192.168.200.100" target="_blank">4001@192.168.200.100</a> Standard EXECUTE<br>
><br>
> EXECUTE sofia/internal/+<a href="mailto:4001@192.168.200.100" target="_blank">4001@192.168.200.100</a> set(destination_number=9123)<br>
><br>
> 2011-05-07 22:48:05.728537 [DEBUG] mod_dptools.c:1060<br>
> sofia/internal/+4001@192.1<br>
><br>
> 68.200.100 SET [destination_number]=[9123]<br>
><br>
> EXECUTE sofia/internal/+<a href="mailto:4001@192.168.200.100" target="_blank">4001@192.168.200.100</a><br>
> set(effective_caller_id_name=4001)<br>
><br>
> 2011-05-07 22:48:05.728537 [DEBUG] mod_dptools.c:1060<br>
> sofia/internal/+4001@192.1<br>
><br>
> 68.200.100 SET [effective_caller_id_name]=[4001]<br>
><br>
> EXECUTE sofia/internal/+<a href="mailto:4001@192.168.200.100" target="_blank">4001@192.168.200.100</a><br>
> set(effective_caller_id_number=4001<br>
><br>
> )<br>
><br>
> 2011-05-07 22:48:05.729537 [DEBUG] mod_dptools.c:1060<br>
> sofia/internal/+4001@192.1<br>
><br>
> 68.200.100 SET [effective_caller_id_number]=[4001]<br>
><br>
> 2011-05-07 22:48:05.729537 [NOTICE] switch_core_state_machine.c:189<br>
> sofia/intern<br>
><br>
> al/+<a href="mailto:4001@192.168.200.100" target="_blank">4001@192.168.200.100</a> has executed the last dialplan instruction, hanging<br>
> up.<br>
><br>
><br>
><br>
> 2011-05-07 22:48:05.729537 [DEBUG] switch_channel.c:2563<br>
> (sofia/internal/+4001@1<br>
><br>
> 92.168.200.100) Callstate Change RINGING -> HANGUP<br>
><br>
> 2011-05-07 22:48:05.729537 [NOTICE] switch_core_state_machine.c:191 Hangup<br>
> sofia<br>
><br>
> /internal/+<a href="mailto:4001@192.168.200.100" target="_blank">4001@192.168.200.100</a> [CS_EXECUTE] [NORMAL_CLEARING]<br>
><br>
> 2011-05-07 22:48:05.730538 [DEBUG] switch_channel.c:2579 Send signal<br>
> sofia/inter<br>
><br>
> nal/+<a href="mailto:4001@192.168.200.100" target="_blank">4001@192.168.200.100</a> [KILL]<br>
><br>
> 2011-05-07 22:48:05.730538 [DEBUG] switch_core_session.c:1116 Send signal<br>
> sofia/<br>
><br>
> internal/+<a href="mailto:4001@192.168.200.100" target="_blank">4001@192.168.200.100</a> [BREAK]<br>
><br>
> 2011-05-07 22:48:05.730538 [DEBUG] switch_core_state_machine.c:371<br>
> (sofia/intern<br>
><br>
> al/+<a href="mailto:4001@192.168.200.100" target="_blank">4001@192.168.200.100</a>) State EXECUTE going to sleep<br>
><br>
> 2011-05-07 22:48:05.730538 [DEBUG] switch_core_state_machine.c:325<br>
> (sofia/intern<br>
><br>
> al/+<a href="mailto:4001@192.168.200.100" target="_blank">4001@192.168.200.100</a>) Running State Change CS_HANGUP<br>
><br>
> 2011-05-07 22:48:05.731538 [DEBUG] switch_core_state_machine.c:565<br>
> (sofia/intern<br>
><br>
> al/+<a href="mailto:4001@192.168.200.100" target="_blank">4001@192.168.200.100</a>) State HANGUP<br>
><br>
> 2011-05-07 22:48:05.732538 [DEBUG] mod_sofia.c:457 Channel<br>
> sofia/internal/+4001@<br>
><br>
> 192.168.200.100 hanging up, cause: NORMAL_CLEARING<br>
><br>
> 2011-05-07 22:48:05.732538 [DEBUG] mod_sofia.c:519 Responding to INVITE<br>
> with: 48<br>
><br>
> 0<br>
><br>
> 2011-05-07 22:48:05.732538 [DEBUG] switch_core_state_machine.c:46<br>
> sofia/internal<br>
><br>
> /+<a href="mailto:4001@192.168.200.100" target="_blank">4001@192.168.200.100</a> Standard HANGUP, cause: NORMAL_CLEARING<br>
><br>
> 2011-05-07 22:48:05.732538 [DEBUG] switch_core_state_machine.c:565<br>
> (sofia/intern<br>
><br>
> al/+<a href="mailto:4001@192.168.200.100" target="_blank">4001@192.168.200.100</a>) State HANGUP going to sleep<br>
><br>
> 2011-05-07 22:48:05.732538 [DEBUG] switch_core_state_machine.c:356<br>
> (sofia/intern<br>
><br>
> al/+<a href="mailto:4001@192.168.200.100" target="_blank">4001@192.168.200.100</a>) State Change CS_HANGUP -> CS_REPORTING<br>
><br>
> 2011-05-07 22:48:05.732538 [DEBUG] switch_core_session.c:1116 Send signal<br>
> sofia/<br>
><br>
> internal/+<a href="mailto:4001@192.168.200.100" target="_blank">4001@192.168.200.100</a> [BREAK]<br>
><br>
> 2011-05-07 22:48:05.732538 [DEBUG] switch_core_state_machine.c:325<br>
> (sofia/intern<br>
><br>
> al/+<a href="mailto:4001@192.168.200.100" target="_blank">4001@192.168.200.100</a>) Running State Change CS_REPORTING<br>
><br>
> 2011-05-07 22:48:05.732538 [DEBUG] switch_core_state_machine.c:625<br>
> (sofia/intern<br>
><br>
> al/+<a href="mailto:4001@192.168.200.100" target="_blank">4001@192.168.200.100</a>) State REPORTING<br>
><br>
> 2011-05-07 22:48:06.017554 [DEBUG] switch_core_state_machine.c:53<br>
> sofia/internal<br>
><br>
> /+<a href="mailto:4001@192.168.200.100" target="_blank">4001@192.168.200.100</a> Standard REPORTING, cause: NORMAL_CLEARING<br>
><br>
> 2011-05-07 22:48:06.017554 [DEBUG] switch_core_state_machine.c:625<br>
> (sofia/intern<br>
><br>
> al/+<a href="mailto:4001@192.168.200.100" target="_blank">4001@192.168.200.100</a>) State REPORTING going to sleep<br>
><br>
> 2011-05-07 22:48:06.017554 [DEBUG] switch_core_state_machine.c:350<br>
> (sofia/intern<br>
><br>
> al/+<a href="mailto:4001@192.168.200.100" target="_blank">4001@192.168.200.100</a>) State Change CS_REPORTING -> CS_DESTROY<br>
><br>
> 2011-05-07 22:48:06.017554 [DEBUG] switch_core_session.c:1116 Send signal<br>
> sofia/<br>
><br>
> internal/+<a href="mailto:4001@192.168.200.100" target="_blank">4001@192.168.200.100</a> [BREAK]<br>
><br>
> 2011-05-07 22:48:06.017554 [DEBUG] switch_core_session.c:1288 Session 2<br>
> (sofia/i<br>
><br>
> nternal/+<a href="mailto:4001@192.168.200.100" target="_blank">4001@192.168.200.100</a>) Locked, Waiting on external entities<br>
><br>
> 2011-05-07 22:48:06.017554 [NOTICE] switch_core_session.c:1306 Session 2<br>
> (sofia/<br>
><br>
> internal/+<a href="mailto:4001@192.168.200.100" target="_blank">4001@192.168.200.100</a>) Ended<br>
><br>
> 2011-05-07 22:48:06.017554 [NOTICE] switch_core_session.c:1308 Close Channel<br>
> sof<br>
><br>
> ia/internal/+<a href="mailto:4001@192.168.200.100" target="_blank">4001@192.168.200.100</a> [CS_DESTROY]<br>
><br>
> 2011-05-07 22:48:06.018554 [DEBUG] switch_core_state_machine.c:454<br>
> (sofia/intern<br>
><br>
> al/+<a href="mailto:4001@192.168.200.100" target="_blank">4001@192.168.200.100</a>) Callstate Change HANGUP -> DOWN<br>
><br>
> 2011-05-07 22:48:06.018554 [DEBUG] switch_core_state_machine.c:457<br>
> (sofia/intern<br>
><br>
> al/+<a href="mailto:4001@192.168.200.100" target="_blank">4001@192.168.200.100</a>) Running State Change CS_DESTROY<br>
><br>
> 2011-05-07 22:48:06.018554 [DEBUG] switch_core_state_machine.c:467<br>
> (sofia/intern<br>
><br>
> al/+<a href="mailto:4001@192.168.200.100" target="_blank">4001@192.168.200.100</a>) State DESTROY<br>
><br>
> 2011-05-07 22:48:06.018554 [DEBUG] mod_sofia.c:362<br>
> sofia/internal/+4001@192.168.<br>
><br>
> 200.100 SOFIA DESTROY<br>
><br>
> 2011-05-07 22:48:06.018554 [DEBUG] switch_core_state_machine.c:60<br>
> sofia/internal<br>
><br>
> /+<a href="mailto:4001@192.168.200.100" target="_blank">4001@192.168.200.100</a> Standard DESTROY<br>
><br>
> 2011-05-07 22:48:06.018554 [DEBUG] switch_core_state_machine.c:467<br>
> (sofia/intern<br>
><br>
> al/+<a href="mailto:4001@192.168.200.100" target="_blank">4001@192.168.200.100</a>) State DESTROY going to sleep<br>
><br>
</div></div><div>> _______________________________________________<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>
><br>
<br>
<br>
<br>
</div>--<br>
<font color="#888888">Kristian Kielhofner<br>
</font><div><div></div><div><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>
</div></div></blockquote></div><br></div></div>
_______________________________________________<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></div></div><br></div></div><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></div><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></div></div></div></div>
<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 style="visibility: hidden; left: -5000px; position: absolute; z-index: 9999; padding: 0px; margin-left: 0px; margin-top: 0px; overflow: hidden; word-wrap: break-word; color: black; font-size: 10px; text-align: left; line-height: 130%;" id="avg_ls_inline_popup">
</div>