<div dir="ltr">Hi,<div><br></div><div>I'm using the Inbound Event Socket to listen to events.</div><div><br></div><div>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.</div><div><br></div><div>E.g.</div><div><br></div><div> - Subscribe to all events</div><div> - originate {myFirstVar=bla}sofia/external/ &park;</div><div><br></div><div>This errors straight away in the CLI, but event wise:</div><div><br></div><div><div><font face="monospace, monospace">{"Event-Name":"CHANNEL_DESTROY","Core-UUID":"0bdb8ae0-95be-11e4-a629-7deec23cf31f","FreeSWITCH-Hostname":"<a href="http://test-fs1.example.com">test-fs1.example.com</a>","FreeSWITCH-Switchname":"<a href="http://test-fs1.example.com">test-fs1.example.com</a>","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</font></div><div><font face="monospace, monospace">Content-Type: text/event-json</font></div><div><br></div><div><font face="monospace, monospace">{"Event-Name":"CHANNEL_STATE","Core-UUID":"0bdb8ae0-95be-11e4-a629-7deec23cf31f","FreeSWITCH-Hostname":"<a href="http://test-fs1.example.com">test-fs1.example.com</a>","FreeSWITCH-Switchname":"<a href="http://test-fs1.example.com">test-fs1.example.com</a>","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</font></div><div><font face="monospace, monospace">Content-Type: text/event-json</font></div></div><div><br></div><div>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?</div><div><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Joshua Gigg</div>
</div></div>