Skip to main content

mod_dptools: verbose_events

About

About text.

Click here to expand Table of Contents

Usage

This application may be run inline from the XML dialplan.

Also, you can set the following in autoload_configs/switch.conf.xml, <param name="verbose-channel-events" value="yes"/>

fsctl verbose_events on|off works, too

Example

<condition field="destination_number" expression="^Monroy$">
<action application="verbose_events" data="true"/>
<action application="answer"/>
</condition>

Send all Events to Subscriber raised by some Event

Event: CHANNEL_ANSWER
Unique-ID: 6982a9f1-b6d5-5a4a-b0ab-8099260ff70b
Length: 3888
EVENT:
Channel-State: CS_EXECUTE
Channel-State-Number: 4
Channel-Name: sofia/internal/arturo@192.168.1.220
Unique-ID: 6982a9f1-b6d5-5a4a-b0ab-8099260ff70b
Call-Direction: inbound
Answer-State: answered
Channel-Read-Codec-Name: PCMA
Channel-Read-Codec-Rate: 8000
Channel-Write-Codec-Name: PCMA
Channel-Write-Codec-Rate: 8000
Caller-Username: arturo
Caller-Dialplan: XML
Caller-Caller-ID-Name: monroy
Caller-Caller-ID-Number: arturo
Caller-Network-Addr: 192.168.1.220
Caller-Destination-Number: 500
Caller-Unique-ID: 6982a9f1-b6d5-5a4a-b0ab-8099260ff70b
Caller-Source: mod_sofia
Caller-Context: default
Caller-Channel-Name: sofia/internal/arturo@192.168.1.220
Caller-Profile-Index: 1
Caller-Profile-Created-Time: 1233953243656250
Caller-Channel-Created-Time: 1233953243656250
Caller-Channel-Answered-Time: 1233953244203125
Caller-Channel-Progress-Time: 0
Caller-Channel-Progress-Media-Time: 0
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: 192.168.1.220
variable_sip_received_port: 39900
variable_sip_via_protocol: udp
variable_sip_authorized: true
variable_sip_auth_username: arturo
variable_sip_auth_realm: 192.168.1.220
variable_user_name: arturo
variable_domain_name: 192.168.1.220
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: arturo
variable_user_context: default
variable_effective_caller_id_name: Extension miextension
variable_effective_caller_id_number: 1000
variable_outbound_caller_id_name: FreeSWITCH
variable_outbound_caller_id_number: 0000000000
variable_callgroup: techsupport
variable_sip_from_user: arturo
variable_sip_from_uri: arturo@192.168.1.220
variable_sip_from_host: 192.168.1.220
variable_sip_from_user_stripped: arturo
variable_sip_from_tag: 617b3165
variable_sofia_profile_name: internal
variable_sip_req_user: 500
variable_sip_req_uri: 500@192.168.1.220
variable_sip_req_host: 192.168.1.220
variable_sip_to_user: 500
variable_sip_to_uri: 500@192.168.1.220
variable_sip_to_host: 192.168.1.220
variable_sip_contact_user: arturo
variable_sip_contact_port: 39900
variable_sip_contact_uri: arturo@192.168.1.220:39900
variable_sip_contact_host: 192.168.1.220
variable_channel_name: sofia/internal/arturo@192.168.1.220
variable_sip_call_id: MDZhOGRiMDJiZjNmZDgzNWRiNDIxNWNjODliYjA2MTg.
variable_sip_user_agent: X-Lite release 1100l stamp 47546
variable_sip_via_host: 127.0.0.1
variable_sip_via_port: 39900
variable_sip_via_rport: 39900
variable_max_forwards: 70
variable_presence_id: arturo@192.168.1.220
variable_switch_r_sdp: v=0
o=- 3 2 IN IP4 192.168.1.220
s=CounterPath X-Lite 3.0
c=IN IP4 192.168.1.220
t=0 0
m=audio 48786 RTP/AVP 8 101
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=alt:1 1 : QQ8kqKxH BxCLIoce 192.168.1.220 48786
variable_remote_media_ip: 192.168.1.220
variable_remote_media_port: 48786
variable_read_codec: PCMA
variable_read_rate: 8000
variable_write_codec: PCMA
variable_write_rate: 8000
variable_endpoint_disposition: RECEIVED
variable_COLISION: FALSE
variable_current_application: answer
variable_local_media_ip: 192.168.1.220
variable_local_media_port: 27084
Event-Name: CHANNEL_ANSWER
Core-UUID: e45da4e3-d2e8-bf4c-942a-cf03ae84c7c8
FreeSWITCH-Hostname: AMONROY
FreeSWITCH-IPv4: 192.168.1.220
FreeSWITCH-IPv6: ::1
Event-Date-Local: 2009-02-06 14:47:24
Event-Date-GMT: Fri, 06 Feb 2009 20:47:24 GMT
Event-Date-Timestamp: 1233953244203125
Event-Calling-File: switch_channel.c
Event-Calling-Function: switch_channel_perform_mark_answered
Event-Calling-Line-Number: 1725