I am writing a "call monitor", something like an operator panel. I am capturing events via esl in php, filtering down the data and then sending them to a javascript UI via websocket. My problem is that I am totally bewildered by the amount of events that fs generates, and I'd like to filter it down to a bare minimum. New outgoing call (with uuid, extension and dialed number) Call answererd from other party Line busy Call hung up from either party. Can anyone give me a pointer to which events I really need to monitor, and which fields inside? I will obviously share finished code!
Check https://freeswitch.org/confluence plenty of documentation about event filtering On Sun, May 27, 2018, 13:48 Francesco Facco de Lagarda < francesco@delagarda.com> wrote:
I am writing a “call monitor”, something like an operator panel.
I am capturing events via esl in php, filtering down the data and then sending them to a javascript UI via websocket.
My problem is that I am totally bewildered by the amount of events that fs generates, and I’d like to filter it down to a bare minimum.
New outgoing call (with uuid, extension and dialed number) Call answererd from other party
Line busy
Call hung up from either party.
Can anyone give me a pointer to which events I really need to monitor, and which fields inside?
I will obviously share finished code!
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Grazie Giovanni! You think I didnt go through that with a fine-toothed comb? 😉 I was looking for some simpler explanations! F From: FreeSWITCH-users <freeswitch-users-bounces@lists.freeswitch.org> On Behalf Of Giovanni Maruzzelli Sent: domenica 27 maggio 2018 16:15 To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org> Subject: Re: [Freeswitch-users] Call monitoring Check https://freeswitch.org/confluence plenty of documentation about event filtering On Sun, May 27, 2018, 13:48 Francesco Facco de Lagarda <francesco@delagarda.com <mailto:francesco@delagarda.com> > wrote: I am writing a “call monitor”, something like an operator panel. I am capturing events via esl in php, filtering down the data and then sending them to a javascript UI via websocket. My problem is that I am totally bewildered by the amount of events that fs generates, and I’d like to filter it down to a bare minimum. New outgoing call (with uuid, extension and dialed number) Call answererd from other party Line busy Call hung up from either party. Can anyone give me a pointer to which events I really need to monitor, and which fields inside? I will obviously share finished code! _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
subscribe only to events you really need :=) events json CHANNEL_ANSWER CHANNEL_HANGUP CHANNEL_PROGRESS CHANNEL_PROGRESS_MEDIA ... this will limit the number of events being generated. On 27 May 2018 at 17:58, Francesco Facco de Lagarda <francesco@delagarda.com
wrote:
Grazie Giovanni!
You think I didnt go through that with a fine-toothed comb? 😉
I was looking for some simpler explanations!
F
*From:* FreeSWITCH-users <freeswitch-users-bounces@lists.freeswitch.org> *On Behalf Of *Giovanni Maruzzelli *Sent:* domenica 27 maggio 2018 16:15 *To:* FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org> *Subject:* Re: [Freeswitch-users] Call monitoring
Check https://freeswitch.org/confluence plenty of documentation about event filtering
On Sun, May 27, 2018, 13:48 Francesco Facco de Lagarda < francesco@delagarda.com> wrote:
I am writing a “call monitor”, something like an operator panel.
I am capturing events via esl in php, filtering down the data and then sending them to a javascript UI via websocket.
My problem is that I am totally bewildered by the amount of events that fs generates, and I’d like to filter it down to a bare minimum.
New outgoing call (with uuid, extension and dialed number) Call answererd from other party
Line busy
Call hung up from either party.
Can anyone give me a pointer to which events I really need to monitor, and which fields inside?
I will obviously share finished code!
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Hi list, I'm already searching in FS manual several hours but cannot find the solution. My task is to receive SIP call from remote SIP device (registered to FS like User: 1005@192.168.8.6), using DIALPLAN route it back to SIP channel with the same (or increased) destination_number back to the remote SIP device. I.e. make such simple loopback in FS. Tested DIALPLAN extension is <extension name="Loopback"> <condition field="destination_number" expression="^(5000)$"> <action application="bridge" data="sofia/$${domain}/1005"/> </extension> The call is looped back to SIP channel but with destination_number 1005. Is there any way to enforce to this bridged outbound call the destination_number based on destination number of inbound call (which comes with destination number 5000) ? Thank you in advance Petr B.
Hi list, I have found the solution by myself. It will be useful to have answer here. The correct DIALPLAN extension is in this case <extension name="Loopback"> <condition field="destination_number" expression="^(5000)$"> <action application="bridge" data="sofia/internal/${destination_number}@192.168.8.29"/> </extension> Where device at 192.168.8.29 is the SIP client registered to FS at 192.168.8.6 like user 1005. Using such DIALPLAN <extension> the call incoming from SIP client with destination number 5000 is immediately routed back to the SIP client at 192.168.8.29. My estimation is that FS in this case searches in SIP profile "internal" for all registered clients and when founds the one with IP 192.168.8.29 it is used to route the call there using destination number for this outbound call. Regards Petr B. Dne 29.05.2018 v 18:31 Petr Both napsal(a):
Hi list,
I'm already searching in FS manual several hours but cannot find the solution.
My task is to receive SIP call from remote SIP device (registered to FS like User: 1005@192.168.8.6), using DIALPLAN route it back to SIP channel with the same (or increased) destination_number back to the remote SIP device. I.e. make such simple loopback in FS.
Tested DIALPLAN extension is
<extension name="Loopback"> <condition field="destination_number" expression="^(5000)$"> <action application="bridge" data="sofia/$${domain}/1005"/> </extension>
The call is looped back to SIP channel but with destination_number 1005. Is there any way to enforce to this bridged outbound call the destination_number based on destination number of inbound call (which comes with destination number 5000) ?
Thank you in advance
Petr B.
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Thanks once again Tihomir .. Eternamente grato! From: FreeSWITCH-users <freeswitch-users-bounces@lists.freeswitch.org> On Behalf Of Tihomir Culjaga Sent: martedì 29 maggio 2018 18:07 To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org> Subject: Re: [Freeswitch-users] Call monitoring subscribe only to events you really need :=) events json CHANNEL_ANSWER CHANNEL_HANGUP CHANNEL_PROGRESS CHANNEL_PROGRESS_MEDIA ... this will limit the number of events being generated. On 27 May 2018 at 17:58, Francesco Facco de Lagarda <francesco@delagarda.com <mailto:francesco@delagarda.com> > wrote: Grazie Giovanni! You think I didnt go through that with a fine-toothed comb? 😉 I was looking for some simpler explanations! F From: FreeSWITCH-users <freeswitch-users-bounces@lists.freeswitch.org <mailto:freeswitch-users-bounces@lists.freeswitch.org> > On Behalf Of Giovanni Maruzzelli Sent: domenica 27 maggio 2018 16:15 To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org <mailto:freeswitch-users@lists.freeswitch.org> > Subject: Re: [Freeswitch-users] Call monitoring Check https://freeswitch.org/confluence plenty of documentation about event filtering On Sun, May 27, 2018, 13:48 Francesco Facco de Lagarda <francesco@delagarda.com <mailto:francesco@delagarda.com> > wrote: I am writing a “call monitor”, something like an operator panel. I am capturing events via esl in php, filtering down the data and then sending them to a javascript UI via websocket. My problem is that I am totally bewildered by the amount of events that fs generates, and I’d like to filter it down to a bare minimum. New outgoing call (with uuid, extension and dialed number) Call answererd from other party Line busy Call hung up from either party. Can anyone give me a pointer to which events I really need to monitor, and which fields inside? I will obviously share finished code! _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
participants (4)
-
Francesco Facco de Lagarda
-
Giovanni Maruzzelli
-
Petr Both
-
Tihomir Culjaga