[Freeswitch-users] hangup_cause NONE vs. NORMAL_CLEARING
I have a small JS script that makes a call, plays a sound file and then hangs up. For each call it makes, I log the hangup_cause variable on the CHANNEL_HANGUP_COMPLETE event. Most of the time, when calls are successful, I get a NORMAL_CLEARING cause, but sometimes I'll get a NONE cause. I wanted to know what the difference between these two is, because there is no reference to NONE in the wiki (http://wiki.freeswitch.org/wiki/Hangup_causes ). Thanks, Nicolás ___ 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
[Freeswitch-users] Confused with event content lengths
Hi Guys, I'm trying to parse events in C++ for an outbound socket. The docs are a little contradictory, so I wonder if someone could help me out. As I understand it and event is terminated with double LF's (\n\n) However if there is a Content-Length header the wiki very confusingly says 'Content-Length is the length of the event beginning AFTER the very next LF only line (\n) and inclusive the trailing LF/LF pair (\n\n)' BUT the example says it's after the \n\n in the header!! Which is it? In addition, it also looks like the event body is also terminated by a \n\n. If this is the case, why do I care about content length value, can't I simply read until I get the termination sequence? Regards, ___ 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
Re: [Freeswitch-users] Confused with event content lengths
If I am not mistaken, you are always safe reading the amount data expressed on Content-Length since it is calculated based on the total message length before it is sent out of FS. From a protocol point of view, it would indeed be much better to rely on something such as Content-Length then \n\n termination string. As I get to know more and more the core developers, I doubt they would rely on the latter. Hope it helps... jmesquita On Sun, Jun 28, 2009 at 3:49 PM, Nik Middleton nik.middle...@noblesolutions.co.uk wrote: Hi Guys, I’m trying to parse events in C++ for an outbound socket. The docs are a little contradictory, so I wonder if someone could help me out. As I understand it and event is terminated with double LF’s (\n\n) However if there is a Content-Length header the wiki very confusingly says ‘Content-Length is the length of the event beginning *AFTER* the very next LF only line (\n) and *inclusive* the trailing LF/LF pair (\n\n)’ BUT the example says it’s after the \n\n in the header!! Which is it? In addition, it also looks like the event body is also terminated by a \n\n. If this is the case, why do I care about content length value, can’t I simply read until I get the termination sequence? Regards, ___ 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 ___ 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
[Freeswitch-users] bypass media mode is stateful?
Hi, Although its obvious but just asking for confirmation :) Is bypass media mode in FS is fairly stateful. If it in huge network so its cdr(billing) is relaiable ? -- Muhammad Danish Moosa ___ 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
Re: [Freeswitch-users] bypass media mode is stateful?
Yes CDR is still valid.. the media is just bypassed... please review the FAQ. /b On Jun 28, 2009, at 6:30 AM, Muhammad Danish Moosa wrote: Hi, Although its obvious but just asking for confirmation :) Is bypass media mode in FS is fairly stateful. If it in huge network so its cdr(billing) is relaiable ? ___ 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
Re: [Freeswitch-users] Confused with event content lengths
But from where? After the double LF of the header as one part of the wiki says or after the line containing the content-length that another part of the wiki says? -Original Message- From: freeswitch-users-boun...@lists.freeswitch.org [mailto:freeswitch-users-boun...@lists.freeswitch.org] On Behalf Of Brian West Sent: 28 June 2009 20:23 To: freeswitch-users@lists.freeswitch.org Subject: Re: [Freeswitch-users] Confused with event content lengths Yes it says 264 bytes read exactly 264 bytes or die trying. /b On Jun 28, 2009, at 1:57 PM, João Mesquita wrote: If I am not mistaken, you are always safe reading the amount data expressed on Content-Length since it is calculated based on the total message length before it is sent out of FS. From a protocol point of view, it would indeed be much better to rely on something such as Content-Length then \n\n termination string. As I get to know more and more the core developers, I doubt they would rely on the latter. Hope it helps... jmesquita ___ 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 ___ 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
Re: [Freeswitch-users] Confused with event content lengths
OK, finally figured it out. Have updated the Wiki to remove ambiguity and posted some SUDO code Regards, -Original Message- From: freeswitch-users-boun...@lists.freeswitch.org [mailto:freeswitch-users-boun...@lists.freeswitch.org] On Behalf Of Nik Middleton Sent: 28 June 2009 20:38 To: freeswitch-users@lists.freeswitch.org Subject: Re: [Freeswitch-users] Confused with event content lengths But from where? After the double LF of the header as one part of the wiki says or after the line containing the content-length that another part of the wiki says? -Original Message- From: freeswitch-users-boun...@lists.freeswitch.org [mailto:freeswitch-users-boun...@lists.freeswitch.org] On Behalf Of Brian West Sent: 28 June 2009 20:23 To: freeswitch-users@lists.freeswitch.org Subject: Re: [Freeswitch-users] Confused with event content lengths Yes it says 264 bytes read exactly 264 bytes or die trying. /b On Jun 28, 2009, at 1:57 PM, João Mesquita wrote: If I am not mistaken, you are always safe reading the amount data expressed on Content-Length since it is calculated based on the total message length before it is sent out of FS. From a protocol point of view, it would indeed be much better to rely on something such as Content-Length then \n\n termination string. As I get to know more and more the core developers, I doubt they would rely on the latter. Hope it helps... jmesquita ___ 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 ___ 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 ___ 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
Re: [Freeswitch-users] Myevents in outbound socket
Are you using ESL? /b On Jun 28, 2009, at 5:55 PM, Nik Middleton wrote: Hi Guys, I’ve almost got my c++ outbound socket control prog running, however even though the filter works, it would be truly great to just subscribe to myevents as even with the filter in place I get lots of channel Execute and complete events which I don’t really need. Problem is, is that mod_VMD isn’t included in those events, even though it is channel specific. Is there any chance that this will be included? If not, can someone point me to where myevents is defined and I’ll have a go at it myself. Regards, ___ 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
Re: [Freeswitch-users] Myevents in outbound socket
Nope. Can't find much on the Wiki on how to interface with ESL using C++. I want to control the outbound socket from a windows 2003 server only because that's what I'm familiar with. Is there some portable C++ or C code? From: freeswitch-users-boun...@lists.freeswitch.org [mailto:freeswitch-users-boun...@lists.freeswitch.org] On Behalf Of Brian West Sent: 29 June 2009 00:00 To: freeswitch-users@lists.freeswitch.org Subject: Re: [Freeswitch-users] Myevents in outbound socket Are you using ESL? /b On Jun 28, 2009, at 5:55 PM, Nik Middleton wrote: Hi Guys, I've almost got my c++ outbound socket control prog running, however even though the filter works, it would be truly great to just subscribe to myevents as even with the filter in place I get lots of channel Execute and complete events which I don't really need. Problem is, is that mod_VMD isn't included in those events, even though it is channel specific. Is there any chance that this will be included? If not, can someone point me to where myevents is defined and I'll have a go at it myself. Regards, ___ 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
Re: [Freeswitch-users] Myevents in outbound socket
You should definitely look at ESL, dude. Take a look at ${SVNROOT}/libs/esl/. There is a esl_oop inside that might give you a go. Beware that this is only an interface for SWIG, but might be useful to you if you extend it. Later, jmesquita On Sun, Jun 28, 2009 at 8:14 PM, Nik Middleton nik.middle...@noblesolutions.co.uk wrote: Nope. Can’t find much on the Wiki on how to interface with ESL using C++. I want to control the outbound socket from a windows 2003 server only because that’s what I’m familiar with. Is there some portable C++ or C code? -- *From:* freeswitch-users-boun...@lists.freeswitch.org [mailto: freeswitch-users-boun...@lists.freeswitch.org] *On Behalf Of *Brian West *Sent:* 29 June 2009 00:00 *To:* freeswitch-users@lists.freeswitch.org *Subject:* Re: [Freeswitch-users] Myevents in outbound socket Are you using ESL? /b On Jun 28, 2009, at 5:55 PM, Nik Middleton wrote: Hi Guys, I’ve almost got my c++ outbound socket control prog running, however even though the filter works, it would be truly great to just subscribe to myevents as even with the filter in place I get lots of channel Execute and complete events which I don’t really need. Problem is, is that mod_VMD isn’t included in those events, even though it is channel specific. Is there any chance that this will be included? If not, can someone point me to where myevents is defined and I’ll have a go at it myself. Regards, ___ 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 ___ 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
[Freeswitch-users] javascript FIFO (First In First Out)
*Hi, I have configured inbound through JavaScript it is working well. Through dialplan i have configured FIFO it is also working fine but i want to configure FIFO (First In First Out) through JavaScript. Is there any link or examples to configure FIFO through JavaScript which will assist me to resolve this problem. can any one assist me to do this above process. Thanks in advance. Thanks with Regards, N.Baskar. * ___ 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