Re: [Freeswitch-users] Handling the 302 Moved Temporarily response from JavaScript

2009-11-25 Thread Stephen Crosby
Surprisingly, I've found no way to access the HTTP response status code
using mod_spidermonkey_curl. I'd love to see this feature added or discussed
if it already exists and I'm missing it.

--Stephen

On Wed, Nov 25, 2009 at 9:45 AM, Michael Jerris m...@jerris.com wrote:

 In trunk there is a sofia profile setting to allow dialplan processing of
 302 responses.  This won't get you back into your same javascript, but you
 can probably do something clever from there.

 Mike

 On Nov 24, 2009, at 5:04 PM, John Platts wrote:

 
  I have considered writing JavaScript code to bridge two calls together.
 However, I would like to perform custom handling of the 302 Moved
 Temporarily response. How do I handle the 302 Moved Temporarily response if
 I use JavaScript?
 

 ___
 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] Handling the 302 Moved Temporarily response from JavaScript

2009-11-25 Thread Stephen Crosby
My apologies, and thanks for the info.

--Stephen

On Wed, Nov 25, 2009 at 11:06 AM, Rupa Schomaker r...@rupa.com wrote:

 Stephen, I think you've jumped into the middle of a thread about sip 302,
 not about http.

 Anyway, you might want to look at using mod_curl instead of
 mod_spidermonkey_curl. mod_curl can give you a json response which you can
 then parse easily in javascript or any other language.  The json response
 has the http response code, all headers, and the body.


 On Wed, Nov 25, 2009 at 12:01 PM, Stephen Crosby stevecr...@gmail.comwrote:

 Surprisingly, I've found no way to access the HTTP response status code
 using mod_spidermonkey_curl. I'd love to see this feature added or discussed
 if it already exists and I'm missing it.

 --Stephen


 On Wed, Nov 25, 2009 at 9:45 AM, Michael Jerris m...@jerris.com wrote:

 In trunk there is a sofia profile setting to allow dialplan processing of
 302 responses.  This won't get you back into your same javascript, but you
 can probably do something clever from there.

 Mike

 On Nov 24, 2009, at 5:04 PM, John Platts wrote:

 
  I have considered writing JavaScript code to bridge two calls together.
 However, I would like to perform custom handling of the 302 Moved
 Temporarily response. How do I handle the 302 Moved Temporarily response if
 I use JavaScript?
 

 ___
 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




 --
 -Rupa

 ___
 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] RegEx Help

2009-11-09 Thread Stephen Crosby
Would something like this work for you?

extension name=some-extension
  condition field=destination_number expression=^100$
!-- do something --
  /condition
/extension
extension name=another-extension
  condition field=destination_number expression=^([1-9]\d{2})$
!-- do something else --
  /condition
/extension

--Stephen

On Mon, Nov 9, 2009 at 12:22 PM, Dave Stevenson
steve...@primrosebank.netwrote:

  I **think** that the following will match any three character strings
 from 1xx to 399

 I want to exclude 100 though, can anyone help me with the required RegEx
 please ?


 ^([1-3][0-9][0-9])$

 I could (I think) do

 ^([1-3][1-9][0-9]|[2-3][0-9][0-9])$

 But it does not feel elegant - is there a better way ?


 regards
 Dave

 ___
 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] RegEx Help

2009-11-09 Thread Stephen Crosby
Dave,

I think extensions are processed in order although I can't quickly find any
documentation that says this, why don't you try it and see, it would take
only a moment to find out for sure.

--Stephen

On Mon, Nov 9, 2009 at 1:03 PM, Frank Carmickle fr...@carmickle.com wrote:

 On Mon, Nov 09, Michael Collins wrote:
  On Mon, Nov 9, 2009 at 12:22 PM, Dave Stevenson
  steve...@primrosebank.netwrote:
 
I **think** that the following will match any three character strings
   from 1xx to 399
  
   I want to exclude 100 though, can anyone help me with the required
 RegEx
   please ?
  
  
   ^([1-3][0-9][0-9])$
  
   I could (I think) do
  
   ^([1-3][1-9][0-9]|[2-3][0-9][0-9])$

 You mean

 (^1[0-9][1-9]$|^[2-3]\d\d$)

 --FC

 ___
 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] Status of ubuntu/debian packages.

2009-09-24 Thread Stephen Crosby
Thanks William,

This is very helpful.

--Stephen

On Thu, Sep 24, 2009 at 3:58 PM, William King quentus...@gmail.com wrote:

 Alright. I  was able to get the freeswitch project officially on
 launchpad. So here are the new links:

 Nightlies:

 https://launchpad.net/~freeswitch-drivers/+archive/freeswitch-nightly-drivershttps://launchpad.net/%7Efreeswitch-drivers/+archive/freeswitch-nightly-drivers

 Official releases plus major bug fixes:
 https://launchpad.net/~freeswitch-drivers/+archive/ppahttps://launchpad.net/%7Efreeswitch-drivers/+archive/ppa

 -William King

 Dmitry Bely wrote:
  On Fri, Sep 25, 2009 at 1:00 AM, Frank Carmickle fr...@carmickle.com
 wrote:
 
  Hello
 
  On Fri, Sep 25, Dmitry Bely wrote:
 
  On Wed, Sep 23, 2009 at 8:08 PM, William King quentus...@gmail.com
 wrote:
 
  Another problem: all music packages in the repository (except 48Khz)
 are empty.
 
  If your speaking of the source package then they should be.  If the
 binary package freeswitch-sounds-music-8000 is empty then we have problems.
  It was working the other day.  Please let me know.
 
 
  Of course, I meant the binary packages:
 
 
 http://ppa.launchpad.net/pbxbuntu-drivers/ppa/ubuntu/pool/main/f/freeswitch-sounds-music/
 
  Note their sizes.
 
  - Dmitry Bely
 
  ___
  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] Access MySQL directly via Javascript using SSJS Engines .... really!

2009-06-15 Thread Stephen Crosby
I'm actually much more interested in the HTTP library and a few other
components than MySQL. Freeswitch's spidermonkey CURL library doesn't
provide returned HTTP status codes and JSEXT does.

That said, I'm still somewhat interested in the mysql library over odbc. For
me, the only thing I've ever really done with ODBC is use it to bridge the
gap between freeswitch mod_spidermonkey and mysql server. I think it would
be nice to not need it.

--Stephen

On Mon, Jun 15, 2009 at 2:58 PM, Ken Rice kr...@freeswitch.org wrote:

  You know you can already access any sql support by UnixODBC via
 mod_spidermonkey already... And NO its not slow (maybe that was true 10
 years ago, but not any longer)


 --
 *From: *Stephen Crosby stevecr...@gmail.com
 *Reply-To: *freeswitch-users@lists.freeswitch.org
 *Date: *Mon, 15 Jun 2009 14:51:30 -0700
 *To: *freeswitch-users@lists.freeswitch.org
 *Subject: *Re: [Freeswitch-users] Access MySQL directly via Javascript
 using SSJS Engines  really!


 What a great project, does anyone know what's needed to make these
 libraries available to freeswitch scripts?

 --Stephen

 On Mon, Jun 15, 2009 at 12:25 PM, EdPimentl edpime...@gmail.com wrote:

 FYI
 Now you can directly connect to MySql via javascript

 http://jsext.webloji.net/
 http://jsext.sourceforge.net/JSEXT1.Mysql.html
 http://www.brainonfire.net/blog/ssjs-on-ubuntu/

 And if you wish you had a V8, check out Google SSJS Engine
 BTW: JS is now 7x faster than it last year.

 -E
 http://Gpro.ws
 http://twitter.com/edpimentl
 http://facebook.com/facevalu

 ___
 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


___
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] Conference users hear MOH until leader enters?

2009-06-01 Thread Stephen Crosby
No breaks! keep improving the conference app :)

--Stephen

On Mon, Jun 1, 2009 at 6:08 AM, Anthony Minessale 
anthony.miness...@gmail.com wrote:

 I added support so when multiple endconf users are in the same conference
 the total number of people with the flag must reach
 0 before it kills the conf.

 Can I take a small break now please ;)
 That's why I'm afraid to add new stuff sometimes.



 On Sat, May 30, 2009 at 9:16 PM, jcro...@gmail.com wrote:

 I think I can answer my own question after looking at the code...  It
 seems that when THAT ONE user leaves, a flag is set that notifies the
 conference thread to teardown the conference.  I guess I will have to
 roll my own on this one I guess, especially since I don't want to kill
 the conference completely, just drop the users back to music.

 Also, more importantly...
 I just discovered a number of conference profile options that are
 neither documented in the Wiki nor mentioned in the sample configuration
 file.  I've added entries in the Wiki for all the ones that were
 missing, but I don't know what half of them do.  =(

 Could someone in-the-know please fill those in?  Also, I would suggest
 adding those to the sample config file.  Options like endconf and
 announce-user are GREAT conference features, but no one knows they are
 there!

 (I had actually implemented the user count announcement within
 Javascript, because I didn't know it was available.)


 ___
 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




 --
 Anthony Minessale II

 FreeSWITCH http://www.freeswitch.org/
 ClueCon http://www.cluecon.com/

 AIM: anthm
 MSN:anthony_miness...@hotmail.com msn%3aanthony_miness...@hotmail.com
 GTALK/JABBER/PAYPAL:anthony.miness...@gmail.compaypal%3aanthony.miness...@gmail.com
 IRC: irc.freenode.net #freeswitch

 FreeSWITCH Developer Conference
 sip:8...@conference.freeswitch.org sip%3a...@conference.freeswitch.org
 iax:gu...@conference.freeswitch.org/888
 googletalk:conf+...@conference.freeswitch.orggoogletalk%3aconf%2b...@conference.freeswitch.org
 pstn:213-799-1400

 ___
 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] Conference users hear MOH until leader enters?

2009-05-27 Thread Stephen Crosby
Thanks j3flight, I have used that method, but the profiles seem to be for
conferences not users. So I give a conference a profile, and everybody in
the conference shares the profile settings. If I'm wrong, let me know,
otherwise I'll stop hijacking this thread.

--Stephen

On Wed, May 27, 2009 at 5:50 AM, Anthony Minessale 
anthony.miness...@gmail.com wrote:

 This opens the door to what you ask but to add moderator specific dtmf
 controls is another patch that would require specifics and most likely a
 bounty or contract to complete.



 On Tue, May 26, 2009 at 8:17 PM, Stephen Crosby stevecr...@gmail.comwrote:

 Michael,

 Pardon me for hopping on this thread, but can you explain more about this
 new feature? I've been wanting something like this to apply different
 behaviors for different conference members. Can this be used to provide a
 'moderator' with different behaviors bound to DTMF keys than regular
 callers?

 --Stephen

 On Tue, May 26, 2009 at 5:55 PM, Michael Collins m...@freeswitch.orgwrote:



 On Tue, May 26, 2009 at 4:56 PM, Anthony Minessale 
 anthony.miness...@gmail.com wrote:

 the easiest way would be the new feature I added to 13442

 in the conference profile add

 param name=conference-flags value=wait-mod/

 to your profile

 and in your dialplan

 action application=set data=conference_member_flags=moderator/
 action application=conference data=1...@wideband/

 or

 action application=conference data=1...@wideband
 +flags{moderator}/


 Don't forget the wishlist and donate button on the main site


 And the wiki tax if you feel comfortable adding this to the wiki. If not
 let me know and I'll add it.
 -MC



 ___
 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




 --
 Anthony Minessale II

 FreeSWITCH http://www.freeswitch.org/
 ClueCon http://www.cluecon.com/

 AIM: anthm
 MSN:anthony_miness...@hotmail.com msn%3aanthony_miness...@hotmail.com
 GTALK/JABBER/PAYPAL:anthony.miness...@gmail.compaypal%3aanthony.miness...@gmail.com
 IRC: irc.freenode.net #freeswitch

 FreeSWITCH Developer Conference
 sip:8...@conference.freeswitch.org sip%3a...@conference.freeswitch.org
 iax:gu...@conference.freeswitch.org/888
 googletalk:conf+...@conference.freeswitch.orggoogletalk%3aconf%2b...@conference.freeswitch.org
 pstn:213-799-1400

 ___
 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] Conference users hear MOH until leader enters?

2009-05-26 Thread Stephen Crosby
Michael,

Pardon me for hopping on this thread, but can you explain more about this
new feature? I've been wanting something like this to apply different
behaviors for different conference members. Can this be used to provide a
'moderator' with different behaviors bound to DTMF keys than regular
callers?

--Stephen

On Tue, May 26, 2009 at 5:55 PM, Michael Collins m...@freeswitch.org wrote:



 On Tue, May 26, 2009 at 4:56 PM, Anthony Minessale 
 anthony.miness...@gmail.com wrote:

 the easiest way would be the new feature I added to 13442

 in the conference profile add

 param name=conference-flags value=wait-mod/

 to your profile

 and in your dialplan

 action application=set data=conference_member_flags=moderator/
 action application=conference data=1...@wideband/

 or

 action application=conference data=1...@wideband+flags{moderator}/


 Don't forget the wishlist and donate button on the main site


 And the wiki tax if you feel comfortable adding this to the wiki. If not
 let me know and I'll add it.
 -MC



 ___
 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] help with mod_conference stability

2009-05-14 Thread Stephen Crosby
I keep hearing that lua is lighter weight / more scalable than javascript.
I'd love to see some data that shows how big the difference really is. I
could port all my scripts from javascript to lua, but it would require a lot
of overhead (me learning lua + actually porting the scripts). I want to know
how much benefit there really is to that.

--Stephen

On Thu, May 14, 2009 at 10:01 AM, Brian West br...@freeswitch.org wrote:

 The script has a javascript interpreter allocated sitting there eating up
 ram for no reason... so to scale better its wise to exit the script and do
 your conference.
 Lua is lighter weight but still having the interpreter hang around when not
 needed isn't wise.

 /b

 On May 14, 2009, at 11:32 AM, Mike Fedyk wrote:

 Why is initiating a conference from a dial plan entry better than
 directly from an internal script?  Is there a page that details what
 is and isn't script abuse?

 On 5/5/09, Anthony Minessale anthony.miness...@gmail.com wrote:

 You should rule out the network problems first, which sound more likely.


 you can reduce the overuse of JS if you transfer the call to a regular

 extension with a dynamic regex.


 session.execute(transfer, conf-xyz);


 then make a regex in your xml dialplan to pick up ^conf-(.*) and execute

 conference $1


 Brian West
 br...@freeswitch.org

 -- Meet us at ClueCon!  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


___
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] help with mod_conference stability

2009-05-05 Thread Stephen Crosby
I was on this conference and there were 4 of us that got dropped at the same
time. By the way, these were all regular PSTN lines calling through our SIP
provider and being routed to our freeswitch instance which is being hosted
on a VPS.

When you say a device on my end terminated the call, do you mean our home
telephones which we used to dial in or the freeswitch box?

--Stephen

On Mon, May 4, 2009 at 11:22 PM, Jason White ja...@jasonjgw.net wrote:

 Stephen Crosby stevecr...@gmail.com wrote:
  Sorry for the extra messages, but I've just discovered something that
  probably helps pinpoint the problem:
  http://pastebin.freeswitch.org/8814
 
  It seems that the callers were disconnected, but freeswitch had to wait a
  timeout period before it actually hangs up which looks like about 5
 minutes.
  So I was disconnected from a conference, then I called back in, then
  freeswitch later hung up on the first call. This seems very much like a
  network problem.

 Yes, and it was the device at your end that terminated the call.

 I would start by setting up alarm pings (say, ping -a) on my local machine
 and
 listening for jitter and drop-outs.  If it turns out to be a network
 problem,
 then it's very likely an issue between you and your hosting provider at
 that
 point.


 ___
 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] help with mod_conference stability

2009-05-05 Thread Stephen Crosby
Forgot to add that my OS is Ubuntu 8.04LTS (hardy heron).

--Stephen

On Tue, May 5, 2009 at 7:42 AM, Stephen Crosby stevecr...@gmail.com wrote:

 I know I'm not on svn trunk, but this is a production server and it's just
 not feasible to update it constantly. I can update it though if you think I
 need to. I am routing callers to the conference app with javascript like
 this:
 session.execute(conference, xyz);
 Can you tell me more about the problems I could have?

 The machine running freeswitch has 1024MB memory and I'm not sure about the
 CPU since its a VPS.

 --Stephen

 On Tue, May 5, 2009 at 3:49 AM, Brian West br...@freeswitch.org wrote:

 First off you're not on SVN trunk secondly Are you executing the
 conference app inside your js file?  If so then there could be the problem!
  You have also forgotten to include anything about Distro, OS, CPU and
 Memory.
 /b

 On May 5, 2009, at 12:12 AM, Stephen Crosby wrote:

 We had our first big issues with our freeswitch system today. During at
 least 2 conferences, audio became jittery and there were three occasions
 where everyone was dropped from a conference. Even so, conference recording
 was not interrupted, and the freeswitch debug log doesn't show anything
 unusual.

 Our hardware monitoring software doesn't show any kind of unusual
 resources usage, and our web host claims there were no outages during the
 time when we were experiencing problems.

 We're currently running revision 12259.

 How should I proceed in diagnosing this issue?

 --Stephen


   Brian West
 br...@freeswitch.org

 -- Meet us at ClueCon!  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



___
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] javascript: session.recordFile

2009-04-21 Thread Stephen Crosby
You can do a timestamp comparison, but over some long recorded sessions (30+
minutes), I've run into some type of drift in the past that made this
method inaccurate enough for me to not use.

--Stephen

On Tue, Apr 21, 2009 at 11:06 AM, Michael Collins m...@freeswitch.orgwrote:

 Just curious - could you not set a variable with the value of getTime()
 right before recording starts and then compare that to getTime() as soon as
 the recording ends?

 -MC


 On Tue, Apr 21, 2009 at 10:58 AM, Jonas Gauffin 
 jonas.gauf...@gmail.comwrote:

 Yes, to be able to determine if it's too short or not.

 On Tue, Apr 21, 2009 at 7:01 PM, Michael Collins m...@freeswitch.orgwrote:



 On Tue, Apr 21, 2009 at 4:23 AM, Jonas Gauffin 
 jonas.gauf...@gmail.comwrote:

 I'm using session.recordFile in a javascript.
 How do I check the length of the recorded file?


 You mean once the file is recorded you want to know how many
 minutes/seconds long it is?

 -MC

 ___
 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


___
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] Recommended tools for creating/extending a sip test suite?

2009-04-14 Thread Stephen Crosby
It seems to me like the freeswitch platform itself would be a good place to
start. I haven't thoroughly thought this out, but maybe you could write a
test library using mod_language-of-your-choice designed to do human-like
things such as issuing dtmf tones, pausing, speaking, etc.

You could even run test scripts using the event socket (api commands) and
test the results by subscribing to related events. I'd love to hear about
what you come up with.

--Stephen

On Tue, Apr 14, 2009 at 8:59 PM, Mike Fedyk mfe...@mikefedyk.com wrote:

 Hi all,

 I'm looking for suggestions on which open source tools to use for creating
 (or extending if there is already a project for this) a sip test suite.

 I have already heard of sipp, but I want to know what others are using and
 how they go about this before starting from scratch myself.

 Some things I'd like to do:
  - Dialplan/ voice menu/provider/did testing: Call number, press 1, expect
 to receive call on another extension.  (kinda like expect)
  - Load testing

 Basically I want to be able to automate how a human may interact with my
 installation to reproduce bugs and make sure they don't come back.  That way
 I can make sure my changes (wherever they may be in my stack, dialplan,
 freeswitch, openser/kamailio/opensips, etc.).

 Any pointers and/or tips will be much appreciated.

 ___
 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] FreeSWITCH running on OpenWrt

2009-04-01 Thread Stephen Crosby
Sounds like a fun project. I wouldn't worry too much about the lack of local
storage space for voicemail. You can easily mount remote filesystems to
increase storage capacity. I've done so using openwrt for my own projects
using shfs, nfs, and next I want to try s3fs.

--Stephen

2009/4/1 Carlos Talbot carlos.tal...@gmail.com

 Until I figure out how much of a load it can handle for now it's just an
 experiment. :)

 I was motivated by two factors:

 - Kristin had ported FreeSWITCH to Astlinux, another uClib embedded
 environment. This sparked my interest in getting it to work on OpenWRT
 - Asterisk has been running on OpenWRT for a while so I wanted to see how
 difficult it would be to bring in FreeSWITCH.

 Carlos

 2009/4/1 Michael Collins m...@freeswitch.org

 2009/4/1 Carlos Talbot carlos.tal...@gmail.com


 Is there an interest in running FreeSWITCH on OpenWRT? I recently managed
 to compile and run a version for a MIPs based router, the Planex MZK-W04NU.
 This router has 32MB ram, 8MB flash, runs at 400MHz, draft N support
 (2.4GHZ), based on 2.6 kernels, a usb port and sells for about 60 bucks
 online. I used a 2GB USB flash drive for the FreeSWITCH directory and SWAP
 space.


 Just curious - is there a use case for doing this, other than the hobbyist
 who does it because it's cool?



 I was planning to setup a wiki page on compiling and configuring.


 Please do. We like to see all the different places and ways that people
 use FreeSWITCH.

 -MC




 regards,

 Carlos

 ___
 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


___
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] Prefered Linux Distro to run FS on

2009-03-06 Thread Stephen Crosby
I wasn't going to say anything, but since somebody already mentioned
ubuntu, I'll add that I'm using Hardy Heron LTS as well. I haven't had
a single issue with that, I think it was a great choice.

--Stephen

On Fri, Mar 6, 2009 at 2:01 PM, Kristian Kielhofner
kristian.kielhof...@gmail.com wrote:
 Why not just provide a kickstart file on freeswitch.org?  It's pretty
 easy to pass them to the installer over the network and/or add them
 onto existing ISOs and other bootable media...

 I'd be happy to write/maintain such a thing.  After all, I use them myself! ;)

 On Fri, Mar 6, 2009 at 9:00 AM, Anthony Minessale
 anthony.miness...@gmail.com wrote:
 We are considering asking CentOS to make a FS cut set of packages ideal
 for a telephony server with one install choice.



 --
 Kristian Kielhofner
 http://blog.krisk.org
 http://www.submityoursip.com
 http://www.astlinux.org
 http://www.star2star.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


___
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] Newbie's installation: Can't start FS at boot

2009-03-05 Thread Stephen Crosby
Your script at /etc/init.d/freeswitch is probably not referenced
anywhere in your init sequence. You should read some documentation on
the boot process for your system, which is probably something like
this: 
http://www.redhat.com/docs/manuals/linux/RHL-9-Manual/ref-guide/s1-boot-init-shutdown-sysv.html

Someone else might have more specifics for you.

--Stephen

On Thu, Mar 5, 2009 at 12:19 PM, Dyna Guy dyna...@gmail.com wrote:
 I am a newbie to FS and I want learn it. So I setup a Centos 5.2 (fresh
 install) and followed the instruction on the wiki installed the new
 Freeswitch v1.0.3.  After the installation I can start FS by issus command
 /usr/local/freeswitch/bin/freeswitch.

 After that I copied freeswitch.init.centos5 to /etc/init.d/freeswitch and
 chmod it to 755. Reboot the server and FS is not running.

 If I try the start up script:
 [r...@localhost build]# /etc/init.d/freeswitch start
 Starting freeswitch:   [  OK  ]
 [r...@localhost build]# /etc/init.d/freeswitch status
 freeswitch dead but subsys locked
 Did I miss somthing here? Please help. Thanks a lot.

 dynaguy





 Here is the copy of the origenal freeswitch.init.centos5
 
 [r...@localhost ~]# cat /etc/init.d/freeswitch
 #!/bin/bash
 #
 #   /etc/rc.d/init.d/freeswitch
 #
 #   The FreeSwitch Open Source Voice Platform
 #
 #  chkconfig: 345 89 14
 #  description: Starts and stops the freeswitch server daemon
 #  processname: freeswitch
 #  config: /usr/local/freeswitch/conf/freeswitch.conf
 #  pidfile: /usr/local/freeswitch/log/freeswitch.pid
 #
 # Source function library.
 . /etc/init.d/functions
 PROG_NAME=freeswitch
 PID_FILE=${PID_FILE-/usr/local/freeswitch/log/freeswitch.pid}
 FS_USER=${FS_USER-freeswitch}
 FS_FILE=${FS_FILE-/usr/local/freeswitch/bin/freeswitch}
 FS_HOME=${FS_HOME-/usr/local/freeswitch}
 LOCK_FILE=/var/lock/subsys/freeswitch
 FREESWITCH_ARGS=-nc
 RETVAL=0
 # Source options file
 if [ -f /etc/sysconfig/freeswitch ]; then
     . /etc/sysconfig/freeswitch
 fi
 # define any local shell functions used by the code that follows
 start() {
     echo -n Starting $PROG_NAME: 
     if [ -e $LOCK_FILE ]; then
     if [ -e $PID_FILE ]  [ -e /proc/`cat $PID_FILE` ]; then
     echo
     echo -n $$PROG_NAME is already running.;
     failure $$PROG_NAME is already running.;
     echo
     return 1
     fi
     fi
     cd $FS_HOME
     daemon --user $FS_USER --pidfile $PID_FILE $FS_FILE
 $FREESWITCH_ARGS $FREESWITCH_PARAMS /dev/null 21
     echo
     RETVAL=$?
     [ $RETVAL -eq 0 ]  touch $LOCK_FILE;
     echo
     return $RETVAL
 }
 stop() {
     echo -n Shutting down $PROG_NAME: 
     if [ ! -e $LOCK_FILE ]; then
     echo
     echo -n $cannot stop $PROG_NAME: $PROG_NAME is not running.
     failure $cannot stop $PROG_NAME: $PROG_NAME is not running.
     echo
     return 1;
     fi
     cd $FS_HOME
     $FS_FILE -stop  /dev/null 21
     killproc $PROG_NAME
     RETVAL=$?
     echo
     [ $RETVAL -eq 0 ]   rm -f $LOCK_FILE;
     return $RETVAL
 }
 rhstatus() {
     status $PROG_NAME;
 }
 case $1 in
     start)
     start
     ;;
     stop)
     stop
     ;;
     status)
     status $PROG_NAME
     RETVAL=$?
     ;;
     restart)
     stop
     start
     ;;
     reload)
 #    cause the service configuration to be reread, either with
 #    kill -HUP or by restarting the daemons, in a manner similar
 #    to restart above
     ;;
     condrestart)
     [ -f $PID_FILE ]  restart || :
     ;;
     *)
     echo Usage: $PROG_NAME {start|stop|status|reload|restart}
     exit 1
     ;;
 esac
 exit $RETVAL

 ___
 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] make freeswitch-snapshot

2009-03-05 Thread Stephen Crosby
I think you need to install the debian package 'unixodbc-dev'

--Stephen

On Thu, Mar 5, 2009 at 11:00 PM, Jason White ja...@jasonjgw.net wrote:
 mashudi mashudifl...@telkom.co.id wrote:
 i got error while conduct  ./make  freeswitch-snapshot on debian 2.6 x86
 here is the error :

 /usr/bin/ld: cannot find -lodbc

 Have you installed the ODBC library and its development headers? Are they the
 latest version?

 It's failing to find the ODBC library.


 ___
 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] js session.streamFile() interrupt slowness

2009-02-21 Thread Stephen Crosby
Sure, I've stripped down the script somewhat to something smaller that
still produces this effect and you can see it at:
http://pastebin.freeswitch.org/7388

The file sound 'VR1' continues to play for a short time after I
interrupt it with a DTMF event. It does interrupt, but it sounds a
little awkward because of the delay. I was probably wrong in my
estimate of the delay which seems to be about a full second, not two
or three. I'm hoping I can adjust it somehow to feel more immediate.
Any ideas?

--Stephen

On Fri, Feb 20, 2009 at 8:36 AM, Michael Collins m...@freeswitch.org wrote:
 On Thu, Feb 19, 2009 at 9:27 PM, Stephen Crosby stevecr...@gmail.com wrote:
 I have a few scripts that use the javascript
 session.streamFile('somefile.wav', onDtmf); where onDtmf is a function
 that returns false to interrupt the streaming file. There is a short
 delay between the time when I press a key and the time the file stops
 playing. Is there anything I can adjust that would affect that? It's
 only maybe 2-3 seconds, but it feels too long to me.

 --Stephen

 Could you pastebin your entire script plus the relevant dialplan
 entry? Also, could you tell us which operating system and FS revision?
 -MC

 ___
 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] js session.streamFile() interrupt slowness

2009-02-21 Thread Stephen Crosby
There was a small error in that last script I sent, please test using
this version: http://pastebin.freeswitch.org/7388

Thanks.

On Sat, Feb 21, 2009 at 11:31 AM, Stephen Crosby stevecr...@gmail.com wrote:
 Sure, I've stripped down the script somewhat to something smaller that
 still produces this effect and you can see it at:
 http://pastebin.freeswitch.org/7388

 The file sound 'VR1' continues to play for a short time after I
 interrupt it with a DTMF event. It does interrupt, but it sounds a
 little awkward because of the delay. I was probably wrong in my
 estimate of the delay which seems to be about a full second, not two
 or three. I'm hoping I can adjust it somehow to feel more immediate.
 Any ideas?

 --Stephen

 On Fri, Feb 20, 2009 at 8:36 AM, Michael Collins m...@freeswitch.org wrote:
 On Thu, Feb 19, 2009 at 9:27 PM, Stephen Crosby stevecr...@gmail.com wrote:
 I have a few scripts that use the javascript
 session.streamFile('somefile.wav', onDtmf); where onDtmf is a function
 that returns false to interrupt the streaming file. There is a short
 delay between the time when I press a key and the time the file stops
 playing. Is there anything I can adjust that would affect that? It's
 only maybe 2-3 seconds, but it feels too long to me.

 --Stephen

 Could you pastebin your entire script plus the relevant dialplan
 entry? Also, could you tell us which operating system and FS revision?
 -MC

 ___
 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] js session.streamFile() interrupt slowness

2009-02-21 Thread Stephen Crosby
Verry sorry for the list spam, this is the link to the corrected script:
http://pastebin.freeswitch.org/7389

--Stephen

On Sat, Feb 21, 2009 at 11:33 AM, Stephen Crosby stevecr...@gmail.com wrote:
 There was a small error in that last script I sent, please test using
 this version: http://pastebin.freeswitch.org/7388

 Thanks.

 On Sat, Feb 21, 2009 at 11:31 AM, Stephen Crosby stevecr...@gmail.com wrote:
 Sure, I've stripped down the script somewhat to something smaller that
 still produces this effect and you can see it at:
 http://pastebin.freeswitch.org/7388

 The file sound 'VR1' continues to play for a short time after I
 interrupt it with a DTMF event. It does interrupt, but it sounds a
 little awkward because of the delay. I was probably wrong in my
 estimate of the delay which seems to be about a full second, not two
 or three. I'm hoping I can adjust it somehow to feel more immediate.
 Any ideas?

 --Stephen

 On Fri, Feb 20, 2009 at 8:36 AM, Michael Collins m...@freeswitch.org wrote:
 On Thu, Feb 19, 2009 at 9:27 PM, Stephen Crosby stevecr...@gmail.com 
 wrote:
 I have a few scripts that use the javascript
 session.streamFile('somefile.wav', onDtmf); where onDtmf is a function
 that returns false to interrupt the streaming file. There is a short
 delay between the time when I press a key and the time the file stops
 playing. Is there anything I can adjust that would affect that? It's
 only maybe 2-3 seconds, but it feels too long to me.

 --Stephen

 Could you pastebin your entire script plus the relevant dialplan
 entry? Also, could you tell us which operating system and FS revision?
 -MC

 ___
 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] Error: eval_some_python() Error importing module

2009-01-22 Thread Stephen Crosby
The reason I'd like to see the examples isn't so I can have a basic
voicemail or IVR app, but so I can extend an example with my own
complicated domain logic.

--Stephen

On Wed, Jan 21, 2009 at 5:14 PM, Brian West br...@freeswitch.org wrote:
 Most if not all of this functionality is done with FreeSWITCH without
 any need for python in the first place.

 For example you don't use python for voicemail, conferences, tone
 generation but maybe IVR... which is what any of the languages are for.

 /b

 On Jan 21, 2009, at 7:00 PM, Stephen Crosby wrote:

 I'd like to see an example of recording voicemail and a good
 conference application, tone generation, just a good IVR example would
 be nice too.

 --Stephen


 ___
 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] Error: eval_some_python() Error importing module

2009-01-21 Thread Stephen Crosby
I'd like to see an example of recording voicemail and a good
conference application, tone generation, just a good IVR example would
be nice too.

--Stephen

On Wed, Jan 21, 2009 at 4:42 PM, Brian Deacon bdea...@highergear.com wrote:
 Well, rescuing someone from the evils of javascript cleans so many years
 off my time in purgatory that I couldn't possibly pass up the chance. :)

 But I'm still probably another week or two from qualifying as N00b.  I
 imagine I could probably handle transcoding javascript examples to
 python if it's mostly just a syntax issue, which I imagine is most
 cases.

 I could start whacking one out if someone told me which examples to
 steer away from because of javascript- or python-specific issues.

 Brian

 On Wed, 2009-01-21 at 15:45 -0800, Stephen Crosby wrote:
 I would love to see the documentation for python flourish. I would
 have chosen python for my recent development if I could have quickly
 figured out how to use it. I chose the javascript route instead
 because of all the examples on the wiki.

 --Stephen

 On Wed, Jan 21, 2009 at 3:33 PM, Michael Collins m...@freeswitch.org wrote:
  On Wed, Jan 21, 2009 at 2:40 PM, Brian Deacon bdea...@highergear.com 
  wrote:
  Greetings,
 
  Couldn't find anything on the wiki or in the mail archives.  (Let me
  know where you think a good home for this info might be on the wiki and
  I'd be more than happy to write something up in there.)
  Thanks, you're hired! :)
  We definitely need Python users to step up and help with the docs.
  There are only a few people so far who use Python so those who do use,
  and want to see it flourish, need to work on the documentation.
  Please start here:
  http://wiki.freeswitch.org/wiki/Mod_python
  Take it from there...
  -MC
 
  I'm guessing I haven't done everything necessary to enable python on my
  machine.  I have python-2.4.3 and python-devel 2.4.3-21 installed on the
  FS machine.
 
  Per the instructions, I uncommented the mod_python line from
  modules.conf and rebuilt my freeswitch instance.  Vanilla functionality
  is working.  I set PYTHONPATH to /usr/local/freeswitch/python before
  restarting the mod_python-enabled freeswitch (via modules.conf.xml)
 
  # echo $PYTHONPATH
  /usr/local/freeswitch/python
 
  # grep mod_python \
  /usr/local/freeswitch/conf/autoload_configs/modules.conf.xml
 load module=mod_python/
 
  # ls $PYTHONPATH
  bar.py  bar.pyc
 
  # cat $PYTHONPATH/bar.py
  stream.write(baz)
 
 
  The relevant entry in conf/dialplan/default.xml:
 extension name=Test_Simple_Python
 condition field=destination_number expression=^1235$
 action application=set data=foo=${python(bar)} /
 action application=bridge
  data={group_confirm_file=vm-hello,group_confirm_key=4,call_timeout=60}
  sofia/internal/1000,sofia/internal/1002 /
 /condition
 /extension
 
  (The bridge action is only there because it seemed unhappy unless it was
  going to actually try to do something.)
 
  The following output shows up in fs_cli when I dial 1235:
 
 
  2009-01-21 15:20:14 [DEBUG] switch_core_state_machine.c:152 
  switch_core_standard_on_execute() sofia/internal/1...@10.48.5.207 
  Execute set(foo=${python(bar)})
  2009-01-21 15:20:14 [NOTICE] mod_python.c:107 eval_some_python() 
  Invoking py module: bar
  2009-01-21 15:20:14 [ERR] mod_python.c:121 eval_some_python() Error 
  importing module
  2009-01-21 15:20:14 [DEBUG] switch_core_session.c:1254 
  switch_core_session_execute_application() 
  sofia/internal/1...@10.48.5.207 Expanded String set(foo=)
  2009-01-21 15:20:14 [DEBUG] mod_dptools.c:699 set_function() 
  sofia/internal/1...@10.48.5.207 SET [foo]=[UNDEF]
 
 
  So I'm guessing something dumb on my part.  But there are so many dumb 
  things I'm capable of doing...  :)
 
  TIA,
  Brian
 
 
  ___
  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


 ___
 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] Bridge destination returned from a python script?

2009-01-20 Thread Stephen Crosby
mod_socket

On Tue, Jan 20, 2009 at 5:28 PM, Brian Deacon bdea...@highergear.com wrote:
 Thanks for the quick turnaround, Michael,

 I'll check out mod_easyroute right away.  As to your other
 need-for-clarification:

 My other scenario is similar, but we need to externally signal the FS
  server to place a call to phone + extension, confirm it was connected,
  and then bridge it to a DID.  Is XmlRpc the best (only?) way to poke FS
  into doing something?

 When you say externally signal do you mean you have a 3rd party
 application (or something) that needs to talk to FS? Could you detail
 the scenario a bit more? I'm positive FS can do what you want but with
 more detail we can help you find the best way to do it.
 -MC


 So we'll have a browser-based app making REST calls to our java-based
 web server (tomcat).  The tomcat server makes a few decisions about what
 to do and then chooses among several actions which involve triggering
 some activity from the FS server on another physical machine (which will
 be behind the same firewall if that matters).

 For instance, a user would click a link on a webpage that would cause
 freeswitch to call the phone at their desk, have them press # or
 something to indicate they are a human and not an IVR, then dial another
 number to bridge that user to.

 I'm including my original question below in case you need to refer to
 it.

 Thanks again,
 Brian



 On Tue, 2009-01-20 at 07:36 -0800, Michael Collins wrote:
 On Mon, Jan 19, 2009 at 4:20 PM, Brian Deacon bdea...@highergear.com wrote:
  Greetings my soon-to-be-BFF's  :)
 
  After the last 6 weeks or so thrashing about in the land of Asterisk, I
  must say I'm quite impressed with what I'm learning about FreeSwitch.
 
  So the scenario I'm trying to deal with is bridging a call between two
  not-internal endpoints where the numbers to connect are determined by
  database-fed business logic.
 
  The recipe here is very close to what I need:
  http://wiki.freeswitch.org/wiki/Freeswitch_IVR_Originate#exec_in_answer_confirm
 
  Except that I'm a language snob and would greatly prefer python to
  javascript.  :)
 
  So my minor question is can this line:
  action application=set data=group_confirm_file=javascript test.js/
  Become this line:
  action application=set data=group_confirm_file=python foo.bar.baz/
 
  But javascript isn't a deal-breaker.  I have two bridging scenarios that
  were too tricky for me in asterisk land.  (And my apologies, I'm new to
  telephony, so I don't have the lingo down).  Our FS server would be
  reachable by multiple 800 numbers.  Based on the number that was dialed
  to reach our FS server, we would look up an external phone number +
  extension to be part 1 of a bridge (which we would use the
  group_confirm_file script to make sure we had gotten past the IVR).  So
  for that scenario, how would I accomplish something like:
  action application=bridge data=
  ${someVariableSetByScript}/
  Can my foo.bar.baz script make a session.setVariable call that I could
  drop into data=?
 

 If I understand your scenario correctly then I would say that your
 best bet would be the recently added mod_easyroute, which was designed
 specifically for this purpose. Check out this article and the related
 wiki page:
 http://www.freeswitch.org/node/158

  My other scenario is similar, but we need to externally signal the FS
  server to place a call to phone + extension, confirm it was connected,
  and then bridge it to a DID.  Is XmlRpc the best (only?) way to poke FS
  into doing something?

 When you say externally signal do you mean you have a 3rd party
 application (or something) that needs to talk to FS? Could you detail
 the scenario a bit more? I'm positive FS can do what you want but with
 more detail we can help you find the best way to do it.
 -MC

 
  Thanks muchly!
 
  Brian
 
 
 
 
  ___
  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


___
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

[Freeswitch-users] firing events from javascript - working example needed

2009-01-20 Thread Stephen Crosby
I noticed the wiki has an example of sending a custom event from
javascript: http://wiki.freeswitch.org/wiki/Javascript_Event , but I
can't make it work. It doesn't fail or cause an error. But I never see
an event on my listener script. Can someone confirm that this example
does in fact work? or provide me with one that does?

--Stephen

___
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] no file mod_spidermonkey_odbc.so

2009-01-07 Thread Stephen Crosby
I'm assuming you have your driver set up properly since you left that
part out, but I got mine working a few weeks ago and I'll show you
what I've got if it helps:

odbc.ini:
[freeswitch_ph]
Driver   = /usr/lib/odbc/libmyodbc.so
Description  = MyODBC 3.51 Driver DSN
SERVER   = localhost
PORT =
USER = freeswitch_ph
Password =
Database = freeswitch_ph
OPTION   = 3
SOCKET   =

somescript.js
use(ODBC);
var DSN = 'freeswitch_ph';
var DB_USER = 'freeswitch_ph';
var DB_PASS = '';
var db = new ODBC(DSN, DB_USER, DB_PASS);
db.connect();



On Wed, Jan 7, 2009 at 8:53 AM, fidibus83 fidibu...@aol.com wrote:
 Yes, but why isn't it found?



 My odbc.ini configuration:



 [fs01_odbc]

 Driver=MySQL

 SERVER=localhost

 PORT=3306

 DATABASE=freeswitch

 Socket = /var/lib/mysql/mysql.sock







 Javascript:



 …

 use(ODBC);

   var DSN=fs01_odbc;

   var DB_USER=X;

   var DB_PASS=Y;

   var db = new ODBC(DSN, DB_USER, DB_PASS);

   db.connect();

 …..



 

 Von: freeswitch-users-boun...@lists.freeswitch.org
 [mailto:freeswitch-users-boun...@lists.freeswitch.org] Im Auftrag von Ken
 Rice
 Gesendet: Mittwoch, 7. Januar 2009 17:42
 An: freeswitch-users@lists.freeswitch.org
 Betreff: Re: [Freeswitch-users] no file mod_spidermonkey_odbc.so



 Well your error tells you explicity DSN not found...

 

 From: fidibus83 fidibu...@aol.com
 Reply-To: freeswitch-users@lists.freeswitch.org
 Date: Wed, 7 Jan 2009 17:31:54 +0100
 To: freeswitch-users@lists.freeswitch.org
 Subject: Re: [Freeswitch-users] no file mod_spidermonkey_odbc.so

 I have another problem!

 I want to connect to a mysql database through javascript.

 I get this error:
 [ERR] switch_odbc.c:160 switch_odbc_handle_connect() STATE: IM002 CODE 0
 ERROR: [unixODBC] [Driver Manager]Data source name not found, and no default
 driver specified
 [ERR] mod_spidermonkey_odbc.c:233 odbc_exec() Database is not connected!
 [ERR] mod_spidermonkey_odbc.c:289 odbc_next_row() database is not connected!

 But when I test by running the utility isql the database is connected!

 What's going wrong?


 

 Von: freeswitch-users-boun...@lists.freeswitch.org
 [mailto:freeswitch-users-boun...@lists.freeswitch.org] Im Auftrag von Chris
 Danielson
 Gesendet: Mittwoch, 7. Januar 2009 16:39
 An: freeswitch-users@lists.freeswitch.org
 Betreff: Re: [Freeswitch-users] no file mod_spidermonkey_odbc.so

 Anytime.  Good luck.

 fidibus83 wrote:
 Sorry Chris, my mistake. Mod_spidermonkey_odbc.so does exist now.

 I wanted to said that I'm sorry for my stupid mistake that I uncomment the
 wrong thing.

 But thank you very much for your help!


 

 Von: freeswitch-users-boun...@lists.freeswitch.org
 [mailto:freeswitch-users-boun...@lists.freeswitch.org] Im Auftrag von Chris
 Danielson
 Gesendet: Mittwoch, 7. Januar 2009 16:17
 An: freeswitch-users@lists.freeswitch.org
 Betreff: Re: [Freeswitch-users] no file mod_spidermonkey_odbc.so

 Fidibus,
 Make sure that you also have installed unixodbc.  As shown here:
 http://wiki.freeswitch.org/wiki/Mod_spidermonkey_odbc#unixodbc

 Kind Regards,
 Chris

 fidibus83 wrote:
 Oh, I'm sorry.

 Should I comment mod_spidermonkey_odbc in root/freeswitch/build/modules.conf
 again?


 

 Von: freeswitch-users-boun...@lists.freeswitch.org
 [mailto:freeswitch-users-boun...@lists.freeswitch.org] Im Auftrag von
 Michael Jerris
 Gesendet: Mittwoch, 7. Januar 2009 15:15
 An: freeswitch-users@lists.freeswitch.org
 Betreff: Re: [Freeswitch-users] no file mod_spidermonkey_odbc.so

 you would need to modify the modules.conf in the root of the source dir, not
 in the build dir.




 ___
 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] using spidermonkey to get remote http status codes

2009-01-05 Thread Stephen Crosby
I've been working with mod_spidermonkey and an external api that I've
set up. I need to determine the status code of http responses. I've
tried fetchUrl() and fetchUrlHash(), but neither seems to get that
status code. Any suggestions?

--Stephen

___
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] running custom script with bind_meta_app

2008-12-15 Thread Stephen Crosby
I just want to listen for some DTMF sequence while in a conference.
The conference host should be able to enter the sequence at any time
(and any number of times) to run a custom script. I've already written
one in javascript, but I can rewrite it in another language if it's
easier.

On Mon, Dec 15, 2008 at 7:09 AM, Brian West br...@freeswitch.org wrote:
 What are you wanting to accomplish first?
 /b
 On Dec 15, 2008, at 1:32 AM, Stephen Crosby wrote:

 I'm Stephen Crosby, and I've just started working with freeswitch.
 It's been great so far.

 I want to run a custom script inside a conference when a DTMF sequence
 is entered. I found bind_meta_app and thought it would be perfect, but
 I can't seem to get it to work. When I dial-in and press *8, I get no
 debugging output at all. When I press another sequence like *9 for
 instance, I get: [WARNING] switch_ivr_async.c:1429 meta_on_dtmf()
 sofia/external/5593495...@sip.gafachi.com Ignoring meta digit '9' not
 mapped. The script I wrote has been tested with jsrun script.js from
 the command line and it does work. I've got the debugging level all
 the way up and there's just not much for me to go on. Any help would
 be greatly appreciated.

 extension name=gafachi-DID1
  condition field=destination_number expression=^xxx$
action application=answer/
action application=bind_meta_app data=8 ab s
 javascript::$${base_dir}/scripts/script.js/
action application=conference data=3...@default/
  /condition
 /extension

 --Stephen

 ___
 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] running custom script with bind_meta_app

2008-12-14 Thread Stephen Crosby
I'm Stephen Crosby, and I've just started working with freeswitch.
It's been great so far.

I want to run a custom script inside a conference when a DTMF sequence
is entered. I found bind_meta_app and thought it would be perfect, but
I can't seem to get it to work. When I dial-in and press *8, I get no
debugging output at all. When I press another sequence like *9 for
instance, I get: [WARNING] switch_ivr_async.c:1429 meta_on_dtmf()
sofia/external/5593495...@sip.gafachi.com Ignoring meta digit '9' not
mapped. The script I wrote has been tested with jsrun script.js from
the command line and it does work. I've got the debugging level all
the way up and there's just not much for me to go on. Any help would
be greatly appreciated.

extension name=gafachi-DID1
  condition field=destination_number expression=^xxx$
action application=answer/
action application=bind_meta_app data=8 ab s
javascript::$${base_dir}/scripts/script.js/
action application=conference data=3...@default/
  /condition
/extension

--Stephen

___
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