[Freeswitch-users] DTMF
Baskar
yudha2008 at gmail.com
Fri Nov 21 06:59:36 PST 2008
Hi cesar,
If i have added these line in mod_commands.c
"stream->write_function(stream,"+OK\n");" just after inserting the DTMF
before the "goto done;"
When i compile by command *make* it get these error
*Compiling mod_commands.c...
mod_commands.c: In function âunload_functionâ:
mod_commands.c:869: error: incompatible type for argument 3 of
âswitch_loadable_module_unload_moduleâ
mod_commands.c:869: error: too few arguments to function
âswitch_loadable_module_unload_moduleâ
mod_commands.c: In function âreload_functionâ:
mod_commands.c:891: error: incompatible type for argument 3 of
âswitch_loadable_module_unload_moduleâ
mod_commands.c:891: error: too few arguments to function
âswitch_loadable_module_unload_moduleâ
cc1: warnings being treated as errors
mod_commands.c: In function âtone_detect_session_functionâ:
mod_commands.c:1089: warning: passing argument 6 of
âswitch_ivr_tone_detect_sessionâ makes integer from pointer without a cast
mod_commands.c:1089: error: too few arguments to function
âswitch_ivr_tone_detect_sessionâ
mod_commands.c: In function âuuid_send_dtmf_functionâ:
mod_commands.c:2649: error: âstrâ undeclared (first use in this function)
mod_commands.c:2649: error: (Each undeclared identifier is reported only
once
mod_commands.c:2649: error: for each function it appears in.)
mod_commands.c:2649: error: expected â)â before string constant
mod_commands.c:2649: error: too few arguments to function
âstream->write_functionâ
make[5]: *** [mod_commands.o] Error 1
make[4]: *** [all] Error 1
make[3]: *** [mod_commands-all] Error 1
make[2]: *** [all-recursive] Error 1
Making all in build
+-------- FreeSWITCH Build Complete -----------+
+ FreeSWITCH has been successfully built. +
+ Install by running: +
+ +
+ make install +
+----------------------------------------------+
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
*
*And another thing through default.xml barging is working fine and dtmf
values also work fine
But through api command i get the same error*
api originate sofia/internal/1000%172.20.176.31 &bridge(sofia/default/
9841799874 at 172.20.176.254)
Content-Type: api/response
Content-Length: 41
+OK 81725d6b-c22f-4fb9-9e68-3e97eb1a3d4e
api originate sofia/internal/1002%172.20.176.31&eavesdrop(81725d6b-c22f-4fb9-9e68-3e97eb1a3d4e)
Content-Type: api/response
Content-Length: 41
+OK 1d0edac2-b548-4b02-80c3-46d7a1175845
api uuid_send_dtmf 1d0edac2-b548-4b02-80c3-46d7a1175845 2 to
Content-Type: api/response
Content-Length: 14
api uuid_send_dtmf 1d0edac2-b548-4b02-80c3-46d7a1175845 1 both
Content-Type: api/response
Content-Length: 14
-ERR no reply
api uuid_send_dtmf 1d0edac2-b548-4b02-80c3-46d7a1175845 1 from
Content-Type: api/response
Content-Length: 14
-ERR no reply
Correct me where i am wrong.
Thanks for the reply.
--
Warm Regards,
N.Baskar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20081121/16de7ead/attachment-0002.html
More information about the FreeSWITCH-users
mailing list