Have you considered using origination_uuid channel variable where you can specify your own UUID, that way you can recognize the first event related to your originated call. <br><br><div class="gmail_quote">On Thu, Aug 9, 2012 at 6:14 PM, Joe Flemmings <span dir="ltr"><<a href="mailto:joe.jflemmings@gmail.com" target="_blank">joe.jflemmings@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I'm originating the call from the CLI using originate <a href="http://wiki.freeswitch.org/wiki/Mod_spandsp#For_transmitting_a_fax_2" target="_blank">http://wiki.freeswitch.org/wiki/Mod_spandsp#For_transmitting_a_fax_2</a><br>
I can bet you that this is the first time i see this uniqueu id in the events output.<div class="HOEnZb"><div class="h5"><br>
<br><br><br><div class="gmail_quote">On Thu, Aug 9, 2012 at 4:27 AM, Godson Gera <span dir="ltr"><<a href="mailto:godson.g@gmail.com" target="_blank">godson.g@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
You must already be having a channel in the FS with that unique id. Are you originating these calls from event socket ? <br><br><div class="gmail_quote"><div><div>On Thu, Aug 9, 2012 at 9:40 AM, Joe Flemmings <span dir="ltr"><<a href="mailto:joe.jflemmings@gmail.com" target="_blank">joe.jflemmings@gmail.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>I’m using Inbound “Mod event socket” and want to associate the codec event with a call in the system.<br>
<br>When the event is first fired by FreeSwitch, it has a new Unique-ID and there is no way to associate it with any other channels.<br>
<br>How can i associate this event so i know what call it belongs to. Please see sample event bellow on issue. Unique-ID is a new value of cdee98ff-d786-46be-b058-a29e5eddb0af. I would like to associate this event with a channel in the system or call leg.<br>
<br><br>Event-Name: CODEC<br>Core-UUID: 45e18440-cf99-49ab-bc6e-d85c083312c5<br>FreeSWITCH-Hostname: freeswitch-64bit-lab<br>FreeSWITCH-Switchname: freeswitch-64bit-lab<br>FreeSWITCH-IPv4: 10.10.78.36<br>FreeSWITCH-IPv6: %3A%3A1<br>
Event-Date-Local: 2012-08-08%2020%3A17%3A49<br>Event-Date-GMT: Thu,%2009%20Aug%202012%2003%3A17%3A49%20GMT<br>Event-Date-Timestamp: 1344482269907740<br>Event-Calling-File: switch_core_codec.c<br>Event-Calling-Function: switch_core_session_set_real_read_codec<br>
Event-Calling-Line-Number: 162<br>Event-Sequence: 388579<br>Channel-State: CS_CONSUME_MEDIA<br>Channel-Call-State: RINGING<br>Channel-State-Number: 7<br>Channel-Name: sofia/external_10.10.78.36/fax_<a href="tel:17144301800" value="+17144301800" target="_blank">17144301800</a>_8518154256_8518154256_pbxcluster_4500847326%4010.10.78.36<br>
Unique-ID: cdee98ff-d786-46be-b058-a29e5eddb0af<br>Call-Direction: outbound<br>Presence-Call-Direction: outbound<br>Channel-HIT-Dialplan: false<br>Channel-Call-UUID: cdee98ff-d786-46be-b058-a29e5eddb0af<br>Answer-State: ringing<br>
Channel-Read-Codec-Name: PCMU<br>Channel-Read-Codec-Rate: 8000<br>Channel-Read-Codec-Bit-Rate: 64000<br>Channel-Write-Codec-Name: PCMU<br>Channel-Write-Codec-Rate: 8000<br>Channel-Write-Codec-Bit-Rate: 64000<br>Caller-Direction: outbound<br>
Caller-Caller-ID-Name: <a href="tel:7144301800" value="+17144301800" target="_blank">7144301800</a><br>Caller-Caller-ID-Number: <a href="tel:7144301800" value="+17144301800" target="_blank">7144301800</a><br>Caller-Callee-ID-Name: Outbound%20Call<br>
Caller-Callee-ID-Number: <a href="tel:17144301800" value="+17144301800" target="_blank">17144301800</a><br>Caller-Network-Addr: 10.10.78.36<br>Caller-Destination-Number: fax_<a href="tel:17144301800" value="+17144301800" target="_blank">17144301800</a>_8518154256_8518154256_pbxcluster_4500847326<br>
Caller-Unique-ID: cdee98ff-d786-46be-b058-a29e5eddb0af<br>Caller-Source: src/switch_ivr_originate.c<br>Caller-Context: default<br>Caller-Channel-Name: sofia/external_10.10.78.36/fax_<a href="tel:17144301800" value="+17144301800" target="_blank">17144301800</a>_8518154256_8518154256_pbxcluster_4500847326%4010.10.78.36<br>
Caller-Profile-Index: 1<br>Caller-Profile-Created-Time: 1344482263028410<br>Caller-Channel-Created-Time: 1344482263028410<br>Caller-Channel-Answered-Time: 0<br>Caller-Channel-Progress-Time: 0<br>Caller-Channel-Progress-Media-Time: 0<br>
Caller-Channel-Hangup-Time: 0<br>Caller-Channel-Transfer-Time: 0<br>Caller-Screen-Bit: true<br>Caller-Privacy-Hide-Name: false<br>Caller-Privacy-Hide-Number: false<br>channel-read-codec-name: PCMU<br>channel-read-codec-rate: 8000<br>
channel-read-codec-bit-rate: 64000<br><br><br>
<br></div></div>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
Join Us At ClueCon - Aug 7-9, 2012<br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">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><span><font color="#888888"><br><br clear="all"><br>-- <br>Thanks & Regards,<br>Godson Gera<br><a href="http://godson.in" target="_blank">FreeSWITCH Consultant</a><br>
</font></span><br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
Join Us At ClueCon - Aug 7-9, 2012<br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">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>
</div></div><br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
Join Us At ClueCon - Aug 7-9, 2012<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>Thanks & Regards,<br>Godson Gera<br><a href="http://godson.in">FreeSWITCH Consultant</a><br>