Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] FreeSwitch doesn't play music on hold for briged channel


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
vkozak at abisoft.spb.ru
Guest





PostPosted: Fri Jul 31, 2009 5:30 am    Post subject: [Freeswitch-users] FreeSwitch doesn't play music on hold for Reply with quote

The scenario is the following: FS User A dial an extension Extention opens outbound socket channel to my application My application bridges the call to FS User B The application check for CHANNEL_BRIDGED event and stores Other-leg-unique-id The application sends hold to the bridged channel using SendMsg with Other-leg-unique-id User B is placed on hold but no music on hold is played to the caller (User A) I have outbound socket channel and the following sequence of commands/event: listening on [any] 8084 ...connect to [172.26.200.251] from centos4-4-vm.abisoft.spb.ru [172.26.200.250] 34000connect myevents SendMsgcall-command: executeexecute-app-name: bridgeexecute-app-arg:user/1000@uat.agent.starpoundtech.net Channel-Username: 1001Channel-Dialplan: XMLChannel-Caller-ID-Name: 1001Channel-Caller-ID-Number: 1001Channel-Network-Addr: 172.26.10.39Channel-Destination-Number: 6666Channel-Unique-ID: 15826d29-b807-4955-a2f9-038e0b3ee6e2Channel-Source: mod_sofiaChannel-Context: defaultChannel-Channel-Name: sofia/internal/1001%40172.26.200.250Channel-Profile-Index: 1Channel-Profile-Created-Time: 1249142681680114Channel-Channel-Created-Time: 1249142681680114Channel-Channel-Answered-Time: 0Channel-Channel-Progress-Time: 0Channel-Channel-Progress-Media-Time: 1249142681809352Channel-Channel-Hangup-Time: 0Channel-Channel-Transfer-Time: 0Channel-Screen-Bit: trueChannel-Privacy-Hide-Name: falseChannel-Privacy-Hide-Number: falseChannel-State: CS_EXECUTEChannel-State-Number: 4Channel-Name: sofia/internal/1001%40172.26.200.250Unique-ID: 15826d29-b807-4955-a2f9-038e0b3ee6e2Call-Direction: inboundAnswer-State: earlyChannel-Read-Codec-Name: PCMUChannel-Read-Codec-Rate: 8000Channel-Write-Codec-Name: PCMUChannel-Write-Codec-Rate: 8000Caller-Username: 1001Caller-Dialplan: XMLCaller-Caller-ID-Name: 1001Caller-Caller-ID-Number: 1001Caller-Network-Addr: 172.26.10.39Caller-Destination-Number: 6666Caller-Unique-ID: 15826d29-b807-4955-a2f9-038e0b3ee6e2Caller-Source: mod_sofiaCaller-Context: defaultCaller-Channel-Name: sofia/internal/1001%40172.26.200.250Caller-Profile-Index: 1Caller-Profile-Created-Time: 1249142681680114Caller-Channel-Created-Time: 1249142681680114Caller-Channel-Answered-Time: 0Caller-Channel-Progress-Time: 0Caller-Channel-Progress-Media-Time: 1249142681809352Caller-Channel-Hangup-Time: 0Caller-Channel-Transfer-Time: 0Caller-Screen-Bit: trueCaller-Privacy-Hide-Name: falseCaller-Privacy-Hide-Number: falsevariable_sip_received_ip: 172.26.10.39variable_sip_received_port: 13488variable_sip_via_protocol: udpvariable_sip_authorized: truevariable_sip_mailbox: 1001variable_sip_auth_username: 1001variable_sip_auth_realm: 172.26.200.250variable_mailbox: 1001variable_toll_allow: domestic,international,localvariable_accountcode: 1001variable_user_context: defaultvariable_effective_caller_id_name: Extension%201001variable_effective_caller_id_number: 1001variable_outbound_caller_id_name: StarPound%20FreeSWITCHvariable_outbound_caller_id_number: 0000000000variable_callgroup: techsupportvariable_sip_from_user: 1001variable_sip_from_uri: 1001%40172.26.200.250variable_sip_from_host: 172.26.200.250variable_sip_from_user_stripped: 1001variable_sip_from_tag: bd11f93cvariable_sofia_profile_name: internalvariable_sip_req_user: 6666variable_sip_req_uri: 6666%40172.26.200.250variable_sip_req_host: 172.26.200.250variable_sip_to_user: 6666variable_sip_to_uri: 6666%40172.26.200.250variable_sip_to_host: 172.26.200.250variable_sip_contact_user: 1001variable_sip_contact_port: 13488variable_sip_contact_uri: 1001%40172.26.10.39%3A13488variable_sip_contact_host: 172.26.10.39variable_channel_name: sofia/internal/1001%40172.26.200.250variable_sip_call_id: ZTYwOGM2NDNmMzA5ZjFmOWRhZGJiNTZkMDEyMjQ4YTc.variable_sip_user_agent: X-Lite%20release%201103d%20stamp%2053117variable_sip_via_host: 172.26.10.39variable_sip_via_port: 13488variable_sip_via_rport: 13488variable_max_forwards: 70variable_presence_id: 1001%40172.26.200.250variable_switch_r_sdp: v%3D0%0D%0Ao%3D-%208%202%20IN%20IP4%20172.26.10.39%0D%0As%3DCounterPath%20X-Lite%203.0%0D%0Ac%3DIN%20IP4%20172.26.10.39%0D%0At%3D0%200%0D%0Am%3Daudio%2029826%20RTP/AVP%200%208%203%20101%0D%0Aa%3Drtpmap%3A101%20telephone-event/8000%0D%0Aa%3Dfmtp%3A101%200-15%0D%0Avariable_remote_media_ip: 172.26.10.39variable_remote_media_port: 29826variable_read_codec: PCMUvariable_read_rate: 8000variable_write_codec: PCMUvariable_write_rate: 8000variable_use_profile: natvariable_record_stereo: truevariable_transfer_fallback_extension: operatorvariable_numbering_plan: USvariable_default_areacode: 918variable_default_gateway: example.comvariable_user_name: defaultvariable_domain_name: 172.26.200.250variable_current_application_data: 172.26.200.251%3A8084%20async%20fullvariable_current_application: socketvariable_socket_host: 172.26.200.251variable_local_media_ip: 172.26.200.250variable_local_media_port: 29370variable_endpoint_disposition: EARLY%20MEDIAvariable_sip_nat_detected: trueContent-Type: command/replyReply-Text: %2BOK%0ASocket-Mode: asyncControl: full Content-Type: command/replyReply-Text: +OK Events Enabled Content-Type: command/replyReply-Text: +OK Content-Length: 1541Content-Type: text/event-plain Channel-State: CS_EXECUTEChannel-State-Number: 4Channel-Name: sofia/internal/1001%40172.26.200.250Unique-ID: 15826d29-b807-4955-a2f9-038e0b3ee6e2Call-Direction: inboundAnswer-State: earlyChannel-Read-Codec-Name: PCMUChannel-Read-Codec-Rate: 8000Channel-Write-Codec-Name: PCMUChannel-Write-Codec-Rate: 8000Caller-Username: 1001Caller-Dialplan: XMLCaller-Caller-ID-Name: 1001Caller-Caller-ID-Number: 1001Caller-Network-Addr: 172.26.10.39Caller-Destination-Number: 6666Caller-Unique-ID: 15826d29-b807-4955-a2f9-038e0b3ee6e2Caller-Source: mod_sofiaCaller-Context: defaultCaller-Channel-Name: sofia/internal/1001%40172.26.200.250Caller-Profile-Index: 1Caller-Profile-Created-Time: 1249142681680114Caller-Channel-Created-Time: 1249142681680114Caller-Channel-Answered-Time: 0Caller-Channel-Progress-Time: 0Caller-Channel-Progress-Media-Time: 1249142681809352Caller-Channel-Hangup-Time: 0Caller-Channel-Transfer-Time: 0Caller-Screen-Bit: trueCaller-Privacy-Hide-Name: falseCaller-Privacy-Hide-Number: falseApplication: bridgeApplication-Data: user/1000%40uat.agent.starpoundtech.netEvent-Name: CHANNEL_EXECUTECore-UUID: ffb7a71e-0045-4013-89e2-f8c8ccbcfb4bFreeSWITCH-Hostname: centos4-4-vmFreeSWITCH-IPv4: 172.26.200.250FreeSWITCH-IPv6: %3A%3A1Event-Date-Local: 2009-08-01%2020%3A04%3A51Event-Date-GMT: Sat,%2001%20Aug%202009%2016%3A04%3A51%20GMTEvent-Date-Timestamp: 1249142691754598Event-Calling-File: switch_core_session.cEvent-Calling-Function: switch_core_session_execEvent-Calling-Line-Number: 1333 Content-Length: 5242Content-Type: text/event-plain Channel-State: CS_EXECUTEChannel-State-Number: 4Channel-Name: sofia/internal/1001%40172.26.200.250Unique-ID: 15826d29-b807-4955-a2f9-038e0b3ee6e2Call-Direction: inboundAnswer-State: answeredChannel-Read-Codec-Name: PCMUChannel-Read-Codec-Rate: 8000Channel-Write-Codec-Name: PCMUChannel-Write-Codec-Rate: 8000Caller-Username: 1001Caller-Dialplan: XMLCaller-Caller-ID-Name: 1001Caller-Caller-ID-Number: 1001Caller-Network-Addr: 172.26.10.39Caller-Destination-Number: 6666Caller-Unique-ID: 15826d29-b807-4955-a2f9-038e0b3ee6e2Caller-Source: mod_sofiaCaller-Context: defaultCaller-Channel-Name: sofia/internal/1001%40172.26.200.250Caller-Profile-Index: 1Caller-Profile-Created-Time: 1249142681680114Caller-Channel-Created-Time: 1249142681680114Caller-Channel-Answered-Time: 1249142692414509Caller-Channel-Progress-Time: 1249142691898434Caller-Channel-Progress-Media-Time: 1249142681809352Caller-Channel-Hangup-Time: 0Caller-Channel-Transfer-Time: 0Caller-Screen-Bit: trueCaller-Privacy-Hide-Name: falseCaller-Privacy-Hide-Number: falseOther-Leg-Username: 1001Other-Leg-Dialplan: XMLOther-Leg-Caller-ID-Name: Extension%201001Other-Leg-Caller-ID-Number: 1001Other-Leg-Network-Addr: 172.26.10.39Other-Leg-Destination-Number: sip%3A1000%40172.26.10.39%3A60152%3Brinstance%3D393ff32df3ec5e33%3Bfs_nat%3DyesOther-Leg-Unique-ID: 94b59a38-57c4-4703-9c6e-9985d832d119Other-Leg-Source: mod_sofiaOther-Leg-Context: defaultOther-Leg-Channel-Name: sofia/internal/sip%3A1000%40172.26.10.39%3A60152%3Brinstance%3D393ff32df3ec5e33%3Bfs_nat%3DyesOther-Leg-Screen-Bit: trueOther-Leg-Privacy-Hide-Name: falseOther-Leg-Privacy-Hide-Number: falsevariable_sip_received_ip: 172.26.10.39variable_sip_received_port: 13488variable_sip_via_protocol: udpvariable_sip_authorized: truevariable_sip_mailbox: 1001variable_sip_auth_username: 1001variable_sip_auth_realm: 172.26.200.250variable_mailbox: 1001variable_toll_allow: domestic,international,localvariable_accountcode: 1001variable_user_context: defaultvariable_effective_caller_id_name: Extension%201001variable_effective_caller_id_number: 1001variable_outbound_caller_id_name: StarPound%20FreeSWITCHvariable_outbound_caller_id_number: 0000000000variable_callgroup: techsupportvariable_sip_from_user: 1001variable_sip_from_uri: 1001%40172.26.200.250variable_sip_from_host: 172.26.200.250variable_sip_from_user_stripped: 1001variable_sip_from_tag: bd11f93cvariable_sofia_profile_name: internalvariable_sip_req_user: 6666variable_sip_req_uri: 6666%40172.26.200.250variable_sip_req_host: 172.26.200.250variable_sip_to_user: 6666variable_sip_to_uri: 6666%40172.26.200.250variable_sip_to_host: 172.26.200.250variable_sip_contact_user: 1001variable_sip_contact_port: 13488variable_sip_contact_uri: 1001%40172.26.10.39%3A13488variable_sip_contact_host: 172.26.10.39variable_channel_name: sofia/internal/1001%40172.26.200.250variable_sip_call_id: ZTYwOGM2NDNmMzA5ZjFmOWRhZGJiNTZkMDEyMjQ4YTc.variable_sip_user_agent: X-Lite%20release%201103d%20stamp%2053117variable_sip_via_host: 172.26.10.39variable_sip_via_port: 13488variable_sip_via_rport: 13488variable_max_forwards: 70variable_presence_id: 1001%40172.26.200.250variable_switch_r_sdp: v%3D0%0D%0Ao%3D-%208%202%20IN%20IP4%20172.26.10.39%0D%0As%3DCounterPath%20X-Lite%203.0%0D%0Ac%3DIN%20IP4%20172.26.10.39%0D%0At%3D0%200%0D%0Am%3Daudio%2029826%20RTP/AVP%200%208%203%20101%0D%0Aa%3Drtpmap%3A101%20telephone-event/8000%0D%0Aa%3Dfmtp%3A101%200-15%0D%0Avariable_remote_media_ip: 172.26.10.39variable_remote_media_port: 29826variable_read_codec: PCMUvariable_read_rate: 8000variable_write_codec: PCMUvariable_write_rate: 8000variable_use_profile: natvariable_record_stereo: truevariable_transfer_fallback_extension: operatorvariable_numbering_plan: USvariable_default_areacode: 918variable_default_gateway: example.comvariable_user_name: defaultvariable_domain_name: 172.26.200.250variable_socket_host: 172.26.200.251variable_local_media_ip: 172.26.200.250variable_local_media_port: 29370variable_endpoint_disposition: EARLY%20MEDIAvariable_current_application_data: user/1000%40uat.agent.starpoundtech.netvariable_current_application: bridgevariable_dialed_user: 1000variable_dialed_domain: uat.agent.starpoundtech.netvariable_originate_disposition: failurevariable_signal_bond: 94b59a38-57c4-4703-9c6e-9985d832d119variable_sip_redirect_contact_user_0: 1000variable_sip_redirect_contact_host_0: 172.26.10.39variable_switch_m_sdp: v%3D0%0D%0Ao%3D-%201%202%20IN%20IP4%20172.26.10.39%0D%0As%3DCounterPath%20eyeBeam%201.5%0D%0Ac%3DIN%20IP4%20172.26.10.39%0D%0At%3D0%200%0D%0Am%3Daudio%2063944%20RTP/AVP%200%208%203%20101%0D%0Aa%3Drtpmap%3A101%20telephone-event/8000%0D%0Aa%3Dfmtp%3A101%200-15%0D%0Avariable_sip_nat_detected: trueEvent-Name: CHANNEL_ANSWERCore-UUID: ffb7a71e-0045-4013-89e2-f8c8ccbcfb4bFreeSWITCH-Hostname: centos4-4-vmFreeSWITCH-IPv4: 172.26.200.250FreeSWITCH-IPv6: %3A%3A1Event-Date-Local: 2009-08-01%2020%3A04%3A52Event-Date-GMT: Sat,%2001%20Aug%202009%2016%3A04%3A52%20GMTEvent-Date-Timestamp: 1249142692414509Event-Calling-File: switch_channel.cEvent-Calling-Function: switch_channel_perform_mark_answeredEvent-Calling-Line-Number: 1776 Content-Length: 5233Content-Type: text/event-plain Channel-State: CS_EXECUTEChannel-State-Number: 4Channel-Name: sofia/internal/1001%40172.26.200.250Unique-ID: 15826d29-b807-4955-a2f9-038e0b3ee6e2Call-Direction: inboundAnswer-State: answeredChannel-Read-Codec-Name: PCMUChannel-Read-Codec-Rate: 8000Channel-Write-Codec-Name: PCMUChannel-Write-Codec-Rate: 8000Caller-Username: 1001Caller-Dialplan: XMLCaller-Caller-ID-Name: 1001Caller-Caller-ID-Number: 1001Caller-Network-Addr: 172.26.10.39Caller-Destination-Number: 6666Caller-Unique-ID: 15826d29-b807-4955-a2f9-038e0b3ee6e2Caller-Source: mod_sofiaCaller-Context: defaultCaller-Channel-Name: sofia/internal/1001%40172.26.200.250Caller-Profile-Index: 1Caller-Profile-Created-Time: 1249142681680114Caller-Channel-Created-Time: 1249142681680114Caller-Channel-Answered-Time: 1249142692414509Caller-Channel-Progress-Time: 1249142691898434Caller-Channel-Progress-Media-Time: 1249142681809352Caller-Channel-Hangup-Time: 0Caller-Channel-Transfer-Time: 0Caller-Screen-Bit: trueCaller-Privacy-Hide-Name: falseCaller-Privacy-Hide-Number: falseOther-Leg-Username: 1001Other-Leg-Dialplan: XMLOther-Leg-Caller-ID-Name: Extension%201001Other-Leg-Caller-ID-Number: 1001Other-Leg-Network-Addr: 172.26.10.39Other-Leg-Destination-Number: sip%3A1000%40172.26.10.39%3A60152%3Brinstance%3D393ff32df3ec5e33%3Bfs_nat%3DyesOther-Leg-Unique-ID: 94b59a38-57c4-4703-9c6e-9985d832d119Other-Leg-Source: mod_sofiaOther-Leg-Context: defaultOther-Leg-Channel-Name: sofia/internal/sip%3A1000%40172.26.10.39%3A60152%3Brinstance%3D393ff32df3ec5e33%3Bfs_nat%3DyesOther-Leg-Screen-Bit: trueOther-Leg-Privacy-Hide-Name: falseOther-Leg-Privacy-Hide-Number: falsevariable_sip_received_ip: 172.26.10.39variable_sip_received_port: 13488variable_sip_via_protocol: udpvariable_sip_authorized: truevariable_sip_mailbox: 1001variable_sip_auth_username: 1001variable_sip_auth_realm: 172.26.200.250variable_mailbox: 1001variable_toll_allow: domestic,international,localvariable_accountcode: 1001variable_user_context: defaultvariable_effective_caller_id_name: Extension%201001variable_effective_caller_id_number: 1001variable_outbound_caller_id_name: StarPound%20FreeSWITCHvariable_outbound_caller_id_number: 0000000000variable_callgroup: techsupportvariable_sip_from_user: 1001variable_sip_from_uri: 1001%40172.26.200.250variable_sip_from_host: 172.26.200.250variable_sip_from_user_stripped: 1001variable_sip_from_tag: bd11f93cvariable_sofia_profile_name: internalvariable_sip_req_user: 6666variable_sip_req_uri: 6666%40172.26.200.250variable_sip_req_host: 172.26.200.250variable_sip_to_user: 6666variable_sip_to_uri: 6666%40172.26.200.250variable_sip_to_host: 172.26.200.250variable_sip_contact_user: 1001variable_sip_contact_port: 13488variable_sip_contact_uri: 1001%40172.26.10.39%3A13488variable_sip_contact_host: 172.26.10.39variable_channel_name: sofia/internal/1001%40172.26.200.250variable_sip_call_id: ZTYwOGM2NDNmMzA5ZjFmOWRhZGJiNTZkMDEyMjQ4YTc.variable_sip_user_agent: X-Lite%20release%201103d%20stamp%2053117variable_sip_via_host: 172.26.10.39variable_sip_via_port: 13488variable_sip_via_rport: 13488variable_max_forwards: 70variable_presence_id: 1001%40172.26.200.250variable_switch_r_sdp: v%3D0%0D%0Ao%3D-%208%202%20IN%20IP4%20172.26.10.39%0D%0As%3DCounterPath%20X-Lite%203.0%0D%0Ac%3DIN%20IP4%20172.26.10.39%0D%0At%3D0%200%0D%0Am%3Daudio%2029826%20RTP/AVP%200%208%203%20101%0D%0Aa%3Drtpmap%3A101%20telephone-event/8000%0D%0Aa%3Dfmtp%3A101%200-15%0D%0Avariable_remote_media_ip: 172.26.10.39variable_remote_media_port: 29826variable_read_codec: PCMUvariable_read_rate: 8000variable_write_codec: PCMUvariable_write_rate: 8000variable_use_profile: natvariable_record_stereo: truevariable_transfer_fallback_extension: operatorvariable_numbering_plan: USvariable_default_areacode: 918variable_default_gateway: example.comvariable_user_name: defaultvariable_domain_name: 172.26.200.250variable_socket_host: 172.26.200.251variable_local_media_ip: 172.26.200.250variable_local_media_port: 29370variable_current_application_data: user/1000%40uat.agent.starpoundtech.netvariable_current_application: bridgevariable_dialed_user: 1000variable_dialed_domain: uat.agent.starpoundtech.netvariable_sip_redirect_contact_user_0: 1000variable_sip_redirect_contact_host_0: 172.26.10.39variable_switch_m_sdp: v%3D0%0D%0Ao%3D-%201%202%20IN%20IP4%20172.26.10.39%0D%0As%3DCounterPath%20eyeBeam%201.5%0D%0Ac%3DIN%20IP4%20172.26.10.39%0D%0At%3D0%200%0D%0Am%3Daudio%2063944%20RTP/AVP%200%208%203%20101%0D%0Aa%3Drtpmap%3A101%20telephone-event/8000%0D%0Aa%3Dfmtp%3A101%200-15%0D%0Avariable_sip_nat_detected: truevariable_endpoint_disposition: ANSWERvariable_signal_bond: 94b59a38-57c4-4703-9c6e-9985d832d119variable_originate_disposition: SUCCESSEvent-Name: CHANNEL_BRIDGECore-UUID: ffb7a71e-0045-4013-89e2-f8c8ccbcfb4bFreeSWITCH-Hostname: centos4-4-vmFreeSWITCH-IPv4: 172.26.200.250FreeSWITCH-IPv6: %3A%3A1Event-Date-Local: 2009-08-01%2020%3A04%3A52Event-Date-GMT: Sat,%2001%20Aug%202009%2016%3A04%3A52%20GMTEvent-Date-Timestamp: 1249142692414509Event-Calling-File: switch_ivr_bridge.cEvent-Calling-Function: switch_ivr_multi_threaded_bridgeEvent-Calling-Line-Number: 828 SendMsg 94b59a38-57c4-4703-9c6e-9985d832d119call-command: executeexecute-app-name: hold Content-Type: command/replyReply-Text: +OK
Back to top
brian at freeswitch.org
Guest





PostPosted: Fri Jul 31, 2009 8:43 am    Post subject: [Freeswitch-users] FreeSwitch doesn't play music on hold for Reply with quote

I don't see the variable hold_music ... did you remove it?

/b

On Jul 31, 2009, at 5:24 AM, Kozak Vladimir wrote:
Quote:

The scenario is the following:
FS User A dial an extension
Extention opens outbound socket channel to my application
My application bridges the call to FS User B
The application check for CHANNEL_BRIDGED event and stores Other-leg-unique-id
The application sends hold to the bridged channel using SendMsg with Other-leg-unique-id
User B is placed on hold but no music on hold is played to the caller (User A)


I have outbound socket channel and the following sequence of commands/event:
listening on [any] 8084 ...
connect to [172.26.200.251] from centos4-4-vm.abisoft.spb.ru [172.26.200.250] 34000
connect

Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services