Skip to content

Instantly share code, notes, and snippets.

@abdheshkumar
Created July 24, 2017 10:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abdheshkumar/a3536f1cb2f2fc1ed77d8112862d6931 to your computer and use it in GitHub Desktop.
Save abdheshkumar/a3536f1cb2f2fc1ed77d8112862d6931 to your computer and use it in GitHub Desktop.
Command:
connect\n\n
Response:
Event-Name: CHANNEL_DATA
Core-UUID: d01fd5af-47d1-4cc0-9135-72be72656b21
FreeSWITCH-Hostname: abdhesh-System-Product-Name
FreeSWITCH-Switchname: abdhesh-System-Product-Name
FreeSWITCH-IPv4: 10.0.0.29
FreeSWITCH-IPv6: %3A%3A1
Event-Date-Local: 2017-07-21%2016%3A11%3A21
Event-Date-GMT: Fri,%2021%20Jul%202017%2015%3A11%3A21%20GMT
Event-Date-Timestamp: 1500649881387928
Event-Calling-File: mod_event_socket.c
Event-Calling-Function: parse_command
Event-Calling-Line-Number: 2011
Event-Sequence: 3396
Channel-Direction: inbound
Channel-Logical-Direction: inbound
Channel-Username: 1000
Channel-Dialplan: XML
Channel-Caller-ID-Name: 1000
Channel-Caller-ID-Number: 1000
Channel-Orig-Caller-ID-Name: 1000
Channel-Orig-Caller-ID-Number: 1000
Channel-Network-Addr: 10.0.0.29
Channel-ANI: 1000
Channel-Destination-Number: 9999
Channel-Unique-ID: d595fe36-2ccd-418d-ab85-81193f4d3914
Channel-Source: mod_sofia
Channel-Context: default
Channel-Channel-Name: sofia/internal/1000%4010.0.0.29
Channel-Profile-Index: 1
Channel-Profile-Created-Time: 1500649881247914
Channel-Channel-Created-Time: 1500649881247914
Channel-Channel-Answered-Time: 0
Channel-Channel-Progress-Time: 0
Channel-Channel-Progress-Media-Time: 0
Channel-Channel-Hangup-Time: 0
Channel-Channel-Transfer-Time: 0
Channel-Channel-Resurrect-Time: 0
Channel-Channel-Bridged-Time: 0
Channel-Channel-Last-Hold: 0
Channel-Channel-Hold-Accum: 0
Channel-Screen-Bit: true
Channel-Privacy-Hide-Name: false
Channel-Privacy-Hide-Number: false
Channel-State: CS_EXECUTE
Channel-Call-State: RINGING
Channel-State-Number: 4
Channel-Name: sofia/internal/1000%4010.0.0.29
Unique-ID: d595fe36-2ccd-418d-ab85-81193f4d3914
Call-Direction: inbound
Presence-Call-Direction: inbound
Channel-HIT-Dialplan: true
Channel-Presence-ID: 1000%4010.0.0.29
Channel-Call-UUID: d595fe36-2ccd-418d-ab85-81193f4d3914
Answer-State: ringing
Caller-Direction: inbound
Caller-Logical-Direction: inbound
Caller-Username: 1000
Caller-Dialplan: XML
Caller-Caller-ID-Name: 1000
Caller-Caller-ID-Number: 1000
Caller-Orig-Caller-ID-Name: 1000
Caller-Orig-Caller-ID-Number: 1000
Caller-Network-Addr: 10.0.0.29
Caller-ANI: 1000
Caller-Destination-Number: 9999
Caller-Unique-ID: d595fe36-2ccd-418d-ab85-81193f4d3914
Caller-Source: mod_sofia
Caller-Context: default
Caller-Channel-Name: sofia/internal/1000%4010.0.0.29
Caller-Profile-Index: 1
Caller-Profile-Created-Time: 1500649881247914
Caller-Channel-Created-Time: 1500649881247914
Caller-Channel-Answered-Time: 0
Caller-Channel-Progress-Time: 0
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: 0
Caller-Channel-Last-Hold: 0
Caller-Channel-Hold-Accum: 0
Caller-Screen-Bit: true
Caller-Privacy-Hide-Name: false
Caller-Privacy-Hide-Number: false
variable_direction: inbound
variable_uuid: d595fe36-2ccd-418d-ab85-81193f4d3914
variable_session_id: 18
variable_sip_from_params: transport%3DTCP
variable_sip_from_user: 1000
variable_sip_from_uri: 1000%4010.0.0.29
variable_sip_from_host: 10.0.0.29
variable_video_media_flow: disabled
variable_audio_media_flow: disabled
variable_text_media_flow: disabled
variable_channel_name: sofia/internal/1000%4010.0.0.29
variable_sip_call_id: N2YwMTYxNmY1NDJkMGFmNTk1YTlmOGU0OGNhMGI0Yjk.
variable_sip_local_network_addr: 10.0.0.29
variable_sip_network_ip: 10.0.0.29
variable_sip_network_port: 56382
variable_sip_invite_stamp: 1500649881247914
variable_sip_received_ip: 10.0.0.29
variable_sip_received_port: 56382
variable_sip_via_protocol: tcp
variable_sip_authorized: true
variable_Event-Name: REQUEST_PARAMS
variable_Core-UUID: d01fd5af-47d1-4cc0-9135-72be72656b21
variable_FreeSWITCH-Hostname: abdhesh-System-Product-Name
variable_FreeSWITCH-Switchname: abdhesh-System-Product-Name
variable_FreeSWITCH-IPv4: 10.0.0.29
variable_FreeSWITCH-IPv6: %3A%3A1
variable_Event-Date-Local: 2017-07-21%2016%3A11%3A21
variable_Event-Date-GMT: Fri,%2021%20Jul%202017%2015%3A11%3A21%20GMT
variable_Event-Date-Timestamp: 1500649881247914
variable_Event-Calling-File: sofia.c
variable_Event-Calling-Function: sofia_handle_sip_i_invite
variable_Event-Calling-Line-Number: 10255
variable_Event-Sequence: 3374
variable_sip_number_alias: 1000
variable_sip_auth_username: 1000
variable_sip_auth_realm: 10.0.0.29
variable_number_alias: 1000
variable_requested_user_name: 1000
variable_requested_domain_name: 10.0.0.29
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: 1000
variable_user_context: default
variable_effective_caller_id_name: Extension%201000
variable_effective_caller_id_number: 1000
variable_outbound_caller_id_name: FreeSWITCH
variable_outbound_caller_id_number: 0000000000
variable_callgroup: techsupport
variable_user_name: 1000
variable_domain_name: 10.0.0.29
variable_sip_from_user_stripped: 1000
variable_sip_from_tag: 062dbe32
variable_sofia_profile_name: internal
variable_recovery_profile_name: internal
variable_sip_full_via: SIP/2.0/TCP%2010.0.0.29%3A55439%3Bbranch%3Dz9hG4bK-d8754z-53f3a6e7e7a690dd-1---d8754z-%3Brport%3D56382
variable_sip_recover_via: SIP/2.0/TCP%2010.0.0.29%3A55439%3Bbranch%3Dz9hG4bK-d8754z-53f3a6e7e7a690dd-1---d8754z-%3Brport%3D56382
variable_sip_full_from: %3Csip%3A1000%4010.0.0.29%3Btransport%3DTCP%3E%3Btag%3D062dbe32
variable_sip_full_to: %3Csip%3A9999%4010.0.0.29%3Btransport%3DTCP%3E
variable_sip_allow: INVITE,%20ACK,%20CANCEL,%20BYE,%20NOTIFY,%20REFER,%20MESSAGE,%20OPTIONS,%20INFO,%20SUBSCRIBE
variable_sip_req_params: transport%3DTCP
variable_sip_req_user: 9999
variable_sip_req_uri: 9999%4010.0.0.29
variable_sip_req_host: 10.0.0.29
variable_sip_to_params: transport%3DTCP
variable_sip_to_user: 9999
variable_sip_to_uri: 9999%4010.0.0.29
variable_sip_to_host: 10.0.0.29
variable_sip_contact_params: transport%3DTCP
variable_sip_contact_user: 1000
variable_sip_contact_port: 55439
variable_sip_contact_uri: 1000%4010.0.0.29%3A55439
variable_sip_contact_host: 10.0.0.29
variable_rtp_use_codec_string: OPUS,G722,PCMU,PCMA,VP8
variable_sip_user_agent: Z%203.3.25608%20r25552
variable_sip_via_host: 10.0.0.29
variable_sip_via_port: 55439
variable_sip_via_rport: 56382
variable_max_forwards: 70
variable_presence_id: 1000%4010.0.0.29
variable_switch_r_sdp: v%3D0%0D%0Ao%3DZ%200%200%20IN%20IP4%2010.0.0.29%0D%0As%3DZ%0D%0Ac%3DIN%20IP4%2010.0.0.29%0D%0At%3D0%200%0D%0Am%3Daudio%208000%20RTP/AVP%203%20110%208%200%2098%20101%0D%0Aa%3Drtpmap%3A110%20speex/8000%0D%0Aa%3Drtpmap%3A98%20iLBC/8000%0D%0Aa%3Dfmtp%3A98%20mode%3D20%0D%0Aa%3Drtpmap%3A101%20telephone-event/8000%0D%0Aa%3Dfmtp%3A101%200-15%0D%0A
variable_ep_codec_string: CORE_PCM_MODULE.PCMA%408000h%4020i%4064000b,CORE_PCM_MODULE.PCMU%408000h%4020i%4064000b
variable_endpoint_disposition: DELAYED%20NEGOTIATION
variable_DP_MATCH: ARRAY%3A%3ADELAYED%20NEGOTIATION%7C%3ADELAYED%20NEGOTIATION
variable_call_uuid: d595fe36-2ccd-418d-ab85-81193f4d3914
variable_open: true
variable_RFC2822_DATE: Fri,%2021%20Jul%202017%2016%3A11%3A21%20%2B0100
variable_export_vars: RFC2822_DATE
variable_current_application_data: 127.0.0.1%3A8084%20async
variable_current_application: socket
variable_socket_host: 127.0.0.1
Content-Type: command/reply
Reply-Text: %2BOK%0A
Socket-Mode: async
Control: single-channel
Command:
event plain ALL\n\n
Response:
Content-Type: command/reply
Reply-Text: -ERR command not found
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment