[Freeswitch-users] CHANNEL_PARK

Tihomir Culjaga tculjaga at gmail.com
Fri Sep 2 01:02:44 MSD 2016


ciao Italo,


i can set a variable before i execute a park application this is not a
problem ... but what about park_after_bridge ?
will the var i set before still be present into CHANNEL_PARK triggered by
park_after_bridge ?



On 1 September 2016 at 16:04, Ítalo Rossi <italo at freeswitch.org> wrote:

> Set variables before parking
> Em qui, 1 de set de 2016 às 10:29, Tihomir Culjaga <tculjaga at gmail.com>
> escreveu:
>
>> hello, please can anyone help here.
>>
>>
>>  is there any way to distinguish a CHANNEL_PARK generated by att_xfer
>> application from a "normal" CHANNEL_PARK generated by park application?
>>
>>
>>
>>
>> this is a CHANNEL_PARK i got by using att_xfer application:
>>
>>
>> Event-Name: CHANNEL_PARK
>> Core-UUID: f63b2100-6eb0-11e6-b09e-e558b70924ad
>> FreeSWITCH-Hostname: centralix.bbm.local
>> FreeSWITCH-Switchname: centralix.bbm.local
>> FreeSWITCH-IPv4: 192.168.141.60
>> FreeSWITCH-IPv6: %3A%3A1
>> Event-Date-Local: 2016-09-01%2015%3A04%3A21
>> Event-Date-GMT: Thu,%2001%20Sep%202016%2013%3A04%3A21%20GMT
>> Event-Date-Timestamp: 1472735061810863
>> Event-Calling-File: switch_ivr.c
>> Event-Calling-Function: switch_ivr_park
>> Event-Calling-Line-Number: 934
>> Event-Sequence: 78869
>> Channel-State: CS_PARK
>> Channel-Call-State: ACTIVE
>> Channel-State-Number: 6
>> Channel-Name: sofia/internal/888%4010.10.254.236%3A5060
>> Unique-ID: 934ee67c-7044-11e6-b404-e558b70924ad
>> Call-Direction: outbound
>> Presence-Call-Direction: outbound
>> Channel-HIT-Dialplan: false
>> Channel-Presence-ID: 888%40192.168.141.60
>> Channel-Call-UUID: 8cb36612-7044-11e6-b3d8-e558b70924ad
>> Answer-State: answered
>> Channel-Read-Codec-Name: PCMA
>> Channel-Read-Codec-Rate: 8000
>> Channel-Read-Codec-Bit-Rate: 64000
>> Channel-Write-Codec-Name: PCMA
>> Channel-Write-Codec-Rate: 8000
>> Channel-Write-Codec-Bit-Rate: 64000
>> Caller-Direction: outbound
>> Caller-Logical-Direction: outbound
>> Caller-Username: 844
>> Caller-Dialplan: XML
>> Caller-Caller-ID-Name: 844
>> Caller-Caller-ID-Number: 844
>> Caller-Orig-Caller-ID-Name: 844
>> Caller-Orig-Caller-ID-Number: 844
>> Caller-Callee-ID-Name: Outbound%20Call
>> Caller-Callee-ID-Number: 888
>> Caller-Network-Addr: 10.10.254.236
>> Caller-ANI: 844
>> Caller-Destination-Number: 888
>> Caller-Unique-ID: 934ee67c-7044-11e6-b404-e558b70924ad
>> Caller-Source: mod_sofia
>> Caller-Context: features
>> Caller-RDNIS: 0916331550
>> Caller-Channel-Name: sofia/internal/888%4010.10.254.236%3A5060
>> Caller-Profile-Index: 1
>> Caller-Profile-Created-Time: 1472735051270863
>> Caller-Channel-Created-Time: 1472735051270863
>> Caller-Channel-Answered-Time: 1472735052210864
>> Caller-Channel-Progress-Time: 1472735051510855
>> Caller-Channel-Progress-Media-Time: 0
>> Caller-Channel-Hangup-Time: 0
>> Caller-Channel-Transfer-Time: 0
>> Caller-Channel-Resurrect-Time: 0
>> Caller-Channel-Bridged-Time: 1472735052230858
>> Caller-Channel-Last-Hold: 0
>> Caller-Channel-Hold-Accum: 0
>> Caller-Screen-Bit: true
>> Caller-Privacy-Hide-Name: false
>> Caller-Privacy-Hide-Number: false
>> Other-Type: originator
>> Other-Leg-Direction: inbound
>> Other-Leg-Logical-Direction: inbound
>> Other-Leg-Username: 844
>> Other-Leg-Dialplan: XML
>> Other-Leg-Caller-ID-Name: 844
>> Other-Leg-Caller-ID-Number: 844
>> Other-Leg-Orig-Caller-ID-Name: 844
>> Other-Leg-Orig-Caller-ID-Number: 844
>> Other-Leg-Callee-ID-Name: Outbound%20Call
>> Other-Leg-Callee-ID-Number: 0916331550
>> Other-Leg-Network-Addr: 10.10.254.235
>> Other-Leg-ANI: 844
>> Other-Leg-Destination-Number: agent_state
>> Other-Leg-Unique-ID: 8cb36612-7044-11e6-b3d8-e558b70924ad
>> Other-Leg-Source: mod_sofia
>> Other-Leg-Context: features
>> Other-Leg-RDNIS: 0916331550
>> Other-Leg-Channel-Name: sofia/internal/844%4010.10.254.254
>> Other-Leg-Profile-Created-Time: 0
>> Other-Leg-Channel-Created-Time: 0
>> Other-Leg-Channel-Answered-Time: 0
>> Other-Leg-Channel-Progress-Time: 0
>> Other-Leg-Channel-Progress-Media-Time: 0
>> Other-Leg-Channel-Hangup-Time: 0
>> Other-Leg-Channel-Transfer-Time: 0
>> Other-Leg-Channel-Resurrect-Time: 0
>> Other-Leg-Channel-Bridged-Time: 0
>> Other-Leg-Channel-Last-Hold: 0
>> Other-Leg-Channel-Hold-Accum: 0
>> Other-Leg-Screen-Bit: true
>> Other-Leg-Privacy-Hide-Name: false
>> Other-Leg-Privacy-Hide-Number: false
>> variable_direction: outbound
>> variable_is_outbound: true
>> variable_uuid: 934ee67c-7044-11e6-b404-e558b70924ad
>> variable_session_id: 65
>> variable_sip_profile_name: internal
>> variable_channel_name: sofia/internal/888%4010.10.254.236%3A5060
>> variable_sip_destination_url: sip%3A888%4010.10.254.236%
>> 3A5060%3Bfs_nat%3Dyes
>> variable_sip_cid_type: pid
>> variable_switch_m_sdp: v%3D0%0D%0Ao%3D844%208000%
>> 208000%20IN%20IP4%2010.10.253.10%0D%0As%3DSIP%20Call%0D%0Ac%
>> 3DIN%20IP4%2010.10.253.10%0D%0At%3D0%200%0D%0Am%3Daudio%
>> 2015004%20RTP/AVP%208%2018%0D%0Aa%3Drtpmap%3A8%20PCMA/8000%
>> 0D%0Aa%3Drtpmap%3A18%20G729/8000%0D%0Aa%3Dfmtp%3A18%
>> 20annexb%3Dno%0D%0Aa%3Dptime%3A20%0D%0A
>> variable_dialed_user: 888
>> variable_dialed_domain: 192.168.141.60
>> variable_sip_invite_domain: 192.168.141.60
>> variable_presence_id: 888%40192.168.141.60
>> variable_rtp_local_sdp_str: v%3D0%0Ao%3DFreeSWITCH%
>> 201472709987%201472709988%20IN%20IP4%2010.10.254.254%
>> 0As%3DFreeSWITCH%0Ac%3DIN%20IP4%2010.10.254.254%0At%3D0%
>> 200%0Am%3Daudio%2025064%20RTP/AVP%208%2013%0Aa%3Drtpmap%3A8%
>> 20PCMA/8000%0Aa%3Dptime%3A20%0Aa%3Dsendrecv%0A
>> variable_sip_outgoing_contact_uri: %3Csip%3Amod_sofia%4010.10.
>> 254.254%3A5060%3E
>> variable_sip_req_uri: 888%4010.10.254.236%3A5060
>> variable_sip_nat_detected: true
>> variable_sofia_profile_name: internal
>> variable_recovery_profile_name: internal
>> variable_sip_local_network_addr: 10.10.254.254
>> variable_sip_reply_host: 10.10.254.236
>> variable_sip_reply_port: 5060
>> variable_sip_network_ip: 10.10.254.236
>> variable_sip_network_port: 5060
>> variable_ep_codec_string: PCMA%408000h%4020i%4064000b
>> variable_sip_user_agent: Grandstream%20GXP2100%201.0.7.8
>> variable_sip_recover_contact: %3Csip%3A888%4010.10.253.11%3A5060%3E
>> variable_sip_full_via: SIP/2.0/UDP%2010.10.254.254%
>> 3Brport%3D5060%3Bbranch%3Dz9hG4bK3gv0mrSa3Z1va
>> variable_sip_recover_via: SIP/2.0/UDP%2010.10.254.254%
>> 3Brport%3D5060%3Bbranch%3Dz9hG4bK3gv0mrSa3Z1va
>> variable_sip_from_display: 844
>> variable_sip_full_from: %22844%22%20%3Csip%3A844%
>> 40192.168.141.60%3E%3Btag%3DmDe1c5tB3tDrp
>> variable_sip_full_to: %3Csip%3A888%4010.10.254.236%
>> 3A5060%3E%3Btag%3D1143493955
>> variable_sip_from_user: 844
>> variable_sip_from_uri: 844%40192.168.141.60
>> variable_sip_from_host: 192.168.141.60
>> variable_sip_to_user: 888
>> variable_sip_to_port: 5060
>> variable_sip_to_uri: 888%4010.10.254.236%3A5060
>> variable_sip_to_host: 10.10.254.236
>> variable_sip_contact_user: 888
>> variable_sip_contact_port: 5060
>> variable_sip_contact_uri: 888%4010.10.253.11%3A5060
>> variable_sip_contact_host: 10.10.253.11
>> variable_sip_to_tag: 1143493955
>> variable_sip_from_tag: mDe1c5tB3tDrp
>> variable_sip_cseq: 96031461
>> variable_sip_call_id: 6aad3d60-eae7-1234-4793-f4ce46a93024
>> variable_switch_r_sdp: v%3D0%0D%0Ao%3D888%208000%
>> 208000%20IN%20IP4%2010.10.253.11%0D%0As%3DSIP%20Call%0D%0Ac%
>> 3DIN%20IP4%2010.10.253.11%0D%0At%3D0%200%0D%0Am%3Daudio%
>> 2015004%20RTP/AVP%208%0D%0Aa%3Drtpmap%3A8%20PCMA/8000%0D%
>> 0Aa%3Dptime%3A20%0D%0A
>> variable_rtp_use_codec_string: PCMA%408000h%4020i,PCMA
>> variable_rtp_audio_recv_pt: 8
>> variable_rtp_use_codec_name: PCMA
>> variable_rtp_use_codec_rate: 8000
>> variable_rtp_use_codec_ptime: 20
>> variable_rtp_use_codec_channels: 1
>> variable_rtp_last_audio_codec_string: PCMA%408000h%4020i%401c
>> variable_read_codec: PCMA
>> variable_original_read_codec: PCMA
>> variable_read_rate: 8000
>> variable_original_read_rate: 8000
>> variable_write_codec: PCMA
>> variable_write_rate: 8000
>> variable_dtmf_type: info
>> variable_local_media_ip: 10.10.254.254
>> variable_local_media_port: 25064
>> variable_advertised_media_ip: 10.10.254.254
>> variable_rtp_use_timer_name: soft
>> variable_rtp_use_pt: 8
>> variable_rtp_use_ssrc: 4157591195
>> variable_endpoint_disposition: ANSWER
>> variable_current_application_data: 4%20a%20s%20execute_extension%
>> 3A%3Aatt_xfer%20XML%20features
>> variable_current_application: bind_meta_app
>> variable_record_stereo: true
>> variable_default_gateway: example.com
>> variable_default_areacode: 918
>> variable_transfer_fallback_extension: operator
>> variable_toll_allow: domestic,international,local
>> variable_accountcode: 888
>> variable_max_calls: 2
>> variable_limit_exceeded: limit_exceeded
>> variable_user_context: default
>> variable_effective_caller_id_name: Karolina
>> variable_effective_caller_id_number: 888
>> variable_outbound_caller_id_name: FreeSWITCH
>> variable_outbound_caller_id_number: 0000000000
>> variable_callgroup: techsupport
>> variable_sip-force-contact: NDLB-connectile-dysfunction
>> variable_max_forwards: 68
>> variable_originator_codec: PCMA%408000h%4020i
>> variable_originator: 8cb36612-7044-11e6-b3d8-e558b70924ad
>> variable_export_vars: RFC2822_DATE,execute_on_
>> answer_1,execute_on_answer_2
>> variable_RFC2822_DATE: Thu,%2001%20Sep%202016%2015%3A04%3A00%20%2B0200
>> variable_execute_on_answer_1: start_dtmf
>> variable_execute_on_answer_2: bind_meta_app%204%20a%20s%
>> 20execute_extension%3A%3Aatt_xfer%20XML%20features
>> variable_originate_early_media: true
>> variable_originating_leg_uuid: 8cb36612-7044-11e6-b3d8-e558b70924ad
>> variable_call_uuid: 8cb36612-7044-11e6-b3d8-e558b70924ad
>> variable_last_bridge_to: 8cb36612-7044-11e6-b3d8-e558b70924ad
>> variable_bridge_channel: sofia/internal/844%4010.10.254.254
>> variable_bridge_uuid: 8cb36612-7044-11e6-b3d8-e558b70924ad
>> variable_signal_bond: 8cb36612-7044-11e6-b3d8-e558b70924ad
>> variable_last_sent_callee_id_name: 844
>> variable_last_sent_callee_id_number: 844
>> variable_remote_media_ip_reported: 10.10.253.11
>> variable_remote_media_ip: 10.10.254.236
>> variable_remote_media_port_reported: 15004
>> variable_remote_media_port: 15004
>> variable_rtp_auto_adjust: true
>> variable_sip_hangup_phrase: OK
>> variable_last_bridge_hangup_cause: NORMAL_CLEARING
>> variable_last_bridge_proto_specific_hangup_cause: sip%3A200
>>
>> Content-Length: 9672
>> Content-Type: text/event-plain
>>
>>
>>
>>
>>
>> regards,
>> Tihomir.
>> _________________________________________________________________________
>> Professional FreeSWITCH Consulting Services:
>> consulting at freeswitch.org
>> http://www.freeswitchsolutions.com
>>
>> Official FreeSWITCH Sites
>> http://www.freeswitch.org
>> http://confluence.freeswitch.org
>> http://www.cluecon.com
>>
>> FreeSWITCH-users mailing list
>> FreeSWITCH-users at lists.freeswitch.org
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> http://www.freeswitch.org
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://confluence.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20160901/0d001786/attachment-0001.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list