I only see one way out of this. If you manage presence, an event like the following is sent:<br><br>Event-Name: PRESENCE_IN<br>Core-UUID: 189b12c0-7fb0-11de-b0bc-37eec03ad00f<br>FreeSWITCH-Hostname: cl-t146-421cl<br>FreeSWITCH-IPv4: XXXXXX<br>
FreeSWITCH-IPv6: %3A%3A1<br>Event-Date-Local: 2009-08-05%2013%3A42%3A24<br>Event-Date-GMT: Wed,%2005%20Aug%202009%2017%3A42%3A24%20GMT<br>Event-Date-Timestamp: 1249494144628132<br>Event-Calling-File: switch_channel.c<br>Event-Calling-Function: switch_channel_presence<br>
Event-Calling-Line-Number: 472<br>Channel-State: CS_HIBERNATE<br>Channel-State-Number: 8<br>Channel-Name: XXXXX<br>Unique-ID: 4e73668e-81e7-11de-b0bc-37eec03ad00f<br>Call-Direction: inbound<br>Presence-Call-Direction: inbound<br>
Answer-State: answered<br>Caller-Username: 1000<br>Caller-Dialplan: XML<br>Caller-Caller-ID-Name: Mesquita<br>Caller-Caller-ID-Number: 1000<br>Caller-Network-Addr: XXXXX<br>Caller-Destination-Number: 1005<br>Caller-Unique-ID: 4e73668e-81e7-11de-b0bc-37eec03ad00f<br>
Caller-Source: mod_sofia<br>Caller-Context: XXXXX<br>Caller-Channel-Name: XXXXX<br>Caller-Profile-Index: 1<br>Caller-Profile-Created-Time: 1249494132128119<br>Caller-Channel-Created-Time: 1249494132128119<br>Caller-Channel-Answered-Time: 1249494139500129<br>
Caller-Channel-Progress-Time: 1249494132368119<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>Other-Leg-Username: 1000<br>Other-Leg-Dialplan: XML<br>Other-Leg-Caller-ID-Name: Joao%20Mesquita<br>Other-Leg-Caller-ID-Number: 1000<br>Other-Leg-Network-Addr: 190.2.41.65<br>Other-Leg-Destination-Number: sip%3A1005%40192.168.0.106%3A4559%3Bfs_nat%3Dyes%3Bfs_path%3Dsip%253A1005%2540190.2.41.65%253A4559<br>
Other-Leg-Unique-ID: 4e7622ac-81e7-11de-b0bc-37eec03ad00f<br>Other-Leg-Source: mod_sofia<br>Other-Leg-Context: XXXXX<br>Other-Leg-Channel-Name: XXXXXX<br>Other-Leg-Screen-Bit: true<br>Other-Leg-Privacy-Hide-Name: false<br>
Other-Leg-Privacy-Hide-Number: false<br>proto: src/switch_channel.c<br>login: src/switch_channel.c<br>from: XXXXXX<br>rpid: unknown<br>status: hold<br>event_type: presence<br>alt_event_type: dialog<br>event_count: 3<br><br>
Content-Length: 543<br>Content-Type: text/event-plain<br><br>Other than that, I think it can be patched. I will take a look at it.<br><br>Guys, should this be patched on the state machine itself or on the mod_sofia channel_receive_message?<br>
<br>jmesquita<br><br><br><div class="gmail_quote">On Wed, Aug 5, 2009 at 1:35 PM, mayamatakeshi <span dir="ltr">&lt;<a href="mailto:mayamatakeshi@gmail.com">mayamatakeshi@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello,<br>
I&#39;m using mod_event_socket to monitor FS.<br>
I&#39;m using &quot;events plain ALL&#39; and I get lots of channel events. But<br>
curiously, when some channel puts the call on-hold/off-hold, I don&#39;t<br>
get any notification. Is it possible to get these events? Am I missing<br>
some setting?<br>
<br>
regards,<br>
takeshi<br>
<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>
</blockquote></div><br>