[Freeswitch-users] overloaded 'CoreSession_execute'

Damon Brown damon at technicate.com
Mon Oct 20 14:36:43 PDT 2008

Hello All,
I created a lua app that "bridges" calls based on numbers entered.  The 
following was my direction with the code:

digits = session:playAndGetDigits(1, 10, 10, 5000, "#", "dialno.wav", 
"ivr-imsorry.wav", "\\d+")
freeswitch.consoleLog("info", "Got dtmf: ".. digits .."\n");
cmd = "sofia/gateway/broadvox/1" .. digits .. "@broadvox";
freeswitch.consoleLog("info", "Command: ".. cmd .."\n");
session.execute("bridge", cmd)

What Im getting is the following:

2008-10-20 21:30:52 [WARNING] switch_core_file.c:111 
switch_core_perform_file_open() Sample rate doesn't match
2008-10-20 21:30:52 [NOTICE] switch_resample.c:78 
switch_resample_create() Activate Resampler 22050->8000 0.362812
2008-10-20 21:31:04 [INFO] switch_cpp.cpp:1084 console_log() Got dtmf: 
2008-10-20 21:31:04 [INFO] switch_cpp.cpp:1084 console_log() Command: 
sofia/gateway/broadvox/16193413506 at broadvox
2008-10-20 21:31:04 [ERR] mod_lua.cpp:177 lua_parse_and_execute() No 
matching function for overloaded 'CoreSession_execute'
stack traceback:
        [C]: in function 'execute'
        /usr/local/freeswitch/scripts/ivr.lua:5: in main chunk
2008-10-20 21:31:04 [NOTICE] switch_core_state_machine.c:160 
switch_core_standard_on_execute() Hangup sofia/external/19166018190 
2008-10-20 21:31:04 [NOTICE] switch_core_session.c:833 
switch_core_session_thread() Session 97 (sofia/external/19166018190) Ended

Is there an issue with lua bridging to an external number?


-------------- next part --------------
A non-text attachment was scrubbed...
Name: damon.vcf
Type: text/x-vcard
Size: 290 bytes
Desc: not available
Url : http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20081020/fe0a728f/attachment-0002.vcf 

More information about the FreeSWITCH-users mailing list