I’m not able to compile FS where I am, but the “-ERR no reply” response is due to the fact that the api returns no output string, this can be solved by adding a line: “stream->write_function(stream,”+OK\n”);” just after inserting the DTMF before the “goto done;”

 

I haven’t realized this because I use bgapi instead of api to execute it.

 

It should work, I use it exactly as you want to do successfully.

 

Bye.

 

Cesar Cepeda.

 

De: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] En nombre de Baskar
Enviado el: Thursday, November 20, 2008 4:27 AM
Para: freeswitch-users@lists.freeswitch.org
Asunto: Re: [Freeswitch-users] DTMF

 

Hi,

I have added the line in mod_commands.c file and compiled the file by make and make install

After that i have tested the barging. i get the same error

api originate sofia/internal/1000%172.20.176.31 &bridge(sofia/default/9841799874@172.20.176.254)

Content-Type: api/response
Content-Length: 41

+OK e4591865-a652-4f47-a5f0-d3cb01116441
api originate sofia/internal/1002%172.20.176.31 &eavesdrop(e4591865-a652-4f47-a5f0-d3cb01116441)

Content-Type: api/response
Content-Length: 41

+OK 738003e0-e90c-4816-9375-1a239b8d82a2
api uuid_send_dtmf 738003e0-e90c-4816-9375-1a239b8d82a2 3 to

Content-Type: api/response
Content-Length: 14

-ERR no reply
api uuid_send_dtmf 738003e0-e90c-4816-9375-1a239b8d82a2 3 from

Content-Type: api/response
Content-Length: 14

-ERR no reply
api uuid_send_dtmf 738003e0-e90c-4816-9375-1a239b8d82a2 3 both

Content-Type: api/response
Content-Length: 14

-ERR no reply

i Have attached the mod_commands.c file in this mail.

can to correct me where i am wrong

--
Warm Regards,
N.Baskar