Hi cesar,<br><br> If i have added these line in mod_commands.c<br><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">"stream->write_function(stream,"+OK\n");" just after inserting the
DTMF before the "goto done;"</span><br><br>When i compile by command <b>make</b> it get these error<br><br><b>Compiling mod_commands.c...<br>mod_commands.c: In function âunload_functionâ:<br>mod_commands.c:869: error: incompatible type for argument 3 of âswitch_loadable_module_unload_moduleâ<br>
mod_commands.c:869: error: too few arguments to function âswitch_loadable_module_unload_moduleâ<br>mod_commands.c: In function âreload_functionâ:<br>mod_commands.c:891: error: incompatible type for argument 3 of âswitch_loadable_module_unload_moduleâ<br>
mod_commands.c:891: error: too few arguments to function âswitch_loadable_module_unload_moduleâ<br>cc1: warnings being treated as errors<br>mod_commands.c: In function âtone_detect_session_functionâ:<br>mod_commands.c:1089: warning: passing argument 6 of âswitch_ivr_tone_detect_sessionâ makes integer from pointer without a cast<br>
mod_commands.c:1089: error: too few arguments to function âswitch_ivr_tone_detect_sessionâ<br>mod_commands.c: In function âuuid_send_dtmf_functionâ:<br>mod_commands.c:2649: error: âstrâ undeclared (first use in this function)<br>
mod_commands.c:2649: error: (Each undeclared identifier is reported only once<br>mod_commands.c:2649: error: for each function it appears in.)<br>mod_commands.c:2649: error: expected â)â before string constant<br>mod_commands.c:2649: error: too few arguments to function âstream->write_functionâ<br>
make[5]: *** [mod_commands.o] Error 1<br>make[4]: *** [all] Error 1<br>make[3]: *** [mod_commands-all] Error 1<br>make[2]: *** [all-recursive] Error 1<br>Making all in build<br> +-------- FreeSWITCH Build Complete -----------+<br>
+ FreeSWITCH has been successfully built. +<br> + Install by running: +<br> + +<br> + make install +<br> +----------------------------------------------+<br>
make[1]: *** [all-recursive] Error 1<br>make: *** [all] Error 2<br></b><br><br><b style="color: rgb(255, 102, 102);">And another thing through default.xml barging is working fine and dtmf values also work fine <br>But through api command i get the same error</b><br>
<br>api originate sofia/internal/1000%<a href="http://172.20.176.31">172.20.176.31</a> &bridge(sofia/default/<a href="mailto:9841799874@172.20.176.254">9841799874@172.20.176.254</a>)<br><br>Content-Type: api/response<br>
Content-Length: 41<br><br>+OK 81725d6b-c22f-4fb9-9e68-3e97eb1a3d4e<br>api originate sofia/internal/1002%<a href="http://172.20.176.31">172.20.176.31</a> &eavesdrop(81725d6b-c22f-4fb9-9e68-3e97eb1a3d4e)<br><br>Content-Type: api/response<br>
Content-Length: 41<br><br>+OK 1d0edac2-b548-4b02-80c3-46d7a1175845<br>api uuid_send_dtmf 1d0edac2-b548-4b02-80c3-46d7a1175845 2 to<br><br>Content-Type: api/response<br>Content-Length: 14<br><br>api uuid_send_dtmf 1d0edac2-b548-4b02-80c3-46d7a1175845 1 both<br>
<br>Content-Type: api/response<br>Content-Length: 14<br><br>-ERR no reply<br><br>api uuid_send_dtmf 1d0edac2-b548-4b02-80c3-46d7a1175845 1 from<br><br>Content-Type: api/response<br>Content-Length: 14<br><br>-ERR no reply<br>
<br>Correct me where i am wrong.<br><br>Thanks for the reply.<br>-- <br>Warm Regards,<br>N.Baskar<br><br>