[Freeswitch-users] Event Socket: CHANNEL_DESTROY for a instantly Failing Call not containing custom channel variables

Joshua Gigg giggsey at gmail.com
Fri Jan 9 13:33:51 MSK 2015


Hi,

I'm using the Inbound Event Socket to listen to events.

When I try to originate a call that fails instantly, the CHANNEL_DESTROY
event I receive (which is the first event for that Call) does not seem to
contain the custom variables I passed in the origination command.

E.g.

 - Subscribe to all events
 - originate {myFirstVar=bla}sofia/external/ &park;

This errors straight away in the CLI, but event wise:

{"Event-Name":"CHANNEL_DESTROY","Core-UUID":"0bdb8ae0-95be-11e4-a629-7deec23cf31f","FreeSWITCH-Hostname":"
test-fs1.example.com","FreeSWITCH-Switchname":"test-fs1.example.com","FreeSWITCH-IPv4":"203.0.113.1","FreeSWITCH-IPv6":"::1","Event-Date-Local":"2015-01-09
10:07:47","Event-Date-GMT":"Fri, 09 Jan 2015 10:07:47
GMT","Event-Date-Timestamp":"1420798067526747","Event-Calling-File":"switch_core_session.c","Event-Calling-Function":"switch_core_session_perform_destroy","Event-Calling-Line-Number":"1465","Event-Sequence":"43492","Channel-State":"CS_NONE","Channel-Call-State":"DOWN","Channel-State-Number":"0","Channel-Name":"N/A","Unique-ID":"5ca1cbc6-97e7-11e4-b033-7deec23cf31f","Call-Direction":"outbound","Presence-Call-Direction":"outbound","Channel-HIT-Dialplan":"false","Channel-Call-UUID":"5ca1cbc6-97e7-11e4-b033-7deec23cf31f","Answer-State":"ringing","variable_direction":"outbound","variable_is_outbound":"true","variable_uuid":"5ca1cbc6-97e7-11e4-b033-7deec23cf31f","variable_call_uuid":"5ca1cbc6-97e7-11e4-b033-7deec23cf31f","variable_session_id":"420"}Content-Length:
880
Content-Type: text/event-json

{"Event-Name":"CHANNEL_STATE","Core-UUID":"0bdb8ae0-95be-11e4-a629-7deec23cf31f","FreeSWITCH-Hostname":"
test-fs1.example.com","FreeSWITCH-Switchname":"test-fs1.example.com","FreeSWITCH-IPv4":"203.0.113.1","FreeSWITCH-IPv6":"::1","Event-Date-Local":"2015-01-09
10:07:47","Event-Date-GMT":"Fri, 09 Jan 2015 10:07:47
GMT","Event-Date-Timestamp":"1420798067526747","Event-Calling-File":"switch_channel.c","Event-Calling-Function":"switch_channel_perform_set_running_state","Event-Calling-Line-Number":"2193","Event-Sequence":"43493","Channel-State":"CS_DESTROY","Channel-Call-State":"DOWN","Channel-State-Number":"0","Channel-Name":"N/A","Unique-ID":"5ca1cbc6-97e7-11e4-b033-7deec23cf31f","Call-Direction":"outbound","Presence-Call-Direction":"outbound","Channel-HIT-Dialplan":"false","Channel-Call-UUID":"5ca1cbc6-97e7-11e4-b033-7deec23cf31f","Answer-State":"ringing"}Content-Length:
608
Content-Type: text/event-json

Ideally, I shouldn't be making calls to numbers that would fail like this,
but shouldn't I still be getting the variables I send across?


-- 
Joshua Gigg
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20150109/6c3ffacd/attachment.html 


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