indeed.<div><br></div><div>you should be using channel_originate as the first event to track outbound and channel_state where state is routing to track inbound channels.</div><div><br></div><div>Channel create is too soon.</div>
<div><br><br><div class="gmail_quote">On Tue, Jul 27, 2010 at 11:36 AM, <a href="mailto:sdemers@q4innovation.com">sdemers@q4innovation.com</a> <span dir="ltr"><<a href="mailto:q4innovation@gmail.com">q4innovation@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi Everyone,<br><br><div>Following up about the email concerning the bgapi originate match with the CHANNEL_STATE event.</div>
<div>Like Roland Hänel, I'm using FreeSWITCH as a predictive dialer, and it's working fine, but I still have some issue with the flow of events...</div>
<div><br></div><div>Based on this discussion (Link: <a href="http://lists.freeswitch.org/pipermail/freeswitch-users/2010-June/059394.html" target="_blank">http://lists.freeswitch.org/pipermail/freeswitch-users/2010-June/059394.html</a>)</div>
<div><div><br><div>Michael Collins replies to Roland Hänel about using the BACKGROUND_JOB... the problem with this solution is that the switch send the background event after the CHANNEL_CREATE, CHANNEL_STATE(CS_INIT), CHANNEL_STATE(CS_ROUTING), CHANNEL_STATE(RINGING) and CHANNEL_PROGRESS_MEDIA, etc...</div>
<div><br></div><div>Is there a way to be able to match the JOBID to the CHANNEL_STATE prior to the BACKGROUND JOB event?</div><div><div><div><br>Here is a trace I've got... like you see, we received a lot of CHANNEL_STATE before the BACKGROUND_JOB event</div>
<div><br>--------------------------------------------------------<div><br></div><div><div>Content-Type: auth/request</div><div><br></div><div>auth ClueCon</div><div><br></div><div>Content-Type: command/reply</div><div>Reply-Text: +OK accepted</div>
<div><br></div><div>event plain DTMF BACKGROUND_JOB CHANNEL_CREATE CHANNEL_ANSWER CHANNEL_PROGRESS CHANNEL_PROGRESS_MEDIA CHANNEL_HANGUP CHANNEL_HANGUP_COMPLETE CHANNEL_DESTROY CHANNEL_STATE</div><div><br></div><div>Content-Type: command/reply</div>
<div>Reply-Text: +OK event listener enabled plain</div><div><br></div><div>bgapi originate {{ignore_early_media=false,RECORD_STEREO=true,origination_caller_id_number=9999999999,origination_caller_id_name=Test}}openzap/1/a/15551231234 &park()</div>
<div><br></div><div>Content-Type: command/reply</div><div>Reply-Text: +OK Job-UUID: 3f22b6c6-51fa-4eba-a728-4a94e9f86592</div><div>Job-UUID: 3f22b6c6-51fa-4eba-a728-4a94e9f86592</div><div><br></div><div>Content-Length: 1162</div>
<div>Content-Type: text/event-plain</div><div><br></div><div>Event-Name: CHANNEL_CREATE</div><div>Core-UUID: 2b696c27-bd61-4bfa-b6a1-291f14e32689</div><div>FreeSWITCH-Hostname: LoadTest-DIALER</div><div>FreeSWITCH-IPv4: 192.168.100.76</div>
<div>FreeSWITCH-IPv6: %3A%3A1</div><div>Event-Date-Local: 2010-07-27%2012%3A31%3A14</div><div>Event-Date-GMT: Tue,%2027%20Jul%202010%2016%3A31%3A14%20GMT</div><div>Event-Date-Timestamp: 1280248274809143</div><div>Event-Calling-File: switch_channel.c</div>
<div>Event-Calling-Function: switch_channel_set_caller_profile</div><div>Event-Calling-Line-Number: 1924</div><div>Channel-State: CS_NEW</div><div>Channel-Call-State: DOWN</div><div>Channel-State-Number: 0</div><div>Channel-Name: OpenZAP/1%3A1/15551231234</div>
<div>Unique-ID: cc18cedd-a05a-4180-beda-458e5ece048b</div><div>Call-Direction: outbound</div><div>Presence-Call-Direction: outbound</div><div>Answer-State: ringing</div><div>Channel-Read-Codec-Name: PCMU</div><div>Channel-Read-Codec-Rate: 8000</div>
<div>Channel-Write-Codec-Name: PCMU</div><div>Channel-Write-Codec-Rate: 8000</div><div>variable_direction: outbound</div><div>variable_is_outbound: true</div><div>variable_uuid: cc18cedd-a05a-4180-beda-458e5ece048b</div>
<div>
variable_read_codec: PCMU</div><div>variable_read_rate: 8000</div><div>variable_write_codec: PCMU</div><div>variable_write_rate: 8000</div><div>variable_channel_name: OpenZAP/1%3A1/15551231234</div><div>variable_openzap_span_name: telus1</div>
<div>variable_openzap_span_number: 1</div><div>variable_openzap_chan_number: 1</div><div><br></div><div>Content-Length: 687</div><div>Content-Type: text/event-plain</div><div><br></div><div>Event-Name: CHANNEL_STATE</div>
<div>Core-UUID: 2b696c27-bd61-4bfa-b6a1-291f14e32689</div><div>FreeSWITCH-Hostname: LoadTest-DIALER</div><div>FreeSWITCH-IPv4: 192.168.100.76</div><div>FreeSWITCH-IPv6: %3A%3A1</div><div>Event-Date-Local: 2010-07-27%2012%3A31%3A14</div>
<div>Event-Date-GMT: Tue,%2027%20Jul%202010%2016%3A31%3A14%20GMT</div><div>Event-Date-Timestamp: 1280248274809143</div><div>Event-Calling-File: switch_channel.c</div><div>Event-Calling-Function: switch_channel_perform_set_running_state</div>
<div>Event-Calling-Line-Number: 1492</div><div>Channel-State: CS_INIT</div><div>Channel-Call-State: DOWN</div><div>Channel-State-Number: 1</div><div>Channel-Name: OpenZAP/1%3A1/15551231234</div><div>Unique-ID: cc18cedd-a05a-4180-beda-458e5ece048b</div>
<div>Call-Direction: outbound</div><div>Presence-Call-Direction: outbound</div><div>Answer-State: ringing</div><div><br></div><div>Content-Length: 1515</div><div>Content-Type: text/event-plain</div><div><br></div><div>Event-Name: CHANNEL_STATE</div>
<div>Core-UUID: 2b696c27-bd61-4bfa-b6a1-291f14e32689</div><div>FreeSWITCH-Hostname: LoadTest-DIALER</div><div>FreeSWITCH-IPv4: 192.168.100.76</div><div>FreeSWITCH-IPv6: %3A%3A1</div><div>Event-Date-Local: 2010-07-27%2012%3A31%3A14</div>
<div>Event-Date-GMT: Tue,%2027%20Jul%202010%2016%3A31%3A14%20GMT</div><div>Event-Date-Timestamp: 1280248274809143</div><div>Event-Calling-File: switch_channel.c</div><div>Event-Calling-Function: switch_channel_perform_set_running_state</div>
<div>Event-Calling-Line-Number: 1492</div><div>Channel-State: CS_ROUTING</div><div>Channel-Call-State: RINGING</div><div>Channel-State-Number: 2</div><div>Channel-Name: OpenZAP/1%3A1/15551231234</div><div>Unique-ID: cc18cedd-a05a-4180-beda-458e5ece048b</div>
<div>Call-Direction: outbound</div><div>Presence-Call-Direction: outbound</div><div>Channel-Call-UUID: 4feec0d2-cb0c-49c1-9bd7-758f1e3e7c07</div><div>Answer-State: ringing</div><div>Channel-Read-Codec-Name: PCMU</div><div>
Channel-Read-Codec-Rate: 8000</div><div>Channel-Write-Codec-Name: PCMU</div><div>Channel-Write-Codec-Rate: 8000</div><div>Caller-Caller-ID-Name: Test%7D</div><div>Caller-Caller-ID-Number: 9999999999</div><div>Caller-Destination-Number: 15551231234</div>
<div>Caller-Unique-ID: cc18cedd-a05a-4180-beda-458e5ece048b</div><div>Caller-Source: src/switch_ivr_originate.c</div><div>Caller-Context: default</div><div>Caller-Channel-Name: OpenZAP/1%3A1/15551231234</div><div>Caller-Profile-Index: 1</div>
<div>Caller-Profile-Created-Time: 1280248274809143</div><div>Caller-Channel-Created-Time: 1280248274809143</div><div>Caller-Channel-Answered-Time: 0</div><div>Caller-Channel-Progress-Time: 0</div><div>Caller-Channel-Progress-Media-Time: 0</div>
<div>Caller-Channel-Hangup-Time: 0</div><div>Caller-Channel-Transfer-Time: 0</div><div>Caller-Screen-Bit: true</div><div>Caller-Privacy-Hide-Name: false</div><div>Caller-Privacy-Hide-Number: false</div><div><br></div><div>
Content-Length: 699</div><div>Content-Type: text/event-plain</div><div><br></div><div>Event-Name: CHANNEL_STATE</div><div>Core-UUID: 2b696c27-bd61-4bfa-b6a1-291f14e32689</div><div>FreeSWITCH-Hostname: LoadTest-DIALER</div>
<div>FreeSWITCH-IPv4: 192.168.100.76</div><div>FreeSWITCH-IPv6: %3A%3A1</div><div>Event-Date-Local: 2010-07-27%2012%3A31%3A14</div><div>Event-Date-GMT: Tue,%2027%20Jul%202010%2016%3A31%3A14%20GMT</div><div>Event-Date-Timestamp: 1280248274809143</div>
<div>Event-Calling-File: switch_channel.c</div><div>Event-Calling-Function: switch_channel_perform_set_running_state</div><div>Event-Calling-Line-Number: 1492</div><div>Channel-State: CS_CONSUME_MEDIA</div><div>Channel-Call-State: RINGING</div>
<div>Channel-State-Number: 7</div><div>Channel-Name: OpenZAP/1%3A1/15551231234</div><div>Unique-ID: cc18cedd-a05a-4180-beda-458e5ece048b</div><div>Call-Direction: outbound</div><div>Presence-Call-Direction: outbound</div>
<div>Answer-State: ringing</div><div><br></div><div>Content-Length: 2185</div><div>Content-Type: text/event-plain</div><div><br></div><div>Event-Name: CHANNEL_PROGRESS_MEDIA</div><div>Core-UUID: 2b696c27-bd61-4bfa-b6a1-291f14e32689</div>
<div>FreeSWITCH-Hostname: LoadTest-DIALER</div><div>FreeSWITCH-IPv4: 192.168.100.76</div><div>FreeSWITCH-IPv6: %3A%3A1</div><div>Event-Date-Local: 2010-07-27%2012%3A31%3A15</div><div>Event-Date-GMT: Tue,%2027%20Jul%202010%2016%3A31%3A15%20GMT</div>
<div>Event-Date-Timestamp: 1280248275766567</div><div>Event-Calling-File: switch_channel.c</div><div>Event-Calling-Function: switch_channel_perform_mark_pre_answered</div><div>Event-Calling-Line-Number: 2371</div><div>Channel-State: CS_CONSUME_MEDIA</div>
<div>Channel-Call-State: EARLY</div><div>Channel-State-Number: 7</div><div>Channel-Name: OpenZAP/1%3A1/15551231234</div><div>Unique-ID: cc18cedd-a05a-4180-beda-458e5ece048b</div><div>Call-Direction: outbound</div><div>Presence-Call-Direction: outbound</div>
<div>Channel-Call-UUID: 4feec0d2-cb0c-49c1-9bd7-758f1e3e7c07</div><div>Answer-State: early</div><div>Channel-Read-Codec-Name: PCMU</div><div>Channel-Read-Codec-Rate: 8000</div><div>Channel-Write-Codec-Name: PCMU</div><div>
Channel-Write-Codec-Rate: 8000</div><div>Caller-Caller-ID-Name: Test%7D</div><div>Caller-Caller-ID-Number: 9999999999</div><div>Caller-Destination-Number: 15551231234</div><div>Caller-Unique-ID: cc18cedd-a05a-4180-beda-458e5ece048b</div>
<div>Caller-Source: src/switch_ivr_originate.c</div><div>Caller-Context: default</div><div>Caller-Channel-Name: OpenZAP/1%3A1/15551231234</div><div>Caller-Profile-Index: 1</div><div>Caller-Profile-Created-Time: 1280248274809143</div>
<div>Caller-Channel-Created-Time: 1280248274809143</div><div>Caller-Channel-Answered-Time: 0</div><div>Caller-Channel-Progress-Time: 0</div><div>Caller-Channel-Progress-Media-Time: 0</div><div>Caller-Channel-Hangup-Time: 0</div>
<div>Caller-Channel-Transfer-Time: 0</div><div>Caller-Screen-Bit: true</div><div>Caller-Privacy-Hide-Name: false</div><div>Caller-Privacy-Hide-Number: false</div><div>variable_direction: outbound</div><div>variable_uuid: cc18cedd-a05a-4180-beda-458e5ece048b</div>
<div>variable_read_codec: PCMU</div><div>variable_read_rate: 8000</div><div>variable_write_codec: PCMU</div><div>variable_write_rate: 8000</div><div>variable_channel_name: OpenZAP/1%3A1/15551231234</div><div>variable_openzap_span_name: telus1</div>
<div>variable_openzap_span_number: 1</div><div>variable_openzap_chan_number: 1</div><div>variable_is_outbound: true</div><div>variable_call_uuid: 4feec0d2-cb0c-49c1-9bd7-758f1e3e7c07</div><div>variable_{ignore_early_media: false</div>
<div>variable_RECORD_STEREO: true</div><div>variable_origination_caller_id_number: 9999999999</div><div>variable_origination_caller_id_name: Test%7D</div><div>variable_originate_early_media: true</div><div>variable_endpoint_disposition: EARLY%20MEDIA</div>
<div><br></div><div>Content-Length: 735</div><div>Content-Type: text/event-plain</div><div><br></div><div>Event-Name: BACKGROUND_JOB</div><div>Core-UUID: 2b696c27-bd61-4bfa-b6a1-291f14e32689</div><div>FreeSWITCH-Hostname: LoadTest-DIALER</div>
<div>FreeSWITCH-IPv4: 192.168.100.76</div><div>FreeSWITCH-IPv6: %3A%3A1</div><div>Event-Date-Local: 2010-07-27%2012%3A31%3A15</div><div>Event-Date-GMT: Tue,%2027%20Jul%202010%2016%3A31%3A15%20GMT</div><div>Event-Date-Timestamp: 1280248275767585</div>
<div>Event-Calling-File: mod_event_socket.c</div><div>Event-Calling-Function: api_exec</div><div>Event-Calling-Line-Number: 1374</div><div>Job-UUID: 3f22b6c6-51fa-4eba-a728-4a94e9f86592</div><div>Job-Command: originate</div>
<div>Job-Command-Arg: %7B%7Bignore_early_media%3Dfalse,RECORD_STEREO%3Dtrue,origination_caller_id_number%3D9999999999,origination_caller_id_name%3DTest%7D%7Dopenzap/1/a/15551231234%20%26park()</div><div>Content-Length: 41</div>
<div><br></div><div>+OK cc18cedd-a05a-4180-beda-458e5ece048b</div><div>Content-Length: 689</div><div>Content-Type: text/event-plain</div><div><br></div><div>Event-Name: CHANNEL_STATE</div><div>Core-UUID: 2b696c27-bd61-4bfa-b6a1-291f14e32689</div>
<div>FreeSWITCH-Hostname: LoadTest-DIALER</div><div>FreeSWITCH-IPv4: 192.168.100.76</div><div>FreeSWITCH-IPv6: %3A%3A1</div><div>Event-Date-Local: 2010-07-27%2012%3A31%3A15</div><div>Event-Date-GMT: Tue,%2027%20Jul%202010%2016%3A31%3A15%20GMT</div>
<div>Event-Date-Timestamp: 1280248275767585</div><div>Event-Calling-File: switch_channel.c</div><div>Event-Calling-Function: switch_channel_perform_set_running_state</div><div>Event-Calling-Line-Number: 1492</div><div>Channel-State: CS_EXECUTE</div>
<div>Channel-Call-State: EARLY</div><div>Channel-State-Number: 4</div><div>Channel-Name: OpenZAP/1%3A1/15551231234</div><div>Unique-ID: cc18cedd-a05a-4180-beda-458e5ece048b</div><div>Call-Direction: outbound</div><div>Presence-Call-Direction: outbound</div>
<div>Answer-State: early</div><div><br></div><div>Content-Length: 2236</div><div>Content-Type: text/event-plain</div><div><br></div><div>Event-Name: CHANNEL_ANSWER</div><div>Core-UUID: 2b696c27-bd61-4bfa-b6a1-291f14e32689</div>
<div>FreeSWITCH-Hostname: LoadTest-DIALER</div><div>FreeSWITCH-IPv4: 192.168.100.76</div><div>FreeSWITCH-IPv6: %3A%3A1</div><div>Event-Date-Local: 2010-07-27%2012%3A31%3A22</div><div>Event-Date-GMT: Tue,%2027%20Jul%202010%2016%3A31%3A22%20GMT</div>
<div>Event-Date-Timestamp: 1280248282415326</div><div>Event-Calling-File: switch_channel.c</div><div>Event-Calling-Function: switch_channel_perform_mark_answered</div><div>Event-Calling-Line-Number: 2516</div><div>Channel-State: CS_EXECUTE</div>
<div>Channel-Call-State: ACTIVE</div><div>Channel-State-Number: 4</div><div>Channel-Name: OpenZAP/1%3A1/15551231234</div><div>Unique-ID: cc18cedd-a05a-4180-beda-458e5ece048b</div><div>Call-Direction: outbound</div><div>Presence-Call-Direction: outbound</div>
<div>Channel-Call-UUID: 4feec0d2-cb0c-49c1-9bd7-758f1e3e7c07</div><div>Answer-State: answered</div><div>Channel-Read-Codec-Name: PCMU</div><div>Channel-Read-Codec-Rate: 8000</div><div>Channel-Write-Codec-Name: PCMU</div>
<div>
Channel-Write-Codec-Rate: 8000</div><div>Caller-Caller-ID-Name: Test%7D</div><div>Caller-Caller-ID-Number: 9999999999</div><div>Caller-Destination-Number: 15551231234</div><div>Caller-Unique-ID: cc18cedd-a05a-4180-beda-458e5ece048b</div>
<div>Caller-Source: src/switch_ivr_originate.c</div><div>Caller-Context: default</div><div>Caller-Channel-Name: OpenZAP/1%3A1/15551231234</div><div>Caller-Profile-Index: 1</div><div>Caller-Profile-Created-Time: 1280248274809143</div>
<div>Caller-Channel-Created-Time: 1280248274809143</div><div>Caller-Channel-Answered-Time: 1280248282415326</div><div>Caller-Channel-Progress-Time: 0</div><div>Caller-Channel-Progress-Media-Time: 1280248275766567</div><div>
Caller-Channel-Hangup-Time: 0</div><div>Caller-Channel-Transfer-Time: 0</div><div>Caller-Screen-Bit: true</div><div>Caller-Privacy-Hide-Name: false</div><div>Caller-Privacy-Hide-Number: false</div><div>variable_direction: outbound</div>
<div>variable_uuid: cc18cedd-a05a-4180-beda-458e5ece048b</div><div>variable_read_codec: PCMU</div><div>variable_read_rate: 8000</div><div>variable_write_codec: PCMU</div><div>variable_write_rate: 8000</div><div>variable_channel_name: OpenZAP/1%3A1/15551231234</div>
<div>variable_openzap_span_name: telus1</div><div>variable_openzap_span_number: 1</div><div>variable_openzap_chan_number: 1</div><div>variable_is_outbound: true</div><div>variable_call_uuid: 4feec0d2-cb0c-49c1-9bd7-758f1e3e7c07</div>
<div>variable_{ignore_early_media: false</div><div>variable_RECORD_STEREO: true</div><div>variable_origination_caller_id_number: 9999999999</div><div>variable_origination_caller_id_name: Test%7D</div><div>variable_originate_early_media: true</div>
<div>variable_endpoint_disposition: EARLY%20MEDIA</div><div>variable_current_application: park</div><div><br></div><div>Content-Length: 2252</div><div>Content-Type: text/event-plain</div><div><br></div><div>Event-Name: CHANNEL_HANGUP</div>
<div>Core-UUID: 2b696c27-bd61-4bfa-b6a1-291f14e32689</div><div>FreeSWITCH-Hostname: LoadTest-DIALER</div><div>FreeSWITCH-IPv4: 192.168.100.76</div><div>FreeSWITCH-IPv6: %3A%3A1</div><div>Event-Date-Local: 2010-07-27%2012%3A31%3A25</div>
<div>Event-Date-GMT: Tue,%2027%20Jul%202010%2016%3A31%3A25%20GMT</div><div>Event-Date-Timestamp: 1280248285115488</div><div>Event-Calling-File: switch_channel.c</div><div>Event-Calling-Function: switch_channel_perform_hangup</div>
<div>Event-Calling-Line-Number: 2291</div><div>Hangup-Cause: NORMAL_CLEARING</div><div>Channel-State: CS_HANGUP</div><div>Channel-Call-State: HANGUP</div><div>Channel-State-Number: 10</div><div>Channel-Name: OpenZAP/1%3A1/15551231234</div>
<div>Unique-ID: cc18cedd-a05a-4180-beda-458e5ece048b</div><div>Call-Direction: outbound</div><div>Presence-Call-Direction: outbound</div><div>Channel-Call-UUID: 4feec0d2-cb0c-49c1-9bd7-758f1e3e7c07</div><div>Answer-State: answered</div>
<div>Channel-Read-Codec-Name: PCMU</div><div>Channel-Read-Codec-Rate: 8000</div><div>Channel-Write-Codec-Name: PCMU</div><div>Channel-Write-Codec-Rate: 8000</div><div>Caller-Caller-ID-Name: Test%7D</div><div>Caller-Caller-ID-Number: 9999999999</div>
<div>Caller-Destination-Number: 15551231234</div><div>Caller-Unique-ID: cc18cedd-a05a-4180-beda-458e5ece048b</div><div>Caller-Source: src/switch_ivr_originate.c</div><div>Caller-Context: default</div><div>Caller-Channel-Name: OpenZAP/1%3A1/15551231234</div>
<div>Caller-Profile-Index: 1</div><div>Caller-Profile-Created-Time: 1280248274809143</div><div>Caller-Channel-Created-Time: 1280248274809143</div><div>Caller-Channel-Answered-Time: 1280248282415326</div><div>Caller-Channel-Progress-Time: 0</div>
<div>Caller-Channel-Progress-Media-Time: 1280248275766567</div><div>Caller-Channel-Hangup-Time: 0</div><div>Caller-Channel-Transfer-Time: 0</div><div>Caller-Screen-Bit: true</div><div>Caller-Privacy-Hide-Name: false</div>
<div>Caller-Privacy-Hide-Number: false</div><div>variable_direction: outbound</div><div>variable_uuid: cc18cedd-a05a-4180-beda-458e5ece048b</div><div>variable_read_codec: PCMU</div><div>variable_read_rate: 8000</div><div>
variable_write_codec: PCMU</div><div>variable_write_rate: 8000</div><div>variable_channel_name: OpenZAP/1%3A1/15551231234</div><div>variable_openzap_span_name: telus1</div><div>variable_openzap_span_number: 1</div><div>variable_openzap_chan_number: 1</div>
<div>variable_is_outbound: true</div><div>variable_call_uuid: 4feec0d2-cb0c-49c1-9bd7-758f1e3e7c07</div><div>variable_{ignore_early_media: false</div><div>variable_RECORD_STEREO: true</div><div>variable_origination_caller_id_number: 9999999999</div>
<div>variable_origination_caller_id_name: Test%7D</div><div>variable_originate_early_media: true</div><div>variable_current_application: park</div><div>variable_endpoint_disposition: ANSWER</div><div><br></div><div>Content-Length: 693</div>
<div>Content-Type: text/event-plain</div><div><br></div><div>Event-Name: CHANNEL_STATE</div><div>Core-UUID: 2b696c27-bd61-4bfa-b6a1-291f14e32689</div><div>FreeSWITCH-Hostname: LoadTest-DIALER</div><div>FreeSWITCH-IPv4: 192.168.100.76</div>
<div>FreeSWITCH-IPv6: %3A%3A1</div><div>Event-Date-Local: 2010-07-27%2012%3A31%3A25</div><div>Event-Date-GMT: Tue,%2027%20Jul%202010%2016%3A31%3A25%20GMT</div><div>Event-Date-Timestamp: 1280248285123542</div><div>Event-Calling-File: switch_channel.c</div>
<div>Event-Calling-Function: switch_channel_perform_set_running_state</div><div>Event-Calling-Line-Number: 1492</div><div>Channel-State: CS_HANGUP</div><div>Channel-Call-State: HANGUP</div><div>Channel-State-Number: 10</div>
<div>Channel-Name: OpenZAP/1%3A1/15551231234</div><div>Unique-ID: cc18cedd-a05a-4180-beda-458e5ece048b</div><div>Call-Direction: outbound</div><div>Presence-Call-Direction: outbound</div><div>Answer-State: answered</div>
<div>
<br></div><div>Content-Length: 3715</div><div>Content-Type: text/event-plain</div><div><br></div><div>Event-Name: CHANNEL_HANGUP_COMPLETE</div><div>Core-UUID: 2b696c27-bd61-4bfa-b6a1-291f14e32689</div><div>FreeSWITCH-Hostname: LoadTest-DIALER</div>
<div>FreeSWITCH-IPv4: 192.168.100.76</div><div>FreeSWITCH-IPv6: %3A%3A1</div><div>Event-Date-Local: 2010-07-27%2012%3A31%3A25</div><div>Event-Date-GMT: Tue,%2027%20Jul%202010%2016%3A31%3A25%20GMT</div><div>Event-Date-Timestamp: 1280248285124538</div>
<div>Event-Calling-File: switch_core_state_machine.c</div><div>Event-Calling-Function: switch_core_session_hangup_state</div><div>Event-Calling-Line-Number: 540</div><div>Hangup-Cause: NORMAL_CLEARING</div><div>Channel-State: CS_HANGUP</div>
<div>Channel-Call-State: HANGUP</div><div>Channel-State-Number: 10</div><div>Channel-Name: OpenZAP/1%3A1/15551231234</div><div>Unique-ID: cc18cedd-a05a-4180-beda-458e5ece048b</div><div>Call-Direction: outbound</div><div>
Presence-Call-Direction: outbound</div>
<div>Channel-Call-UUID: 4feec0d2-cb0c-49c1-9bd7-758f1e3e7c07</div><div>Answer-State: answered</div><div>Channel-Read-Codec-Name: PCMU</div><div>Channel-Read-Codec-Rate: 8000</div><div>Channel-Write-Codec-Name: PCMU</div>
<div>
Channel-Write-Codec-Rate: 8000</div><div>Caller-Caller-ID-Name: Test%7D</div><div>Caller-Caller-ID-Number: 9999999999</div><div>Caller-Destination-Number: 15551231234</div><div>Caller-Unique-ID: cc18cedd-a05a-4180-beda-458e5ece048b</div>
<div>Caller-Source: src/switch_ivr_originate.c</div><div>Caller-Context: default</div><div>Caller-Channel-Name: OpenZAP/1%3A1/15551231234</div><div>Caller-Profile-Index: 1</div><div>Caller-Profile-Created-Time: 1280248274809143</div>
<div>Caller-Channel-Created-Time: 1280248274809143</div><div>Caller-Channel-Answered-Time: 1280248282415326</div><div>Caller-Channel-Progress-Time: 0</div><div>Caller-Channel-Progress-Media-Time: 1280248275766567</div><div>
Caller-Channel-Hangup-Time: 1280248285123542</div><div>Caller-Channel-Transfer-Time: 0</div><div>Caller-Screen-Bit: true</div><div>Caller-Privacy-Hide-Name: false</div><div>Caller-Privacy-Hide-Number: false</div><div>variable_direction: outbound</div>
<div>variable_uuid: cc18cedd-a05a-4180-beda-458e5ece048b</div><div>variable_read_codec: PCMU</div><div>variable_read_rate: 8000</div><div>variable_write_codec: PCMU</div><div>variable_write_rate: 8000</div><div>variable_channel_name: OpenZAP/1%3A1/15551231234</div>
<div>variable_openzap_span_name: telus1</div><div>variable_openzap_span_number: 1</div><div>variable_openzap_chan_number: 1</div><div>variable_is_outbound: true</div><div>variable_call_uuid: 4feec0d2-cb0c-49c1-9bd7-758f1e3e7c07</div>
<div>variable_{ignore_early_media: false</div><div>variable_RECORD_STEREO: true</div><div>variable_origination_caller_id_number: 9999999999</div><div>variable_origination_caller_id_name: Test%7D</div><div>variable_originate_early_media: true</div>
<div>variable_current_application: park</div><div>variable_endpoint_disposition: ANSWER</div><div>variable_hangup_cause: NORMAL_CLEARING</div><div>variable_hangup_cause_q850: 16</div><div>variable_digits_dialed: none</div>
<div>variable_start_stamp: 2010-07-27%2012%3A31%3A14</div><div>variable_profile_start_stamp: 2010-07-27%2012%3A31%3A14</div><div>variable_answer_stamp: 2010-07-27%2012%3A31%3A22</div><div>variable_progress_media_stamp: 2010-07-27%2012%3A31%3A15</div>
<div>variable_end_stamp: 2010-07-27%2012%3A31%3A25</div><div>variable_start_epoch: 1280248274</div><div>variable_start_uepoch: 1280248274809143</div><div>variable_profile_start_epoch: 1280248274</div><div>variable_profile_start_uepoch: 1280248274809143</div>
<div>variable_answer_epoch: 1280248282</div><div>variable_answer_uepoch: 1280248282415326</div><div>variable_resurrect_epoch: 0</div><div>variable_resurrect_uepoch: 0</div><div>variable_progress_epoch: 0</div><div>variable_progress_uepoch: 0</div>
<div>variable_progress_media_epoch: 1280248275</div><div>variable_progress_media_uepoch: 1280248275766567</div><div>variable_end_epoch: 1280248285</div><div>variable_end_uepoch: 1280248285123542</div><div>variable_last_app: park</div>
<div>variable_caller_id: %22Test%7D%22%20%3C9999999999%3E</div><div>variable_duration: 11</div><div>variable_billsec: 3</div><div>variable_progresssec: 0</div><div>variable_answersec: 8</div><div>variable_progress_mediasec: 1</div>
<div>variable_flow_billsec: 11</div><div>variable_mduration: 10314</div><div>variable_billmsec: 2708</div><div>variable_progressmsec: 0</div><div>variable_answermsec: 7606</div><div>variable_progress_mediamsec: 0</div><div>
variable_flow_billmsec: 10314</div><div>variable_uduration: 10314399</div><div>variable_billusec: 2708216</div><div>variable_progressusec: 0</div><div>variable_answerusec: 7606183</div><div>variable_progress_mediausec: 957424</div>
<div>variable_flow_billusec: 10314399</div><div><br></div><div>Content-Length: 696</div><div>Content-Type: text/event-plain</div><div><br></div><div>Event-Name: CHANNEL_STATE</div><div>Core-UUID: 2b696c27-bd61-4bfa-b6a1-291f14e32689</div>
<div>FreeSWITCH-Hostname: LoadTest-DIALER</div><div>FreeSWITCH-IPv4: 192.168.100.76</div><div>FreeSWITCH-IPv6: %3A%3A1</div><div>Event-Date-Local: 2010-07-27%2012%3A31%3A25</div><div>Event-Date-GMT: Tue,%2027%20Jul%202010%2016%3A31%3A25%20GMT</div>
<div>Event-Date-Timestamp: 1280248285124538</div><div>Event-Calling-File: switch_channel.c</div><div>Event-Calling-Function: switch_channel_perform_set_running_state</div><div>Event-Calling-Line-Number: 1492</div><div>Channel-State: CS_REPORTING</div>
<div>Channel-Call-State: HANGUP</div><div>Channel-State-Number: 11</div><div>Channel-Name: OpenZAP/1%3A1/15551231234</div><div>Unique-ID: cc18cedd-a05a-4180-beda-458e5ece048b</div><div>Call-Direction: outbound</div><div>
Presence-Call-Direction: outbound</div>
<div>Answer-State: answered</div><div><br></div><div>Content-Length: 1563</div><div>Content-Type: text/event-plain</div><div><br></div><div>Event-Name: CHANNEL_DESTROY</div><div>Core-UUID: 2b696c27-bd61-4bfa-b6a1-291f14e32689</div>
<div>FreeSWITCH-Hostname: LoadTest-DIALER</div><div>FreeSWITCH-IPv4: 192.168.100.76</div><div>FreeSWITCH-IPv6: %3A%3A1</div><div>Event-Date-Local: 2010-07-27%2012%3A31%3A25</div><div>Event-Date-GMT: Tue,%2027%20Jul%202010%2016%3A31%3A25%20GMT</div>
<div>Event-Date-Timestamp: 1280248285124538</div><div>Event-Calling-File: switch_core_session.c</div><div>Event-Calling-Function: switch_core_session_perform_destroy</div><div>Event-Calling-Line-Number: 1077</div><div>Channel-State: CS_DESTROY</div>
<div>Channel-Call-State: HANGUP</div><div>Channel-State-Number: 12</div><div>Channel-Name: OpenZAP/1%3A1/15551231234</div><div>Unique-ID: cc18cedd-a05a-4180-beda-458e5ece048b</div><div>Call-Direction: outbound</div><div>
Presence-Call-Direction: outbound</div>
<div>Channel-Call-UUID: 4feec0d2-cb0c-49c1-9bd7-758f1e3e7c07</div><div>Answer-State: answered</div><div>Channel-Read-Codec-Name: PCMU</div><div>Channel-Read-Codec-Rate: 8000</div><div>Channel-Write-Codec-Name: PCMU</div>
<div>
Channel-Write-Codec-Rate: 8000</div><div>Caller-Caller-ID-Name: Test%7D</div><div>Caller-Caller-ID-Number: 9999999999</div><div>Caller-Destination-Number: 15551231234</div><div>Caller-Unique-ID: cc18cedd-a05a-4180-beda-458e5ece048b</div>
<div>Caller-Source: src/switch_ivr_originate.c</div><div>Caller-Context: default</div><div>Caller-Channel-Name: OpenZAP/1%3A1/15551231234</div><div>Caller-Profile-Index: 1</div><div>Caller-Profile-Created-Time: 1280248274809143</div>
<div>Caller-Channel-Created-Time: 1280248274809143</div><div>Caller-Channel-Answered-Time: 1280248282415326</div><div>Caller-Channel-Progress-Time: 0</div><div>Caller-Channel-Progress-Media-Time: 1280248275766567</div><div>
Caller-Channel-Hangup-Time: 1280248285123542</div><div>Caller-Channel-Transfer-Time: 0</div><div>Caller-Screen-Bit: true</div><div>Caller-Privacy-Hide-Name: false</div><div>Caller-Privacy-Hide-Number: false</div><div><br>
</div><div>Content-Length: 692</div><div>Content-Type: text/event-plain</div><div><br></div><div>Event-Name: CHANNEL_STATE</div><div>Core-UUID: 2b696c27-bd61-4bfa-b6a1-291f14e32689</div><div>FreeSWITCH-Hostname: LoadTest-DIALER</div>
<div>FreeSWITCH-IPv4: 192.168.100.76</div><div>FreeSWITCH-IPv6: %3A%3A1</div><div>Event-Date-Local: 2010-07-27%2012%3A31%3A25</div><div>Event-Date-GMT: Tue,%2027%20Jul%202010%2016%3A31%3A25%20GMT</div><div>Event-Date-Timestamp: 1280248285124538</div>
<div>Event-Calling-File: switch_channel.c</div><div>Event-Calling-Function: switch_channel_perform_set_running_state</div><div>Event-Calling-Line-Number: 1492</div><div>Channel-State: CS_DESTROY</div><div>Channel-Call-State: DOWN</div>
<div>Channel-State-Number: 12</div><div>Channel-Name: OpenZAP/1%3A1/15551231234</div><div>Unique-ID: cc18cedd-a05a-4180-beda-458e5ece048b</div><div>Call-Direction: outbound</div><div>Presence-Call-Direction: outbound</div>
<div>Answer-State: answered</div></div><div><br></div><div><br></div><div><br></div></div></div></div></div></div>
<br>_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Anthony Minessale II<br><br>FreeSWITCH <a href="http://www.freeswitch.org/">http://www.freeswitch.org/</a><br>ClueCon <a href="http://www.cluecon.com/">http://www.cluecon.com/</a><br>
Twitter: <a href="http://twitter.com/FreeSWITCH_wire">http://twitter.com/FreeSWITCH_wire</a><br><br>AIM: anthm<br><a href="mailto:MSN%3Aanthony_minessale@hotmail.com">MSN:anthony_minessale@hotmail.com</a><br>GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com">PAYPAL:anthony.minessale@gmail.com</a><br>
IRC: <a href="http://irc.freenode.net">irc.freenode.net</a> #freeswitch<br><br>FreeSWITCH Developer Conference<br><a href="mailto:sip%3A888@conference.freeswitch.org">sip:888@conference.freeswitch.org</a><br><a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org">googletalk:conf+888@conference.freeswitch.org</a><br>
pstn:+19193869900<br>
</div>