<HTML>
<HEAD>
<TITLE>Re: [Freeswitch-users] How to manipulate destination number beforerouting to PSTN GW</TITLE>
</HEAD>
<BODY>
<FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>His originatl expression should work fine since the + is not in the () in his regex, however set_effective_destination number does not over write the destination_number field you need to transfer the call to get destination_number reset<BR>
Or use the ${effective_destination_number} as your field in the 9 to gw extension<BR>
<BR>
<BR>
On 5/7/11 10:15 AM, &quot;Madovsky&quot; &lt;<a href="infos@madovsky.org">infos@madovsky.org</a>&gt; wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>use expression=&quot;(+)(\d)&quot;<BR>
and $2 as result<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'> <BR>
----- Original Message ----- <BR>
&nbsp;<BR>
<B>From:</B> &nbsp;fieldpeak &lt;<a href="mailto:fieldpeak@gmail.com">mailto:fieldpeak@gmail.com</a>&gt; &nbsp;&nbsp;<BR>
&nbsp;<BR>
<B>To:</B> FreeSWITCH-users &lt;<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">mailto:FreeSWITCH-users@lists.freeswitch.org</a>&gt; &nbsp;<BR>
&nbsp;<BR>
<B>Sent:</B> Saturday, May 07, 2011 11:04 &nbsp;AM<BR>
&nbsp;<BR>
<B>Subject:</B> [Freeswitch-users] How to &nbsp;manipulate destination number beforerouting to PSTN GW<BR>
&nbsp;<BR>
<BR>
&nbsp;<BR>
<BR>
Gurus,<BR>
&nbsp;<BR>
<BR>
&nbsp;<BR>
i met an issue for dial plan, it sounds easy but puzzled me &nbsp;a few days not fix it yet...i belive gurus here could help me...<BR>
&nbsp;<BR>
<BR>
&nbsp;<BR>
i want to remove the + of destination number before routing &nbsp;to PSTN GW, e.g. when i dial +9123, i would like FS remove +, and then route &nbsp;to the PSTN GW, below is the dial plan and log, <BR>
&nbsp;<BR>
See the log, FS did remove '+' of '+9123', but then when it &nbsp;checks the rule &#8216;9_to_GW&#8217;, it still checks '+9123' (I expect it is '9123'), &nbsp;and then failed.<BR>
&nbsp;<BR>
Thanks.<BR>
&nbsp;<BR>
&nbsp;<BR>
&nbsp;<BR>
<B>Dial plan:<BR>
</B> <BR>
&lt;extension name=&quot;remove_plus_of_dst_num&quot; &nbsp;continue=&quot;true&quot;&gt;<BR>
&nbsp;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&lt;condition field=&quot;destination_number&quot; expression=&quot;^\+(\d+)$&quot;&gt;<BR>
&nbsp;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;action application=&quot;set&quot; &nbsp;data=&quot;effective_destination_number=$1&quot;/&gt;<BR>
&nbsp;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&lt;/condition&gt;<BR>
&nbsp;<BR>
&lt;/extension&gt;<BR>
&nbsp;<BR>
&#8230;...<BR>
&nbsp;<BR>
&lt;extension name=&quot;9_to_GW&quot; &gt;<BR>
&nbsp;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&lt;condition field=&quot;destination_number&quot; expression=&quot;^(9\d+)$&quot;&gt;<BR>
&nbsp;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;action application=&quot;bridge&quot; data=&quot;<a href="sofia/internal/$1@192.168.200.101&quot;/">sofia/internal/$1@192.168.200.101&quot;/</a>&gt;<BR>
&nbsp;<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&lt;/condition&gt;<BR>
&nbsp;<BR>
&lt;/extension&gt;<BR>
&nbsp;<BR>
&nbsp;<BR>
&nbsp;<BR>
<B>Log:<BR>
</B> <BR>
freeswitch@mypc&gt; 2011-05-07 22:48:05.717537 [DEBUG] &nbsp;sofia.c:6488 IP 192.168.200.201<BR>
&nbsp;<BR>
&nbsp;Approved by &nbsp;acl &quot;192.168.0.0/16[] &lt;<a href="http://192.168.0.0/16[]">http://192.168.0.0/16[]</a>&gt; &quot;. Access &nbsp;Granted.<BR>
&nbsp;<BR>
2011-05-07 22:48:05.717537 [NOTICE] switch_channel.c:812 &nbsp;New Channel sofia/inter<BR>
&nbsp;<BR>
<a href="nal/+4001@192.168.200.100">nal/+4001@192.168.200.100</a> &nbsp;[92568c57-ff7b-4dbc-b322-a9babf893e62]<BR>
&nbsp;<BR>
2011-05-07 22:48:05.719537 [DEBUG] sofia.c:4760 Channel &nbsp;sofia/internal/+4001@192<BR>
&nbsp;<BR>
.168.200.100 entering state [received][100]<BR>
&nbsp;<BR>
2011-05-07 22:48:05.719537 [DEBUG] sofia.c:4771 Remote &nbsp;SDP:<BR>
&nbsp;<BR>
v=0<BR>
&nbsp;<BR>
o=AudiocodesGW 1062502113 1062501981 IN IP4 &nbsp;192.168.200.201<BR>
&nbsp;<BR>
s=Phone-Call<BR>
&nbsp;<BR>
c=IN IP4 192.168.200.201<BR>
&nbsp;<BR>
t=0 0<BR>
&nbsp;<BR>
m=audio 6060 RTP/AVP 8 0 96<BR>
&nbsp;<BR>
a=rtpmap:8 PCMA/8000<BR>
&nbsp;<BR>
a=rtpmap:0 PCMU/8000<BR>
&nbsp;<BR>
a=rtpmap:96 telephone-event/8000<BR>
&nbsp;<BR>
a=fmtp:96 0-15<BR>
&nbsp;<BR>
a=ptime:20<BR>
&nbsp;<BR>
&nbsp;<BR>
&nbsp;<BR>
2011-05-07 22:48:05.719537 [DEBUG] sofia.c:4908 &nbsp;(<a href="sofia/internal/+4001@192.168.20">sofia/internal/+4001@192.168.20</a><BR>
&nbsp;<BR>
0.100) State Change CS_NEW -&gt; CS_INIT<BR>
&nbsp;<BR>
2011-05-07 22:48:05.719537 [DEBUG] &nbsp;switch_core_session.c:1116 Send signal sofia/<BR>
&nbsp;<BR>
<a href="internal/+4001@192.168.200.100">internal/+4001@192.168.200.100</a> [BREAK]<BR>
&nbsp;<BR>
2011-05-07 22:48:05.722537 [DEBUG] &nbsp;switch_core_state_machine.c:325 (sofia/intern<BR>
&nbsp;<BR>
<a href="al/+4001@192.168.200.100">al/+4001@192.168.200.100</a>) Running State &nbsp;Change CS_INIT<BR>
&nbsp;<BR>
2011-05-07 22:48:05.722537 [DEBUG] &nbsp;switch_core_state_machine.c:361 (sofia/intern<BR>
&nbsp;<BR>
<a href="al/+4001@192.168.200.100">al/+4001@192.168.200.100</a>) State INIT<BR>
&nbsp;<BR>
2011-05-07 22:48:05.722537 [DEBUG] mod_sofia.c:84 &nbsp;<a href="sofia/internal/+4001@192.168.2">sofia/internal/+4001@192.168.2</a><BR>
&nbsp;<BR>
00.100 SOFIA INIT<BR>
&nbsp;<BR>
2011-05-07 22:48:05.722537 [DEBUG] mod_sofia.c:124 &nbsp;(<a href="sofia/internal/+4001@192.168">sofia/internal/+4001@192.168</a><BR>
&nbsp;<BR>
.200.100) State Change CS_INIT -&gt; CS_ROUTING<BR>
&nbsp;<BR>
2011-05-07 22:48:05.722537 [DEBUG] &nbsp;switch_core_session.c:1116 Send signal sofia/<BR>
&nbsp;<BR>
<a href="internal/+4001@192.168.200.100">internal/+4001@192.168.200.100</a> [BREAK]<BR>
&nbsp;<BR>
2011-05-07 22:48:05.722537 [DEBUG] &nbsp;switch_core_state_machine.c:361 (sofia/intern<BR>
&nbsp;<BR>
<a href="al/+4001@192.168.200.100">al/+4001@192.168.200.100</a>) State INIT going &nbsp;to sleep<BR>
&nbsp;<BR>
2011-05-07 22:48:05.722537 [DEBUG] &nbsp;switch_core_state_machine.c:325 (sofia/intern<BR>
&nbsp;<BR>
<a href="al/+4001@192.168.200.100">al/+4001@192.168.200.100</a>) Running State &nbsp;Change CS_ROUTING<BR>
&nbsp;<BR>
2011-05-07 22:48:05.722537 [DEBUG] switch_channel.c:1668 &nbsp;(sofia/internal/+4001@1<BR>
&nbsp;<BR>
92.168.200.100) Callstate Change DOWN -&gt; RINGING<BR>
&nbsp;<BR>
2011-05-07 22:48:05.722537 [DEBUG] &nbsp;switch_core_state_machine.c:364 (sofia/intern<BR>
&nbsp;<BR>
<a href="al/+4001@192.168.200.100">al/+4001@192.168.200.100</a>) State ROUTING<BR>
&nbsp;<BR>
2011-05-07 22:48:05.722537 [DEBUG] mod_sofia.c:147 &nbsp;<a href="sofia/internal/+4001@192.168">sofia/internal/+4001@192.168</a>.<BR>
&nbsp;<BR>
200.100 SOFIA ROUTING<BR>
&nbsp;<BR>
2011-05-07 22:48:05.722537 [DEBUG] &nbsp;switch_core_state_machine.c:77 sofia/internal<BR>
&nbsp;<BR>
<a href="/+4001@192.168.200.100">/+4001@192.168.200.100</a> Standard &nbsp;ROUTING<BR>
&nbsp;<BR>
2011-05-07 22:48:05.722537 [INFO] mod_dialplan_xml.c:331 &nbsp;Processing +4001 &lt;+4001<BR>
&nbsp;<BR>
&gt;-&gt;+9123 in context default<BR>
&nbsp;<BR>
Dialplan: <a href="sofia/internal/+4001@192.168.200.100">sofia/internal/+4001@192.168.200.100</a> parsing &nbsp;[default-&gt;unloop] continu<BR>
&nbsp;<BR>
e=false<BR>
&nbsp;<BR>
Dialplan: <a href="sofia/internal/+4001@192.168.200.100">sofia/internal/+4001@192.168.200.100</a> Regex (PASS) &nbsp;[unloop] ${unroll_lo<BR>
&nbsp;<BR>
ops}(true) =~ /^true$/ break=on-false<BR>
&nbsp;<BR>
Dialplan: <a href="sofia/internal/+4001@192.168.200.100">sofia/internal/+4001@192.168.200.100</a> Regex (FAIL) &nbsp;[unloop] ${sip_loope<BR>
&nbsp;<BR>
d_call}() =~ /^true$/ break=on-false<BR>
&nbsp;<BR>
Dialplan: <a href="sofia/internal/+4001@192.168.200.100">sofia/internal/+4001@192.168.200.100</a> parsing &nbsp;[default-&gt;remove_plus_of_<BR>
&nbsp;<BR>
dst_num] &nbsp;continue=true<BR>
&nbsp;<BR>
Dialplan: <a href="sofia/internal/+4001@192.168.200.100">sofia/internal/+4001@192.168.200.100</a> Regex (PASS) &nbsp;[remove_plus_of_dst_<BR>
&nbsp;<BR>
num] &nbsp;destination_number(+9123) =~ /^\+(\d+)$/ break=on-false<BR>
&nbsp;<BR>
Dialplan: <a href="sofia/internal/+4001@192.168.200.100">sofia/internal/+4001@192.168.200.100</a> Action &nbsp;set(destination_number=912<BR>
&nbsp;<BR>
3)<BR>
&nbsp;<BR>
Dialplan: <a href="sofia/internal/+4001@192.168.200.100">sofia/internal/+4001@192.168.200.100</a> parsing &nbsp;[default-&gt;remove_plus_of_<BR>
&nbsp;<BR>
src_num] continue=true<BR>
&nbsp;<BR>
Dialplan: <a href="sofia/internal/+4001@192.168.200.100">sofia/internal/+4001@192.168.200.100</a> Regex (PASS) &nbsp;[remove_plus_of_src_<BR>
&nbsp;<BR>
num] caller_id_number(+4001) =~ /^\+(\d+)$/ &nbsp;break=on-false<BR>
&nbsp;<BR>
Dialplan: <a href="sofia/internal/+4001@192.168.200.100">sofia/internal/+4001@192.168.200.100</a> Action &nbsp;set(effective_caller_id_na<BR>
&nbsp;<BR>
me=4001)<BR>
&nbsp;<BR>
Dialplan: <a href="sofia/internal/+4001@192.168.200.100">sofia/internal/+4001@192.168.200.100</a> Action &nbsp;set(effective_caller_id_nu<BR>
&nbsp;<BR>
mber=4001)<BR>
&nbsp;<BR>
Dialplan: <a href="sofia/internal/+4001@192.168.200.100">sofia/internal/+4001@192.168.200.100</a> parsing &nbsp;[default-&gt;7_8_to_Lync] co<BR>
&nbsp;<BR>
ntinue=false<BR>
&nbsp;<BR>
Dialplan: <a href="sofia/internal/+4001@192.168.200.100">sofia/internal/+4001@192.168.200.100</a> Regex (FAIL) &nbsp;[7_8_to_Lync] destin<BR>
&nbsp;<BR>
ation_number(+9123) =~ /^([78]\d{3})$/ break=on-false<BR>
&nbsp;<BR>
Dialplan: <a href="sofia/internal/+4001@192.168.200.100">sofia/internal/+4001@192.168.200.100</a> parsing &nbsp;[default-&gt;9_to_GW] contin<BR>
&nbsp;<BR>
ue=false<BR>
&nbsp;<BR>
Dialplan: <a href="sofia/internal/+4001@192.168.200.100">sofia/internal/+4001@192.168.200.100</a> Regex (FAIL) &nbsp;[9_to_GW] destinatio<BR>
&nbsp;<BR>
n_number(+9123) =~ /^(9\d+)$/ &nbsp;break=on-false<BR>
&nbsp;<BR>
Dialplan: <a href="sofia/internal/+4001@192.168.200.100">sofia/internal/+4001@192.168.200.100</a> parsing &nbsp;[default-&gt;1_to_IPP] conti<BR>
&nbsp;<BR>
nue=false<BR>
&nbsp;<BR>
Dialplan: <a href="sofia/internal/+4001@192.168.200.100">sofia/internal/+4001@192.168.200.100</a> Regex (FAIL) &nbsp;[1_to_IPP] destinati<BR>
&nbsp;<BR>
on_number(+9123) =~ /^(1\d{3})$/ break=on-false<BR>
&nbsp;<BR>
Dialplan: <a href="sofia/internal/+4001@192.168.200.100">sofia/internal/+4001@192.168.200.100</a> parsing &nbsp;[default-&gt;DISA] continue=<BR>
&nbsp;<BR>
false<BR>
&nbsp;<BR>
Dialplan: <a href="sofia/internal/+4001@192.168.200.100">sofia/internal/+4001@192.168.200.100</a> Regex (FAIL) &nbsp;[DISA] destination_n<BR>
&nbsp;<BR>
umber(+9123) =~ /^\*(3472)$/ break=on-false<BR>
&nbsp;<BR>
Dialplan: <a href="sofia/internal/+4001@192.168.200.100">sofia/internal/+4001@192.168.200.100</a> parsing &nbsp;[default-&gt;Recordings] con<BR>
&nbsp;<BR>
tinue=false<BR>
&nbsp;<BR>
Dialplan: <a href="sofia/internal/+4001@192.168.200.100">sofia/internal/+4001@192.168.200.100</a> Regex (FAIL) &nbsp;[Recordings] destina<BR>
&nbsp;<BR>
tion_number(+9123) =~ /^\*(732673)$/ break=on-false<BR>
&nbsp;<BR>
2011-05-07 22:48:05.727537 [DEBUG] &nbsp;switch_core_state_machine.c:119 (sofia/intern<BR>
&nbsp;<BR>
<a href="al/+4001@192.168.200.100">al/+4001@192.168.200.100</a>) State Change &nbsp;CS_ROUTING -&gt; CS_EXECUTE<BR>
&nbsp;<BR>
2011-05-07 22:48:05.727537 [DEBUG] &nbsp;switch_core_session.c:1116 Send signal sofia/<BR>
&nbsp;<BR>
<a href="internal/+4001@192.168.200.100">internal/+4001@192.168.200.100</a> [BREAK]<BR>
&nbsp;<BR>
2011-05-07 22:48:05.727537 [DEBUG] &nbsp;switch_core_state_machine.c:364 (sofia/intern<BR>
&nbsp;<BR>
<a href="al/+4001@192.168.200.100">al/+4001@192.168.200.100</a>) State ROUTING &nbsp;going to sleep<BR>
&nbsp;<BR>
2011-05-07 22:48:05.727537 [DEBUG] &nbsp;switch_core_state_machine.c:325 (sofia/intern<BR>
&nbsp;<BR>
<a href="al/+4001@192.168.200.100">al/+4001@192.168.200.100</a>) Running State &nbsp;Change CS_EXECUTE<BR>
&nbsp;<BR>
2011-05-07 22:48:05.727537 [DEBUG] &nbsp;switch_core_state_machine.c:371 (sofia/intern<BR>
&nbsp;<BR>
<a href="al/+4001@192.168.200.100">al/+4001@192.168.200.100</a>) State EXECUTE<BR>
&nbsp;<BR>
2011-05-07 22:48:05.727537 [DEBUG] mod_sofia.c:240 &nbsp;<a href="sofia/internal/+4001@192.168">sofia/internal/+4001@192.168</a>.<BR>
&nbsp;<BR>
200.100 SOFIA EXECUTE<BR>
&nbsp;<BR>
2011-05-07 22:48:05.727537 [DEBUG] &nbsp;switch_core_state_machine.c:157 sofia/interna<BR>
&nbsp;<BR>
<a href="l/+4001@192.168.200.100">l/+4001@192.168.200.100</a> Standard &nbsp;EXECUTE<BR>
&nbsp;<BR>
EXECUTE <a href="sofia/internal/+4001@192.168.200.100">sofia/internal/+4001@192.168.200.100</a> &nbsp;set(destination_number=9123)<BR>
&nbsp;<BR>
2011-05-07 22:48:05.728537 [DEBUG] mod_dptools.c:1060 &nbsp;<a href="sofia/internal/+4001@192.1">sofia/internal/+4001@192.1</a><BR>
&nbsp;<BR>
68.200.100 SET [destination_number]=[9123]<BR>
&nbsp;<BR>
EXECUTE <a href="sofia/internal/+4001@192.168.200.100">sofia/internal/+4001@192.168.200.100</a> &nbsp;set(effective_caller_id_name=4001)<BR>
&nbsp;<BR>
2011-05-07 22:48:05.728537 [DEBUG] mod_dptools.c:1060 &nbsp;<a href="sofia/internal/+4001@192.1">sofia/internal/+4001@192.1</a><BR>
&nbsp;<BR>
68.200.100 SET [effective_caller_id_name]=[4001]<BR>
&nbsp;<BR>
EXECUTE <a href="sofia/internal/+4001@192.168.200.100">sofia/internal/+4001@192.168.200.100</a> &nbsp;set(effective_caller_id_number=4001<BR>
&nbsp;<BR>
)<BR>
&nbsp;<BR>
2011-05-07 22:48:05.729537 [DEBUG] mod_dptools.c:1060 &nbsp;<a href="sofia/internal/+4001@192.1">sofia/internal/+4001@192.1</a><BR>
&nbsp;<BR>
68.200.100 SET [effective_caller_id_number]=[4001]<BR>
&nbsp;<BR>
2011-05-07 22:48:05.729537 [NOTICE] &nbsp;switch_core_state_machine.c:189 sofia/intern<BR>
&nbsp;<BR>
<a href="al/+4001@192.168.200.100">al/+4001@192.168.200.100</a> has executed the &nbsp;last dialplan instruction, hanging up.<BR>
&nbsp;<BR>
&nbsp;<BR>
&nbsp;<BR>
2011-05-07 22:48:05.729537 [DEBUG] switch_channel.c:2563 &nbsp;(sofia/internal/+4001@1<BR>
&nbsp;<BR>
92.168.200.100) Callstate Change RINGING -&gt; HANGUP<BR>
&nbsp;<BR>
2011-05-07 22:48:05.729537 [NOTICE] &nbsp;switch_core_state_machine.c:191 Hangup sofia<BR>
&nbsp;<BR>
<a href="/internal/+4001@192.168.200.100">/internal/+4001@192.168.200.100</a> [CS_EXECUTE] &nbsp;[NORMAL_CLEARING]<BR>
&nbsp;<BR>
2011-05-07 22:48:05.730538 [DEBUG] switch_channel.c:2579 &nbsp;Send signal sofia/inter<BR>
&nbsp;<BR>
<a href="nal/+4001@192.168.200.100">nal/+4001@192.168.200.100</a> [KILL]<BR>
&nbsp;<BR>
2011-05-07 22:48:05.730538 [DEBUG] &nbsp;switch_core_session.c:1116 Send signal sofia/<BR>
&nbsp;<BR>
<a href="internal/+4001@192.168.200.100">internal/+4001@192.168.200.100</a> [BREAK]<BR>
&nbsp;<BR>
2011-05-07 22:48:05.730538 [DEBUG] &nbsp;switch_core_state_machine.c:371 (sofia/intern<BR>
&nbsp;<BR>
<a href="al/+4001@192.168.200.100">al/+4001@192.168.200.100</a>) State EXECUTE &nbsp;going to sleep<BR>
&nbsp;<BR>
2011-05-07 22:48:05.730538 [DEBUG] &nbsp;switch_core_state_machine.c:325 (sofia/intern<BR>
&nbsp;<BR>
<a href="al/+4001@192.168.200.100">al/+4001@192.168.200.100</a>) Running State &nbsp;Change CS_HANGUP<BR>
&nbsp;<BR>
2011-05-07 22:48:05.731538 [DEBUG] &nbsp;switch_core_state_machine.c:565 (sofia/intern<BR>
&nbsp;<BR>
<a href="al/+4001@192.168.200.100">al/+4001@192.168.200.100</a>) State HANGUP<BR>
&nbsp;<BR>
2011-05-07 22:48:05.732538 [DEBUG] mod_sofia.c:457 Channel &nbsp;sofia/internal/+4001@<BR>
&nbsp;<BR>
192.168.200.100 hanging up, cause: NORMAL_CLEARING<BR>
&nbsp;<BR>
2011-05-07 22:48:05.732538 [DEBUG] mod_sofia.c:519 &nbsp;Responding to INVITE with: 48<BR>
&nbsp;<BR>
0<BR>
&nbsp;<BR>
2011-05-07 22:48:05.732538 [DEBUG] &nbsp;switch_core_state_machine.c:46 sofia/internal<BR>
&nbsp;<BR>
<a href="/+4001@192.168.200.100">/+4001@192.168.200.100</a> Standard HANGUP, &nbsp;cause: NORMAL_CLEARING<BR>
&nbsp;<BR>
2011-05-07 22:48:05.732538 [DEBUG] &nbsp;switch_core_state_machine.c:565 (sofia/intern<BR>
&nbsp;<BR>
<a href="al/+4001@192.168.200.100">al/+4001@192.168.200.100</a>) State HANGUP &nbsp;going to sleep<BR>
&nbsp;<BR>
2011-05-07 22:48:05.732538 [DEBUG] &nbsp;switch_core_state_machine.c:356 (sofia/intern<BR>
&nbsp;<BR>
<a href="al/+4001@192.168.200.100">al/+4001@192.168.200.100</a>) State Change &nbsp;CS_HANGUP -&gt; CS_REPORTING<BR>
&nbsp;<BR>
2011-05-07 22:48:05.732538 [DEBUG] &nbsp;switch_core_session.c:1116 Send signal sofia/<BR>
&nbsp;<BR>
<a href="internal/+4001@192.168.200.100">internal/+4001@192.168.200.100</a> [BREAK]<BR>
&nbsp;<BR>
2011-05-07 22:48:05.732538 [DEBUG] &nbsp;switch_core_state_machine.c:325 (sofia/intern<BR>
&nbsp;<BR>
<a href="al/+4001@192.168.200.100">al/+4001@192.168.200.100</a>) Running State &nbsp;Change CS_REPORTING<BR>
&nbsp;<BR>
2011-05-07 22:48:05.732538 [DEBUG] &nbsp;switch_core_state_machine.c:625 (sofia/intern<BR>
&nbsp;<BR>
<a href="al/+4001@192.168.200.100">al/+4001@192.168.200.100</a>) State &nbsp;REPORTING<BR>
&nbsp;<BR>
2011-05-07 22:48:06.017554 [DEBUG] &nbsp;switch_core_state_machine.c:53 sofia/internal<BR>
&nbsp;<BR>
<a href="/+4001@192.168.200.100">/+4001@192.168.200.100</a> Standard &nbsp;REPORTING, cause: NORMAL_CLEARING<BR>
&nbsp;<BR>
2011-05-07 22:48:06.017554 [DEBUG] &nbsp;switch_core_state_machine.c:625 (sofia/intern<BR>
&nbsp;<BR>
<a href="al/+4001@192.168.200.100">al/+4001@192.168.200.100</a>) State REPORTING &nbsp;going to sleep<BR>
&nbsp;<BR>
2011-05-07 22:48:06.017554 [DEBUG] &nbsp;switch_core_state_machine.c:350 (sofia/intern<BR>
&nbsp;<BR>
<a href="al/+4001@192.168.200.100">al/+4001@192.168.200.100</a>) State Change &nbsp;CS_REPORTING -&gt; CS_DESTROY<BR>
&nbsp;<BR>
2011-05-07 22:48:06.017554 [DEBUG] &nbsp;switch_core_session.c:1116 Send signal sofia/<BR>
&nbsp;<BR>
<a href="internal/+4001@192.168.200.100">internal/+4001@192.168.200.100</a> [BREAK]<BR>
&nbsp;<BR>
2011-05-07 22:48:06.017554 [DEBUG] &nbsp;switch_core_session.c:1288 Session 2 (sofia/i<BR>
&nbsp;<BR>
<a href="nternal/+4001@192.168.200.100">nternal/+4001@192.168.200.100</a>) Locked, Waiting &nbsp;on external entities<BR>
&nbsp;<BR>
2011-05-07 22:48:06.017554 [NOTICE] &nbsp;switch_core_session.c:1306 Session 2 (sofia/<BR>
&nbsp;<BR>
<a href="internal/+4001@192.168.200.100">internal/+4001@192.168.200.100</a>) Ended<BR>
&nbsp;<BR>
2011-05-07 22:48:06.017554 [NOTICE] &nbsp;switch_core_session.c:1308 Close Channel sof<BR>
&nbsp;<BR>
<a href="ia/internal/+4001@192.168.200.100">ia/internal/+4001@192.168.200.100</a> [CS_DESTROY]<BR>
&nbsp;<BR>
2011-05-07 22:48:06.018554 [DEBUG] &nbsp;switch_core_state_machine.c:454 (sofia/intern<BR>
&nbsp;<BR>
<a href="al/+4001@192.168.200.100">al/+4001@192.168.200.100</a>) Callstate Change &nbsp;HANGUP -&gt; DOWN<BR>
&nbsp;<BR>
2011-05-07 22:48:06.018554 [DEBUG] &nbsp;switch_core_state_machine.c:457 (sofia/intern<BR>
&nbsp;<BR>
<a href="al/+4001@192.168.200.100">al/+4001@192.168.200.100</a>) Running State &nbsp;Change CS_DESTROY<BR>
&nbsp;<BR>
2011-05-07 22:48:06.018554 [DEBUG] &nbsp;switch_core_state_machine.c:467 (sofia/intern<BR>
&nbsp;<BR>
<a href="al/+4001@192.168.200.100">al/+4001@192.168.200.100</a>) State DESTROY<BR>
&nbsp;<BR>
2011-05-07 22:48:06.018554 [DEBUG] mod_sofia.c:362 &nbsp;<a href="sofia/internal/+4001@192.168">sofia/internal/+4001@192.168</a>.<BR>
&nbsp;<BR>
200.100 SOFIA DESTROY<BR>
&nbsp;<BR>
2011-05-07 22:48:06.018554 [DEBUG] &nbsp;switch_core_state_machine.c:60 sofia/internal<BR>
&nbsp;<BR>
<a href="/+4001@192.168.200.100">/+4001@192.168.200.100</a> Standard &nbsp;DESTROY<BR>
&nbsp;<BR>
2011-05-07 22:48:06.018554 [DEBUG] &nbsp;switch_core_state_machine.c:467 (sofia/intern<BR>
&nbsp;<BR>
<a href="al/+4001@192.168.200.100">al/+4001@192.168.200.100</a>) State DESTROY &nbsp;going to sleep<BR>
&nbsp;<BR>
&nbsp;<BR>
<HR ALIGN=CENTER SIZE="3" WIDTH="100%"> <BR>
<BR>
_______________________________________________<BR>
FreeSWITCH-users &nbsp;mailing &nbsp;list<BR>
<a href="FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><BR>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><BR>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><BR>
<a href="http://www.freeswitch.org">http://www.freeswitch.org</a><BR>
<BR>
<HR ALIGN=CENTER SIZE="3" WIDTH="95%"></SPAN></FONT></BLOCKQUOTE><FONT SIZE="2"><FONT FACE="Consolas, Courier New, Courier"><SPAN STYLE='font-size:10pt'>_______________________________________________<BR>
FreeSWITCH-users mailing list<BR>
<a href="FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><BR>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><BR>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><BR>
<a href="http://www.freeswitch.org">http://www.freeswitch.org</a><BR>
</SPAN></FONT></FONT></BLOCKQUOTE>
</BODY>
</HTML>