There was a bug regarding that, try revision 8412<br><br><br><div class="gmail_quote">On Wed, May 14, 2008 at 5:22 AM, Csaba Zelei &lt;<a href="mailto:csaba.zelei@gmail.com">csaba.zelei@gmail.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br>
<br>
Currently I need to set up attended transfer to phones which dont have<br>
any support to it.<br>
So, made a simple extension in features.xml which read the number and<br>
supply it to att_xfer app:<br>
<br>
&lt;extension name=&quot;att_xfer&quot;&gt;<br>
 &nbsp; &nbsp;&lt;condition field=&quot;destination_number&quot; expression=&quot;^att_xfer$&quot;&gt;<br>
 &nbsp; &nbsp; &nbsp; &nbsp;&lt;action application=&quot;read&quot; data=&quot;3 4 sounds/mellekek.wav<br>
attxfer_callthis 30000 #&quot;/&gt;<br>
 &nbsp; &nbsp; &nbsp; &nbsp;&lt;action application=&quot;att_xfer&quot;<br>
data=&quot;sofia/default/${attxfer_callthis}&quot;/&gt;<br>
 &nbsp; &nbsp; &nbsp;&lt;/condition&gt;<br>
&lt;/extension&gt;<br>
<br>
then bind it to dtmf 3 in default.xml Local Extension with:<br>
<br>
&lt;anti-action application=&quot;bind_meta_app&quot; data=&quot;3 a a<br>
execute_extension::att_xfer XML features&quot;/&gt;<br>
<br>
I can activate this feautre, it&#39;s hold the bleg and call the 3rd party,<br>
but when I try to make the transfer with dtmf 0 than it hangup all legs.<br>
For me it&#39;s look like that FS hangup the channels than try to bridge them.<br>
Here is the console log:<br>
<br>
freeswitch@devil4&gt; show channels<br>
API CALL [show(channels)] output:<br>
uuid,created,created_epoch,name,state,cid_name,cid_num,ip_addr,dest,application,application_data,dialplan,context,read_codec,read_rate,write_codec,write_rate<br>
19112de8-2197-11dd-ba14-5dc4d1b7fe8e,2008-05-14<br>
11:21:13,1210756873,sofia/default/anonymous@localhost,CS_EXECUTE,1003,1003,<a href="http://192.168.1.192" target="_blank">192.168.1.192</a>,1001,att_xfer,sofia/default/1000,XML,default,PCMA,8000,PCMA,8000<br>
193e7bf4-2197-11dd-ba14-5dc4d1b7fe8e,2008-05-14<br>
11:21:13,1210756873,sofia/default/1001,CS_EXCHANGE_MEDIA,1003,1003,<a href="http://192.168.1.192" target="_blank">192.168.1.192</a>,1001,playback,local_stream://moh,XML,default,PCMA,8000,PCMA,8000<br>
1e67e516-2197-11dd-ba14-5dc4d1b7fe8e,2008-05-14<br>
11:21:22,1210756882,sofia/default/1000,CS_EXCHANGE_MEDIA,1003,1003,<a href="http://192.168.1.192" target="_blank">192.168.1.192</a>,1000,,,XML,default,PCMA,8000,PCMA,8000<br>
<br>
3 total.<br>
<br>
freeswitch@devil4&gt; 2008-05-14 11:21:40 [DEBUG] mod_dptools.c:1344<br>
xfer_on_dtmf() sofia/default/1000 State Change CS_EXCHANGE_MEDIA -&gt;<br>
CS_EXECUTE<br>
2008-05-14 11:21:40 [DEBUG] switch_core_session.c:671<br>
switch_core_session_signal_state_change() Kill sofia/default/1000 [BREAK]<br>
2008-05-14 11:21:40 [DEBUG] switch_ivr_bridge.c:193<br>
audio_bridge_thread() sofia/default/anonymous@localhost ended call via DTMF<br>
2008-05-14 11:21:40 [DEBUG] switch_ivr_bridge.c:194<br>
audio_bridge_thread() Kill sofia/default/1000 [BREAK]<br>
2008-05-14 11:21:40 [DEBUG] switch_core_session.c:383<br>
switch_core_session_receive_message() Kill<br>
sofia/default/anonymous@localhost [BREAK]<br>
2008-05-14 11:21:40 [DEBUG] switch_ivr_bridge.c:344<br>
audio_bridge_thread() Kill sofia/default/1000 [BREAK]<br>
2008-05-14 11:21:40 [DEBUG] switch_ivr_bridge.c:347<br>
audio_bridge_thread() BRIDGE THREAD DONE [sofia/default/anonymous@localhost]<br>
2008-05-14 11:21:40 [NOTICE] switch_ivr_bridge.c:802<br>
switch_ivr_multi_threaded_bridge() Hangup<br>
sofia/default/anonymous@localhost [CS_EXECUTE] [UNALLOCATED]<br>
2008-05-14 11:21:40 [DEBUG] switch_channel.c:1355<br>
switch_channel_perform_hangup() Kill sofia/default/anonymous@localhost<br>
[KILL]<br>
2008-05-14 11:21:40 [DEBUG] switch_core_session.c:671<br>
switch_core_session_signal_state_change() Kill<br>
sofia/default/anonymous@localhost [BREAK]<br>
2008-05-14 11:21:40 [DEBUG] switch_core_session.c:383<br>
switch_core_session_receive_message() Kill sofia/default/1000 [BREAK]<br>
2008-05-14 11:21:40 [DEBUG] switch_ivr_bridge.c:344<br>
audio_bridge_thread() Kill sofia/default/anonymous@localhost [BREAK]<br>
2008-05-14 11:21:40 [DEBUG] switch_ivr_bridge.c:347<br>
audio_bridge_thread() BRIDGE THREAD DONE [sofia/default/1000]<br>
2008-05-14 11:21:40 [DEBUG] switch_core_state_machine.c:431<br>
switch_core_session_run() (sofia/default/1000) State EXCHANGE_MEDIA<br>
going to sleep<br>
2008-05-14 11:21:40 [DEBUG] switch_core_state_machine.c:364<br>
switch_core_session_run() sofia/default/1000 Running State Change CS_EXECUTE<br>
2008-05-14 11:21:40 [DEBUG] switch_core_state_machine.c:428<br>
switch_core_session_run() (sofia/default/1000) State EXECUTE<br>
2008-05-14 11:21:40 [DEBUG] mod_sofia.c:156 sofia_on_execute()<br>
sofia/default/1000 SOFIA EXECUTE<br>
2008-05-14 11:21:40 [DEBUG] switch_core_state_machine.c:128<br>
switch_core_standard_on_execute() Standard EXECUTE<br>
2008-05-14 11:21:40 [DEBUG] switch_core_state_machine.c:139<br>
switch_core_standard_on_execute() sofia/default/1000 Execute<br>
three_way(19112de8-2197-11dd-ba14-5dc4d1b7fe8e)<br>
2008-05-14 11:21:40 [DEBUG] switch_core_media_bug.c:227<br>
switch_core_media_bug_add() Attaching BUG to<br>
sofia/default/anonymous@localhost<br>
2008-05-14 11:21:40 [DEBUG] switch_core_media_bug.c:312<br>
switch_core_media_bug_close() Removing BUG from<br>
sofia/default/anonymous@localhost<br>
2008-05-14 11:21:40 [NOTICE] switch_core_state_machine.c:156<br>
switch_core_standard_on_execute() Hangup sofia/default/1000 [CS_EXECUTE]<br>
[NORMAL_CLEARING]<br>
2008-05-14 11:21:40 [DEBUG] switch_channel.c:1355<br>
switch_channel_perform_hangup() Kill sofia/default/1000 [KILL]<br>
2008-05-14 11:21:40 [DEBUG] switch_core_session.c:671<br>
switch_core_session_signal_state_change() Kill sofia/default/1000 [BREAK]<br>
2008-05-14 11:21:40 [DEBUG] switch_core_state_machine.c:428<br>
switch_core_session_run() (sofia/default/1000) State EXECUTE going to sleep<br>
2008-05-14 11:21:40 [DEBUG] switch_core_state_machine.c:364<br>
switch_core_session_run() sofia/default/1000 Running State Change CS_HANGUP<br>
2008-05-14 11:21:40 [DEBUG] switch_core_state_machine.c:392<br>
switch_core_session_run() (sofia/default/1000) State HANGUP<br>
2008-05-14 11:21:40 [DEBUG] mod_sofia.c:264 sofia_on_hangup() Channel<br>
sofia/default/1000 hanging up, cause: NORMAL_CLEARING<br>
2008-05-14 11:21:40 [DEBUG] mod_sofia.c:296 sofia_on_hangup() Sending<br>
BYE to sofia/default/1000<br>
2008-05-14 11:21:40 [DEBUG] switch_core_state_machine.c:46<br>
switch_core_standard_on_hangup() Standard HANGUP sofia/default/1000,<br>
cause: NORMAL_CLEARING<br>
2008-05-14 11:21:40 [DEBUG] switch_core_state_machine.c:392<br>
switch_core_session_run() (sofia/default/1000) State HANGUP going to sleep<br>
2008-05-14 11:21:40 [DEBUG] switch_core_session.c:731<br>
switch_core_session_thread() Session 5 (sofia/default/1000) Locked,<br>
Waiting on external entities<br>
2008-05-14 11:21:40 [NOTICE] switch_core_session.c:749<br>
switch_core_session_thread() Session 5 (sofia/default/1000) Ended<br>
2008-05-14 11:21:40 [NOTICE] switch_core_session.c:751<br>
switch_core_session_thread() Close Channel sofia/default/1000 [CS_HANGUP]<br>
2008-05-14 11:21:40 [DEBUG] switch_ivr_play_say.c:1130<br>
switch_ivr_play_file() done playing file<br>
2008-05-14 11:21:40 [DEBUG] switch_core_session.c:383<br>
switch_core_session_receive_message() Kill sofia/default/1001 [BREAK]<br>
2008-05-14 11:21:40 [DEBUG] switch_ivr_bridge.c:160<br>
audio_bridge_thread() Kill sofia/default/anonymous@localhost [BREAK]<br>
2008-05-14 11:21:40 [DEBUG] switch_core_session.c:383<br>
switch_core_session_receive_message() Kill sofia/default/1001 [BREAK]<br>
2008-05-14 11:21:40 [DEBUG] switch_ivr_bridge.c:344<br>
audio_bridge_thread() Kill sofia/default/anonymous@localhost [BREAK]<br>
2008-05-14 11:21:40 [DEBUG] switch_ivr_bridge.c:347<br>
audio_bridge_thread() BRIDGE THREAD DONE [sofia/default/1001]<br>
2008-05-14 11:21:40 [NOTICE] switch_ivr_bridge.c:374<br>
audio_bridge_on_exchange_media() Hangup sofia/default/1001<br>
[CS_EXCHANGE_MEDIA] [NORMAL_CLEARING]<br>
2008-05-14 11:21:40 [DEBUG] switch_channel.c:1355<br>
switch_channel_perform_hangup() Kill sofia/default/1001 [KILL]<br>
2008-05-14 11:21:40 [DEBUG] switch_ivr_bridge.c:919<br>
switch_ivr_uuid_bridge() originator uuid<br>
1e67e516-2197-11dd-ba14-5dc4d1b7fe8e is not present<br>
2008-05-14 11:21:40 [DEBUG] mod_dptools.c:1371 hanguphook()<br>
Hangup Command uuid_bridge(1e67e516-2197-11dd-ba14-5dc4d1b7fe8e<br>
19112de8-2197-11dd-ba14-5dc4d1b7fe8e):<br>
-ERR Invalid uuid<br>
<br>
2008-05-14 11:21:40 [DEBUG] switch_core_session.c:671<br>
switch_core_session_signal_state_change() Kill sofia/default/1001 [BREAK]<br>
2008-05-14 11:21:40 [DEBUG] switch_core_state_machine.c:431<br>
switch_core_session_run() (sofia/default/1001) State EXCHANGE_MEDIA<br>
going to sleep<br>
2008-05-14 11:21:40 [DEBUG] switch_core_state_machine.c:364<br>
switch_core_session_run() sofia/default/1001 Running State Change CS_HANGUP<br>
2008-05-14 11:21:40 [DEBUG] switch_core_state_machine.c:392<br>
switch_core_session_run() (sofia/default/1001) State HANGUP<br>
2008-05-14 11:21:40 [DEBUG] mod_sofia.c:264 sofia_on_hangup() Channel<br>
sofia/default/1001 hanging up, cause: NORMAL_CLEARING<br>
2008-05-14 11:21:40 [DEBUG] mod_sofia.c:296 sofia_on_hangup() Sending<br>
BYE to sofia/default/1001<br>
2008-05-14 11:21:40 [DEBUG] switch_core_state_machine.c:46<br>
switch_core_standard_on_hangup() Standard HANGUP sofia/default/1001,<br>
cause: NORMAL_CLEARING<br>
2008-05-14 11:21:40 [DEBUG] switch_core_state_machine.c:392<br>
switch_core_session_run() (sofia/default/1001) State HANGUP going to sleep<br>
2008-05-14 11:21:40 [DEBUG] switch_core_session.c:731<br>
switch_core_session_thread() Session 4 (sofia/default/1001) Locked,<br>
Waiting on external entities<br>
2008-05-14 11:21:40 [DEBUG] switch_ivr_bridge.c:160<br>
audio_bridge_thread() Kill sofia/default/1001 [BREAK]<br>
2008-05-14 11:21:40 [DEBUG] switch_ivr_bridge.c:275<br>
audio_bridge_thread() read: sofia/default/anonymous@localhost Bad<br>
Frame.... Bubye!<br>
2008-05-14 11:21:40 [DEBUG] switch_ivr_bridge.c:344<br>
audio_bridge_thread() Kill sofia/default/1001 [BREAK]<br>
2008-05-14 11:21:40 [DEBUG] switch_ivr_bridge.c:347<br>
audio_bridge_thread() BRIDGE THREAD DONE [sofia/default/anonymous@localhost]<br>
2008-05-14 11:21:40 [DEBUG] switch_core_state_machine.c:428<br>
switch_core_session_run() (sofia/default/anonymous@localhost) State<br>
EXECUTE going to sleep<br>
2008-05-14 11:21:40 [DEBUG] switch_core_state_machine.c:364<br>
switch_core_session_run() sofia/default/anonymous@localhost Running<br>
State Change CS_HANGUP<br>
2008-05-14 11:21:40 [DEBUG] switch_core_state_machine.c:392<br>
switch_core_session_run() (sofia/default/anonymous@localhost) State HANGUP<br>
2008-05-14 11:21:40 [DEBUG] mod_sofia.c:264 sofia_on_hangup() Channel<br>
sofia/default/anonymous@localhost hanging up, cause: UNALLOCATED<br>
2008-05-14 11:21:40 [DEBUG] mod_sofia.c:296 sofia_on_hangup() Sending<br>
BYE to sofia/default/anonymous@localhost<br>
2008-05-14 11:21:40 [DEBUG] switch_core_state_machine.c:46<br>
switch_core_standard_on_hangup() Standard HANGUP<br>
sofia/default/anonymous@localhost, cause: UNALLOCATED<br>
2008-05-14 11:21:40 [DEBUG] switch_core_state_machine.c:392<br>
switch_core_session_run() (sofia/default/anonymous@localhost) State<br>
HANGUP going to sleep<br>
2008-05-14 11:21:40 [DEBUG] switch_core_session.c:731<br>
switch_core_session_thread() Session 3<br>
(sofia/default/anonymous@localhost) Locked, Waiting on external entities<br>
2008-05-14 11:21:40 [NOTICE] switch_core_session.c:749<br>
switch_core_session_thread() Session 3<br>
(sofia/default/anonymous@localhost) Ended<br>
2008-05-14 11:21:40 [NOTICE] switch_core_session.c:751<br>
switch_core_session_thread() Close Channel<br>
sofia/default/anonymous@localhost [CS_HANGUP]<br>
2008-05-14 11:21:40 [NOTICE] switch_core_session.c:749<br>
switch_core_session_thread() Session 4 (sofia/default/1001) Ended<br>
2008-05-14 11:21:40 [NOTICE] switch_core_session.c:751<br>
switch_core_session_thread() Close Channel sofia/default/100<br>
<br>
My question is if its a bug or I did something wrong?<br>
I used the lastest trunk on Ubuntu linux.<br>
<br>
Thanks,<br>
<br>
Csaba<br>
<br>
<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>
</blockquote></div><br><br clear="all"><br>-- <br>Anthony Minessale II<br><br>FreeSWITCH <a href="http://www.freeswitch.org/">http://www.freeswitch.org/</a><br>ClueCon <a href="http://www.cluecon.com/">http://www.cluecon.com/</a><br>
<br>AIM: anthm<br><a href="mailto:MSN%3Aanthony_minessale@hotmail.com">MSN:anthony_minessale@hotmail.com</a><br>GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com">PAYPAL:anthony.minessale@gmail.com</a><br>
IRC: <a href="http://irc.freenode.net">irc.freenode.net</a> #freeswitch<br><br>FreeSWITCH Developer Conference<br><a href="mailto:sip%3A888@conference.freeswitch.org">sip:888@conference.freeswitch.org</a><br><a href="http://iax:guest@conference.freeswitch.org/888">iax:guest@conference.freeswitch.org/888</a><br>
<a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org">googletalk:conf+888@conference.freeswitch.org</a><br>pstn:213-799-1400