[Freeswitch-users] hangup_cause NONE vs. NORMAL_CLEARING

2009-06-28 Thread Nicolas Brenner
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

[Freeswitch-users] Confused with event content lengths

2009-06-28 Thread Nik Middleton
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

Re: [Freeswitch-users] Confused with event content lengths

2009-06-28 Thread João Mesquita
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

[Freeswitch-users] bypass media mode is stateful?

2009-06-28 Thread Muhammad Danish Moosa
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

Re: [Freeswitch-users] bypass media mode is stateful?

2009-06-28 Thread Brian West
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

Re: [Freeswitch-users] Confused with event content lengths

2009-06-28 Thread Nik Middleton
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

Re: [Freeswitch-users] Confused with event content lengths

2009-06-28 Thread Nik Middleton
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

Re: [Freeswitch-users] Myevents in outbound socket

2009-06-28 Thread Brian West
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

Re: [Freeswitch-users] Myevents in outbound socket

2009-06-28 Thread Nik Middleton
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:

Re: [Freeswitch-users] Myevents in outbound socket

2009-06-28 Thread João Mesquita
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

[Freeswitch-users] javascript FIFO (First In First Out)

2009-06-28 Thread Baskar
*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