Re: [Freeswitch-users] Question about play_and_get_digits in mod_dptools

2009-04-12 Thread Diego Viola
I just added this:

http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_play_and_get_digits

Diego

On Sat, Apr 11, 2009 at 11:47 PM, Diego Viola diego.vi...@gmail.com wrote:

 Mike just answered.

 23:45  MikeJ diegoviola: the syntax is documented
 23:45  MikeJ SWITCH_ADD_APP(app_interface, play_and_get_digits, Play
 and get Digits, Play and get Digits,
 23:45  MikeJ    play_and_get_digits_function, min max tries
 timeout terminators file invalid_file var_name regexp,
 SAF_NONE);

 Thanks guys.

 Diego


 On Sat, Apr 11, 2009 at 10:38 PM, Diego Viola diego.vi...@gmail.comwrote:

 If you give me some examples of how to use play_and_get_digits in
 mod_dptools I will document it here.


 http://wiki.freeswitch.org/index.php?title=Misc._Dialplan_Tools_play_and_get_digits

 Diego


 On Sat, Apr 11, 2009 at 10:36 PM, Diego Viola diego.vi...@gmail.comwrote:

 Hi all,

 I want to use play_and_get_digits from mod_dptools and have some
 questions about it.

 I have used playAndGetDigits() in Lua but I see the syntax in mod_dptools
 is a bit different and I got a bit confused.

 I see the syntax in the play_and_get_digits from the mod_dptools is
 something like this:

 switch_play_and_get_digits(session, min_digits, max_digits,
 max_tries, timeout, valid_terminators,

 prompt_audio_file, bad_input_audio_file, var_name, digit_buffer,
 sizeof(digit_buffer), digits_regex}

 Can you please explain to me what the session parameter is? And will this
 allow me to use a phrase macro so I can call my IVR instead of calling a
 regular file?

 This is how I use the playAndGetDigits in Lua:

 digits = session:playAndGetDigits(2, 5, 3, 7000, #, phrase:rac_demo,
 , \\d+);

 I call a phrase macro instead of playing a file, can I do the same with
 play_and_get_digits from mod_dptools? and please explain me what the session
 parameter in play_and_get_digits is.

 Thanks,

 Diego




___
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] mod_opal and DTMF...

2009-04-12 Thread Peter Olsson
Thanks,

I tried latest trunk, but still no success.. :(

Peter


On 09-04-11 18.30, Anthony Minessale anthony.miness...@gmail.com wrote:

see if it works in latest trunk please.


On Fri, Apr 10, 2009 at 3:46 AM, Peter Olsson 
peter.ols...@visionutveckling.se wrote:
When dialing in to FreeSWITCH from a h323 client, FreeSWITCH doesn't seem to 
detect DTMF. I'm not sure if this is a setting somewhere in the config files, 
or if it's a bug. The test scenario is simple - use the default FreeSWITCH 
config, dial in to voicemail (4000) and try to log in. It doesn't detect any 
DTMF tones.

Regards,

Peter Olsson

___
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] ekiga and freeswitch

2009-04-12 Thread e schmidbauer
I am running FreeSWITCH Version 1.0.3 on a centos 5.2 x64 server and
ekiga 3.2.0 on a client computer.
I am able to register the ekiga client with the freeswitch server but
when I dial an extension to join a conference I get the following
error message:
[ERR] switch_core_io.c:327 switch_core_session_read_frame() Codec RAW
Signed Linear (16 bit) decoder error!
I have the celt codec loaded on both the server and the client
computer. This is the full output when dialing an extension:

2009-04-12 12:56:34 [INFO] mod_dialplan_xml.c:233 dialplan_hunt()
Processing joseph schmidbauer-4800 in context default
2009-04-12 12:56:34 [INFO] mod_sofia.c:1301 sofia_receive_message()
Asked to send early media by sofia/internal/j...@192.168.1.125
2009-04-12 12:56:34 [INFO] mod_sofia.c:1342 sofia_receive_message() Ring SDP:
v=0
o=FreeSWITCH 1239529036 1239529037 IN IP4 192.168.1.125
s=FreeSWITCH
c=IN IP4 192.168.1.125
t=0 0
m=audio 26358 RTP/AVP 116 101
a=rtpmap:116 CELT/48000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=silenceSupp:off - - - -
a=ptime:10
a=sendrecv

2009-04-12 12:56:34 [NOTICE] mod_sofia.c:1345 sofia_receive_message()
Pre-Answer sofia/internal/j...@192.168.1.125!
2009-04-12 12:56:34 [NOTICE] mod_conference.c:1934
conference_loop_output() Channel [sofia/internal/j...@192.168.1.125]
has been answered
warning: decode error
[ERR] switch_core_io.c:327 switch_core_session_read_frame() Codec RAW
Signed Linear (16 bit) decoder error!
[NOTICE] switch_core_state_machine.c:168
switch_core_standard_on_execute() Hangup
sofia/internal/j...@192.168.1.125 [CS_EXECUTE] [NORMAL_CLEARING]
2009-04-12 13:05:14 [NOTICE] switch_core_session.c:970
switch_core_session_thread() Session 4
(sofia/internal/j...@192.168.1.125) Ended
2009-04-12 13:05:14 [NOTICE] switch_core_session.c:972
switch_core_session_thread() Close Channel
sofia/internal/j...@192.168.1.125 [CS_HANGUP]

Not sure if this is a bug in the program or just in my setup.
I've tried using the svn version of freeswitch (as of yesterday) and i
got the exact same error. Any input would be appreciated. Thanks!

___
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] ekiga and freeswitch

2009-04-12 Thread Brian West
Collect a full sip trace and FULL console debug.  Put it on our  
pastebin... Chances are Ekiga is doing something stupid... it usually  
does silly things.  Also are you on SVN trunk?

/b

On Apr 12, 2009, at 12:11 PM, e schmidbauer wrote:

 Not sure if this is a bug in the program or just in my setup.
 I've tried using the svn version of freeswitch (as of yesterday) and i
 got the exact same error. Any input would be appreciated. Thanks!


___
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] Can gateways be configured on a per user basis?

2009-04-12 Thread Eric Chamberlain
Hello,

I'm exploring the capabilities of FreeSwitch and have some questions:

  Can gateways be configured on a per user basis?

A user needs to be limited to only their own gateways and other users  
can't user their gateway.

Something like:

User 1 has two gateways -  VoIP provider A and VoIP provider B
User 2 also has two gateways - VoIP provider A and VoIP provider C
User 3 has ten gateways
User 4 has one gateway
etc.

Is it possible to have some gateway settings global and some user  
specific, say proxy and port info global, but username and password  
are specific to each user?

Is it also possible to specify on a per user basis whether the user's  
gateway will register for the provider?  Using the example above, User  
1 and User 2 would both register with VoIP provider A.
And can that registration happen even if User 1 or User 2 don't have  
any SIP endpoints registered with FreeSwitch?

--
Eric Chamberlain



___
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] Replace sqlite with couchDB?

2009-04-12 Thread Nicolas Brenner
Hi, I am not very familiar with FS internals, but I recently found this
new db engine called couchDB. Looks pretty interesting, and its main focus
is scalability.
Has anybody played with couchDB? does it make sense to replace sqlite with
couchDB in FS?

Here's a link to the project homepage:
- http://couchdb.apache.org/

And here's a video of a presentation given by one of the lead programmers:
- http://www.vimeo.com/1992869
___
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] Replace sqlite with couchDB?

2009-04-12 Thread Matthew Fong
Hi Nicolas,
Just off the top of my head, but I think couchDB is rather large compared to
sqlite, and I think it's also geared more towards
storing dynamic datasets...rather ones that can be structured...like FS
calling data can.

But I might be wrong :)
your buddy.

--matt

On Mon, Apr 13, 2009 at 12:00 PM, Nicolas Brenner nico...@medularis.comwrote:

 Hi, I am not very familiar with FS internals, but I recently found this
 new db engine called couchDB. Looks pretty interesting, and its main focus
 is scalability.
 Has anybody played with couchDB? does it make sense to replace sqlite with
 couchDB in FS?

 Here's a link to the project homepage:
 - http://couchdb.apache.org/

 And here's a video of a presentation given by one of the lead programmers:
 - http://www.vimeo.com/1992869




 ___
 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] Replace sqlite with couchDB?

2009-04-12 Thread Nicolas Brenner
Well, if it's too large compared to sqlite maybe it doesn't make sense. But
I was thinking calling data is not always fixed. Depending on what you use
FS for, you might want to get a CDR with many different data linked to each
call, even different kinds of data linked to different calls, that would
make each call very different and variable in its structure, which would fit
a document db model.

Thinking a bit more now, since couchdb is a document-based DB, it might be
good for configuration-generating applications, like the ones consumed by
xml_curl. These are external applications, yet they are still very closely
related to FS, and might be able to benefit from using something like
couchdb.

On Mon, Apr 13, 2009 at 1:06 AM, Matthew Fong mattdf...@gmail.com wrote:

 Hi Nicolas,
 Just off the top of my head, but I think couchDB is rather large compared
 to sqlite, and I think it's also geared more towards
 storing dynamic datasets...rather ones that can be structured...like FS
 calling data can.

 But I might be wrong :)
 your buddy.

 --matt

 On Mon, Apr 13, 2009 at 12:00 PM, Nicolas Brenner 
 nico...@medularis.comwrote:

 Hi, I am not very familiar with FS internals, but I recently found this
 new db engine called couchDB. Looks pretty interesting, and its main focus
 is scalability.
 Has anybody played with couchDB? does it make sense to replace sqlite with
 couchDB in FS?

 Here's a link to the project homepage:
 - http://couchdb.apache.org/

 And here's a video of a presentation given by one of the lead programmers:
 - http://www.vimeo.com/1992869




 ___
 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] Replace sqlite with couchDB?

2009-04-12 Thread Jason White
Nicolas Brenner nico...@medularis.com wrote:
 Hi, I am not very familiar with FS internals, but I recently found this
 new db engine called couchDB. Looks pretty interesting, and its main focus
 is scalability.
 Has anybody played with couchDB? does it make sense to replace sqlite with
 couchDB in FS?

I think a lot of people would object to replacing a small database such as
SQLite, which is easily integrated into the FreeSWITCh source code, with an
Erlang application. Somehow, I don't see FreeSWITCH users accepting all of the
dependencies that would bring, unless they're already using the Erlang module
for other reasons. However, if it would be of benefit to Erlang users, I'm
sure the FreeSWITCH developers would gladly accept a module.

There are lots of databases out there, for example, http://monetdb.cwi.nl/ to
mention just one that a Web search located for me.

Which ones get supported depends on whether anyone is sufficiently interested
to write modules for them.

PostGRESQL and MySQL are already on the list, notably.


___
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