[Freeswitch-users] FreeSwitch doesn't play music on hold forbriged channel
Kozak Vladimir
vkozak at abisoft.spb.ru
Thu Aug 6 10:01:09 PDT 2009
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
myevents
SendMsg
call-command: execute
execute-app-name: bridge
execute-app-arg:user/1000 at uat.agent.starpoundtech.net
Channel-Username: 1001
Channel-Dialplan: XML
Channel-Caller-ID-Name: 1001
Channel-Caller-ID-Number: 1001
Channel-Network-Addr: 172.26.10.39
Channel-Destination-Number: 6666
Channel-Unique-ID: 15826d29-b807-4955-a2f9-038e0b3ee6e2
Channel-Source: mod_sofia
Channel-Context: default
Channel-Channel-Name: sofia/internal/1001%40172.26.200.250
Channel-Profile-Index: 1
Channel-Profile-Created-Time: 1249142681680114
Channel-Channel-Created-Time: 1249142681680114
Channel-Channel-Answered-Time: 0
Channel-Channel-Progress-Time: 0
Channel-Channel-Progress-Media-Time: 1249142681809352
Channel-Channel-Hangup-Time: 0
Channel-Channel-Transfer-Time: 0
Channel-Screen-Bit: true
Channel-Privacy-Hide-Name: false
Channel-Privacy-Hide-Number: false
Channel-State: CS_EXECUTE
Channel-State-Number: 4
Channel-Name: sofia/internal/1001%40172.26.200.250
Unique-ID: 15826d29-b807-4955-a2f9-038e0b3ee6e2
Call-Direction: inbound
Answer-State: early
Channel-Read-Codec-Name: PCMU
Channel-Read-Codec-Rate: 8000
Channel-Write-Codec-Name: PCMU
Channel-Write-Codec-Rate: 8000
Caller-Username: 1001
Caller-Dialplan: XML
Caller-Caller-ID-Name: 1001
Caller-Caller-ID-Number: 1001
Caller-Network-Addr: 172.26.10.39
Caller-Destination-Number: 6666
Caller-Unique-ID: 15826d29-b807-4955-a2f9-038e0b3ee6e2
Caller-Source: mod_sofia
Caller-Context: default
Caller-Channel-Name: sofia/internal/1001%40172.26.200.250
Caller-Profile-Index: 1
Caller-Profile-Created-Time: 1249142681680114
Caller-Channel-Created-Time: 1249142681680114
Caller-Channel-Answered-Time: 0
Caller-Channel-Progress-Time: 0
Caller-Channel-Progress-Media-Time: 1249142681809352
Caller-Channel-Hangup-Time: 0
Caller-Channel-Transfer-Time: 0
Caller-Screen-Bit: true
Caller-Privacy-Hide-Name: false
Caller-Privacy-Hide-Number: false
variable_sip_received_ip: 172.26.10.39
variable_sip_received_port: 13488
variable_sip_via_protocol: udp
variable_sip_authorized: true
variable_sip_mailbox: 1001
variable_sip_auth_username: 1001
variable_sip_auth_realm: 172.26.200.250
variable_mailbox: 1001
variable_toll_allow: domestic,international,local
variable_accountcode: 1001
variable_user_context: default
variable_effective_caller_id_name: Extension%201001
variable_effective_caller_id_number: 1001
variable_outbound_caller_id_name: StarPound%20FreeSWITCH
variable_outbound_caller_id_number: 0000000000
variable_callgroup: techsupport
variable_sip_from_user: 1001
variable_sip_from_uri: 1001%40172.26.200.250
variable_sip_from_host: 172.26.200.250
variable_sip_from_user_stripped: 1001
variable_sip_from_tag: bd11f93c
variable_sofia_profile_name: internal
variable_sip_req_user: 6666
variable_sip_req_uri: 6666%40172.26.200.250
variable_sip_req_host: 172.26.200.250
variable_sip_to_user: 6666
variable_sip_to_uri: 6666%40172.26.200.250
variable_sip_to_host: 172.26.200.250
variable_sip_contact_user: 1001
variable_sip_contact_port: 13488
variable_sip_contact_uri: 1001%40172.26.10.39%3A13488
variable_sip_contact_host: 172.26.10.39
variable_channel_name: sofia/internal/1001%40172.26.200.250
variable_sip_call_id: ZTYwOGM2NDNmMzA5ZjFmOWRhZGJiNTZkMDEyMjQ4YTc.
variable_sip_user_agent: X-Lite%20release%201103d%20stamp%2053117
variable_sip_via_host: 172.26.10.39
variable_sip_via_port: 13488
variable_sip_via_rport: 13488
variable_max_forwards: 70
variable_presence_id: 1001%40172.26.200.250
variable_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%0A
variable_remote_media_ip: 172.26.10.39
variable_remote_media_port: 29826
variable_read_codec: PCMU
variable_read_rate: 8000
variable_write_codec: PCMU
variable_write_rate: 8000
variable_use_profile: nat
variable_record_stereo: true
variable_transfer_fallback_extension: operator
variable_numbering_plan: US
variable_default_areacode: 918
variable_default_gateway: example.com
variable_user_name: default
variable_domain_name: 172.26.200.250
variable_current_application_data: 172.26.200.251%3A8084%20async%20full
variable_current_application: socket
variable_socket_host: 172.26.200.251
variable_local_media_ip: 172.26.200.250
variable_local_media_port: 29370
variable_endpoint_disposition: EARLY%20MEDIA
variable_sip_nat_detected: true
Content-Type: command/reply
Reply-Text: %2BOK%0A
Socket-Mode: async
Control: full
Content-Type: command/reply
Reply-Text: +OK Events Enabled
Content-Type: command/reply
Reply-Text: +OK
Content-Length: 1541
Content-Type: text/event-plain
Channel-State: CS_EXECUTE
Channel-State-Number: 4
Channel-Name: sofia/internal/1001%40172.26.200.250
Unique-ID: 15826d29-b807-4955-a2f9-038e0b3ee6e2
Call-Direction: inbound
Answer-State: early
Channel-Read-Codec-Name: PCMU
Channel-Read-Codec-Rate: 8000
Channel-Write-Codec-Name: PCMU
Channel-Write-Codec-Rate: 8000
Caller-Username: 1001
Caller-Dialplan: XML
Caller-Caller-ID-Name: 1001
Caller-Caller-ID-Number: 1001
Caller-Network-Addr: 172.26.10.39
Caller-Destination-Number: 6666
Caller-Unique-ID: 15826d29-b807-4955-a2f9-038e0b3ee6e2
Caller-Source: mod_sofia
Caller-Context: default
Caller-Channel-Name: sofia/internal/1001%40172.26.200.250
Caller-Profile-Index: 1
Caller-Profile-Created-Time: 1249142681680114
Caller-Channel-Created-Time: 1249142681680114
Caller-Channel-Answered-Time: 0
Caller-Channel-Progress-Time: 0
Caller-Channel-Progress-Media-Time: 1249142681809352
Caller-Channel-Hangup-Time: 0
Caller-Channel-Transfer-Time: 0
Caller-Screen-Bit: true
Caller-Privacy-Hide-Name: false
Caller-Privacy-Hide-Number: false
Application: bridge
Application-Data: user/1000%40uat.agent.starpoundtech.net
Event-Name: CHANNEL_EXECUTE
Core-UUID: ffb7a71e-0045-4013-89e2-f8c8ccbcfb4b
FreeSWITCH-Hostname: centos4-4-vm
FreeSWITCH-IPv4: 172.26.200.250
FreeSWITCH-IPv6: %3A%3A1
Event-Date-Local: 2009-08-01%2020%3A04%3A51
Event-Date-GMT: Sat,%2001%20Aug%202009%2016%3A04%3A51%20GMT
Event-Date-Timestamp: 1249142691754598
Event-Calling-File: switch_core_session.c
Event-Calling-Function: switch_core_session_exec
Event-Calling-Line-Number: 1333
Content-Length: 5242
Content-Type: text/event-plain
Channel-State: CS_EXECUTE
Channel-State-Number: 4
Channel-Name: sofia/internal/1001%40172.26.200.250
Unique-ID: 15826d29-b807-4955-a2f9-038e0b3ee6e2
Call-Direction: inbound
Answer-State: answered
Channel-Read-Codec-Name: PCMU
Channel-Read-Codec-Rate: 8000
Channel-Write-Codec-Name: PCMU
Channel-Write-Codec-Rate: 8000
Caller-Username: 1001
Caller-Dialplan: XML
Caller-Caller-ID-Name: 1001
Caller-Caller-ID-Number: 1001
Caller-Network-Addr: 172.26.10.39
Caller-Destination-Number: 6666
Caller-Unique-ID: 15826d29-b807-4955-a2f9-038e0b3ee6e2
Caller-Source: mod_sofia
Caller-Context: default
Caller-Channel-Name: sofia/internal/1001%40172.26.200.250
Caller-Profile-Index: 1
Caller-Profile-Created-Time: 1249142681680114
Caller-Channel-Created-Time: 1249142681680114
Caller-Channel-Answered-Time: 1249142692414509
Caller-Channel-Progress-Time: 1249142691898434
Caller-Channel-Progress-Media-Time: 1249142681809352
Caller-Channel-Hangup-Time: 0
Caller-Channel-Transfer-Time: 0
Caller-Screen-Bit: true
Caller-Privacy-Hide-Name: false
Caller-Privacy-Hide-Number: false
Other-Leg-Username: 1001
Other-Leg-Dialplan: XML
Other-Leg-Caller-ID-Name: Extension%201001
Other-Leg-Caller-ID-Number: 1001
Other-Leg-Network-Addr: 172.26.10.39
Other-Leg-Destination-Number: sip%3A1000%40172.26.10.39%3A60152%3Brinstance%3D393ff32df3ec5e33%3Bfs_nat%3Dyes
Other-Leg-Unique-ID: 94b59a38-57c4-4703-9c6e-9985d832d119
Other-Leg-Source: mod_sofia
Other-Leg-Context: default
Other-Leg-Channel-Name: sofia/internal/sip%3A1000%40172.26.10.39%3A60152%3Brinstance%3D393ff32df3ec5e33%3Bfs_nat%3Dyes
Other-Leg-Screen-Bit: true
Other-Leg-Privacy-Hide-Name: false
Other-Leg-Privacy-Hide-Number: false
variable_sip_received_ip: 172.26.10.39
variable_sip_received_port: 13488
variable_sip_via_protocol: udp
variable_sip_authorized: true
variable_sip_mailbox: 1001
variable_sip_auth_username: 1001
variable_sip_auth_realm: 172.26.200.250
variable_mailbox: 1001
variable_toll_allow: domestic,international,local
variable_accountcode: 1001
variable_user_context: default
variable_effective_caller_id_name: Extension%201001
variable_effective_caller_id_number: 1001
variable_outbound_caller_id_name: StarPound%20FreeSWITCH
variable_outbound_caller_id_number: 0000000000
variable_callgroup: techsupport
variable_sip_from_user: 1001
variable_sip_from_uri: 1001%40172.26.200.250
variable_sip_from_host: 172.26.200.250
variable_sip_from_user_stripped: 1001
variable_sip_from_tag: bd11f93c
variable_sofia_profile_name: internal
variable_sip_req_user: 6666
variable_sip_req_uri: 6666%40172.26.200.250
variable_sip_req_host: 172.26.200.250
variable_sip_to_user: 6666
variable_sip_to_uri: 6666%40172.26.200.250
variable_sip_to_host: 172.26.200.250
variable_sip_contact_user: 1001
variable_sip_contact_port: 13488
variable_sip_contact_uri: 1001%40172.26.10.39%3A13488
variable_sip_contact_host: 172.26.10.39
variable_channel_name: sofia/internal/1001%40172.26.200.250
variable_sip_call_id: ZTYwOGM2NDNmMzA5ZjFmOWRhZGJiNTZkMDEyMjQ4YTc.
variable_sip_user_agent: X-Lite%20release%201103d%20stamp%2053117
variable_sip_via_host: 172.26.10.39
variable_sip_via_port: 13488
variable_sip_via_rport: 13488
variable_max_forwards: 70
variable_presence_id: 1001%40172.26.200.250
variable_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%0A
variable_remote_media_ip: 172.26.10.39
variable_remote_media_port: 29826
variable_read_codec: PCMU
variable_read_rate: 8000
variable_write_codec: PCMU
variable_write_rate: 8000
variable_use_profile: nat
variable_record_stereo: true
variable_transfer_fallback_extension: operator
variable_numbering_plan: US
variable_default_areacode: 918
variable_default_gateway: example.com
variable_user_name: default
variable_domain_name: 172.26.200.250
variable_socket_host: 172.26.200.251
variable_local_media_ip: 172.26.200.250
variable_local_media_port: 29370
variable_endpoint_disposition: EARLY%20MEDIA
variable_current_application_data: user/1000%40uat.agent.starpoundtech.net
variable_current_application: bridge
variable_dialed_user: 1000
variable_dialed_domain: uat.agent.starpoundtech.net
variable_originate_disposition: failure
variable_signal_bond: 94b59a38-57c4-4703-9c6e-9985d832d119
variable_sip_redirect_contact_user_0: 1000
variable_sip_redirect_contact_host_0: 172.26.10.39
variable_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%0A
variable_sip_nat_detected: true
Event-Name: CHANNEL_ANSWER
Core-UUID: ffb7a71e-0045-4013-89e2-f8c8ccbcfb4b
FreeSWITCH-Hostname: centos4-4-vm
FreeSWITCH-IPv4: 172.26.200.250
FreeSWITCH-IPv6: %3A%3A1
Event-Date-Local: 2009-08-01%2020%3A04%3A52
Event-Date-GMT: Sat,%2001%20Aug%202009%2016%3A04%3A52%20GMT
Event-Date-Timestamp: 1249142692414509
Event-Calling-File: switch_channel.c
Event-Calling-Function: switch_channel_perform_mark_answered
Event-Calling-Line-Number: 1776
Content-Length: 5233
Content-Type: text/event-plain
Channel-State: CS_EXECUTE
Channel-State-Number: 4
Channel-Name: sofia/internal/1001%40172.26.200.250
Unique-ID: 15826d29-b807-4955-a2f9-038e0b3ee6e2
Call-Direction: inbound
Answer-State: answered
Channel-Read-Codec-Name: PCMU
Channel-Read-Codec-Rate: 8000
Channel-Write-Codec-Name: PCMU
Channel-Write-Codec-Rate: 8000
Caller-Username: 1001
Caller-Dialplan: XML
Caller-Caller-ID-Name: 1001
Caller-Caller-ID-Number: 1001
Caller-Network-Addr: 172.26.10.39
Caller-Destination-Number: 6666
Caller-Unique-ID: 15826d29-b807-4955-a2f9-038e0b3ee6e2
Caller-Source: mod_sofia
Caller-Context: default
Caller-Channel-Name: sofia/internal/1001%40172.26.200.250
Caller-Profile-Index: 1
Caller-Profile-Created-Time: 1249142681680114
Caller-Channel-Created-Time: 1249142681680114
Caller-Channel-Answered-Time: 1249142692414509
Caller-Channel-Progress-Time: 1249142691898434
Caller-Channel-Progress-Media-Time: 1249142681809352
Caller-Channel-Hangup-Time: 0
Caller-Channel-Transfer-Time: 0
Caller-Screen-Bit: true
Caller-Privacy-Hide-Name: false
Caller-Privacy-Hide-Number: false
Other-Leg-Username: 1001
Other-Leg-Dialplan: XML
Other-Leg-Caller-ID-Name: Extension%201001
Other-Leg-Caller-ID-Number: 1001
Other-Leg-Network-Addr: 172.26.10.39
Other-Leg-Destination-Number: sip%3A1000%40172.26.10.39%3A60152%3Brinstance%3D393ff32df3ec5e33%3Bfs_nat%3Dyes
Other-Leg-Unique-ID: 94b59a38-57c4-4703-9c6e-9985d832d119
Other-Leg-Source: mod_sofia
Other-Leg-Context: default
Other-Leg-Channel-Name: sofia/internal/sip%3A1000%40172.26.10.39%3A60152%3Brinstance%3D393ff32df3ec5e33%3Bfs_nat%3Dyes
Other-Leg-Screen-Bit: true
Other-Leg-Privacy-Hide-Name: false
Other-Leg-Privacy-Hide-Number: false
variable_sip_received_ip: 172.26.10.39
variable_sip_received_port: 13488
variable_sip_via_protocol: udp
variable_sip_authorized: true
variable_sip_mailbox: 1001
variable_sip_auth_username: 1001
variable_sip_auth_realm: 172.26.200.250
variable_mailbox: 1001
variable_toll_allow: domestic,international,local
variable_accountcode: 1001
variable_user_context: default
variable_effective_caller_id_name: Extension%201001
variable_effective_caller_id_number: 1001
variable_outbound_caller_id_name: StarPound%20FreeSWITCH
variable_outbound_caller_id_number: 0000000000
variable_callgroup: techsupport
variable_sip_from_user: 1001
variable_sip_from_uri: 1001%40172.26.200.250
variable_sip_from_host: 172.26.200.250
variable_sip_from_user_stripped: 1001
variable_sip_from_tag: bd11f93c
variable_sofia_profile_name: internal
variable_sip_req_user: 6666
variable_sip_req_uri: 6666%40172.26.200.250
variable_sip_req_host: 172.26.200.250
variable_sip_to_user: 6666
variable_sip_to_uri: 6666%40172.26.200.250
variable_sip_to_host: 172.26.200.250
variable_sip_contact_user: 1001
variable_sip_contact_port: 13488
variable_sip_contact_uri: 1001%40172.26.10.39%3A13488
variable_sip_contact_host: 172.26.10.39
variable_channel_name: sofia/internal/1001%40172.26.200.250
variable_sip_call_id: ZTYwOGM2NDNmMzA5ZjFmOWRhZGJiNTZkMDEyMjQ4YTc.
variable_sip_user_agent: X-Lite%20release%201103d%20stamp%2053117
variable_sip_via_host: 172.26.10.39
variable_sip_via_port: 13488
variable_sip_via_rport: 13488
variable_max_forwards: 70
variable_presence_id: 1001%40172.26.200.250
variable_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%0A
variable_remote_media_ip: 172.26.10.39
variable_remote_media_port: 29826
variable_read_codec: PCMU
variable_read_rate: 8000
variable_write_codec: PCMU
variable_write_rate: 8000
variable_use_profile: nat
variable_record_stereo: true
variable_transfer_fallback_extension: operator
variable_numbering_plan: US
variable_default_areacode: 918
variable_default_gateway: example.com
variable_user_name: default
variable_domain_name: 172.26.200.250
variable_socket_host: 172.26.200.251
variable_local_media_ip: 172.26.200.250
variable_local_media_port: 29370
variable_current_application_data: user/1000%40uat.agent.starpoundtech.net
variable_current_application: bridge
variable_dialed_user: 1000
variable_dialed_domain: uat.agent.starpoundtech.net
variable_sip_redirect_contact_user_0: 1000
variable_sip_redirect_contact_host_0: 172.26.10.39
variable_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%0A
variable_sip_nat_detected: true
variable_endpoint_disposition: ANSWER
variable_signal_bond: 94b59a38-57c4-4703-9c6e-9985d832d119
variable_originate_disposition: SUCCESS
Event-Name: CHANNEL_BRIDGE
Core-UUID: ffb7a71e-0045-4013-89e2-f8c8ccbcfb4b
FreeSWITCH-Hostname: centos4-4-vm
FreeSWITCH-IPv4: 172.26.200.250
FreeSWITCH-IPv6: %3A%3A1
Event-Date-Local: 2009-08-01%2020%3A04%3A52
Event-Date-GMT: Sat,%2001%20Aug%202009%2016%3A04%3A52%20GMT
Event-Date-Timestamp: 1249142692414509
Event-Calling-File: switch_ivr_bridge.c
Event-Calling-Function: switch_ivr_multi_threaded_bridge
Event-Calling-Line-Number: 828
SendMsg 94b59a38-57c4-4703-9c6e-9985d832d119
call-command: execute
execute-app-name: hold
Content-Type: command/reply
Reply-Text: +OK
- I don't see the variable hold_music ... did you remove it?
- I didn't. Moreover, I tried to set it explicitly using api uuid_setvar.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20090806/b85f8efa/attachment-0002.html
More information about the FreeSWITCH-users
mailing list