Hi, In barging if we want to pass the DTMF signals. For example in barging - 2 to speak with the uuid - 1 to speak with the other half - 3 to engage a three way - 0 to restore eavesdrop. - * to next channel. I want pass these DTMF signals through event socket api uuid_send_dtmf <uuid> <dtmf_data> i did not know what is dtfm_data if dtmf_data is these DTMF signals values api uuid_send_dtmf b3df12bf-35c6-4a02-abaa-770c0d7bf358 *2* *output:* * Content-Type: api/response Content-Length: 14 -ERR no reply* I want to know what is dtmf_data? Any one correct me to solve my problem. -- Warm Regards, N.Baskar
Hi, I want to pass the DTMF digits through api command i find the api command *api uuid_send_dtmf* <*uuid*> <dtmf_data> I just want to know what is <dtmf_data> what is the value to pass in that parameter Thanks in advance -- Warm Regards, N.Baskar
<dtmf_data> == The digits you wish to pass. Tip... try then ask ;) /b On Nov 17, 2008, at 5:33 AM, Baskar wrote:
Hi,
I want to pass the DTMF digits through api command
i find the api command api uuid_send_dtmf <uuid> <dtmf_data>
I just want to know what is <dtmf_data> what is the value to pass in that parameter
Thanks in advance
-- Warm Regards, N.Baskar
Hi Baskar, I assume the dtmf_data is a string of one or more dtmf digits. So for example: "1" or "*123#" Why don't you try it on the console and see what you get? (Please anyone correct me if I'm wrong.) Cheers, Birgit On 17/11/08 11:33, Baskar wrote:
Hi,
I want to pass the DTMF digits through api command
i find the api command *api uuid_send_dtmf* <*uuid*> <dtmf_data>
I just want to know what is <dtmf_data> what is the value to pass in that parameter
Thanks in advance -- Warm Regards, N.Baskar
-- -- Birgit Arkesteijn, birgit@westhawk.co.uk, -- Westhawk Ltd, Albion Wharf, 19 Albion Street, Manchester M1 5LN, UK -- Company no: 1769350 -- Registered Office: -- 15 London Road, Stockton Heath, Warrington WA4 6SJ. UK. -- tel.: +44 (0)161 237 0660 -- <URL: http://www.westhawk.co.uk>
Hi, i have tried it before itself first i pass one digit api uuid_send_dtmf c08f77be-fbed-44c3-a2a7-8650d88b0e33 *2 * * output:* Content-Type: api/response Content-Length: 14 -ERR no reply Then i passed all the values in the barging api uuid_send_dtmf baf82956-111d-4cd8-9568-47010ac8bd20 *2130** *output:* Content-Type: api/response Content-Length: 14 -ERR no reply Here i get only the beep sound for each values and error message as a output Thanks for the reply and correct me where i am work Thanks in advance. -- Warm Regards, N.Baskar
Hi Brain, I am working on DTMF signals during *eavesdrop* and in* CONFERENCE * DTMF signal is *not working* through* even socket api command * I tried in conference also when we manually done in softphone it work . when i press the # button it hangup and * for mute etc. it works fine but when i pass these through event socket it does not work why????? if i pass the DTMF digits in api command it receive a beep sound but the process is not done. *i tried i n conference the output is :* api conference 3001 dtmf 15 # Content-Type: api/response Content-Length: 16 OK sent # to 15 15 is member id # is to hangup but it does not get hangup through api command * In barging also same problem * api uuid_send_dtmf f7666a65-5fc4-4199-bb6c-95a5e22d4515 "3210*" Content-Type: api/response Content-Length: 14 -ERR no reply I get the beep sound and there is no process done what should be done please guide me. Thanks in advance. -- Warm Regards, N.Baskar
On Nov 17, 2008, at 9:18 PM, Baskar <yudha2008@gmail.com> wrote:
Hi Brain,
Hey, the guy is smart but his name ain't Brain!
I am working on DTMF signals during eavesdrop and in CONFERENCE
DTMF signal is not working through even socket api command
I tried in conference also when we manually done in softphone it work . when i press the # button it hangup and * for mute etc. it works fine but when i pass these through event socket it does not work why?????
if i pass the DTMF digits in api command it receive a beep sound but the process is not done.
i tried i n conference the output is :
api conference 3001 dtmf 15 #
Content-Type: api/response Content-Length: 16
OK sent # to 15
15 is member id # is to hangup but it does not get hangup through api command
In barging also same problem
api uuid_send_dtmf f7666a65-5fc4-4199-bb6c-95a5e22d4515 "3210*"
Content-Type: api/response Content-Length: 14
-ERR no reply
I get the beep sound and there is no process done
what should be done please guide me.
Thanks in advance.
-- Warm Regards, N.Baskar
_______________________________________________ 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
Hi, I am working on Dtmf signal on barging I have added these line to default.xml <extension name="global" continue="true"> <condition> <action application="info"/> <action application="db" data="insert/spymap/${caller_id_number}/${uuid}"/> <action application="db" data="insert/last_dial/${caller_id_number}/${destination_number}"/> <action application="db" data="insert/last_dial/global/${uuid}"/> </condition> </extension> <extension name="eavesdrop"> <condition field="destination_number" expression="^88(.*)$|^\*0(.*)$"> <action application="answer"/> <action application="eavesdrop" data="${db(select/spymap/$1)}"/> </condition> </extension> i eavesdrop on extension 1003 by dialing 881003 1003 is connected to mobile no but when i dial 881003 it get hangup i have attached the full default.xml separately.barging is not working through default.xml And another thing DTMF signal is *not working* through* even socket api command * I tried in conference also when we manually done in softphone it work . when i press the # button it hangup and * for mute etc. it works fine but when i pass these through event socket it does not work why????? if i pass the DTMF digits in api command it receive a beep sound but the process is not done. *i tried i n conference the output is :* api conference 3001 dtmf 15 # Content-Type: api/response Content-Length: 16 OK sent # to 15 15 is member id # is to hangup but it does not get hangup through api command * In barging also same problem * api uuid_send_dtmf f7666a65-5fc4-4199-bb6c-95a5e22d4515 "3210*" Content-Type: api/response Content-Length: 14 -ERR no reply I get the beep sound and there is no process done what should be done please guide me. -- Warm Regards, N.Baskar
These aren't inserting 1003 as the caller_id_number are they? /b On Nov 18, 2008, at 5:19 AM, Baskar wrote:
<action application="db" data="insert/spymap/$ {caller_id_number}/${uuid}"/> <action application="db" data="insert/last_dial/$ {caller_id_number}/${destination_number}"/>
<action application="db" data="insert/last_dial/global/$ {uuid}"/>
Hi Baskar, I'm not sure why you get the "-ERR no reply" answer since that answer is never given by the function itself. Nevertheless the uuid_send_dtmf function sends the dtmf_data TO the uuid you enter, for what you want to achieve you need to "simulate" that the channel that is eavesdropping presses the dtmf digits, instead of receiving them. I've just uploaded a patch to jira MODAPP-168 which modifies uuid_send_dtmf function to receive a third parameter, so that the new syntax is "uuid_send_dtmf <uuid> <dtmf_data> [to|from|both]" that allows you to decide if the dtmf data is sent "to" or "from" the uuid channel. For example to achieve a three-party call after eavesdropping you would need to call: uuid_send_dtmf <eavesdropping_uuid> 3 from Bye. Cesar Cepeda. De: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] En nombre de Baskar Enviado el: Monday, November 17, 2008 5:59 AM Para: freeswitch-users@lists.freeswitch.org Asunto: Re: [Freeswitch-users] DTMF Hi, i have tried it before itself first i pass one digit api uuid_send_dtmf c08f77be-fbed-44c3-a2a7-8650d88b0e33 2 output: Content-Type: api/response Content-Length: 14 -ERR no reply Then i passed all the values in the barging api uuid_send_dtmf baf82956-111d-4cd8-9568-47010ac8bd20 2130* output: Content-Type: api/response Content-Length: 14 -ERR no reply Here i get only the beep sound for each values and error message as a output Thanks for the reply and correct me where i am work Thanks in advance. -- Warm Regards, N.Baskar
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
Hi, I was trying this dtmf stuff for me also its not working. whenever i used to send the dtmf you know i get a beep. whats wrong? -- Thank you with regards, Gopal,
you have to remember that just because you send DTMF to a phone via RTP or SIP INFO the phone doesn't have to render them. The best way to test this is with an ATA since it will render the tones most likely. Many ip phones do NOT render the tones to the speaker. /b On Nov 20, 2008, at 8:30 AM, Gopala krishnan wrote:
Hi,
I was trying this dtmf stuff for me also its not working. whenever i used to send the dtmf you know i get a beep. whats wrong?
Hi, I am using the event socket in freeswitch with audiocodes, and the client as a softphone. -- Thank you with regards, Gopal,
And also forgot to say one thing, I am using event socket. -- Thank you with regards, Gopal,
Doesn't matter.. the api call is the same via event socket or cli. (as in they call the exact same code with NO differences) /b On Nov 20, 2008, at 9:07 AM, Gopala krishnan wrote:
And also forgot to say one thing, I am using event socket.
-- Thank you with regards, Gopal,
___________
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
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@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
those errors are not caused by that change, either you updated only parts of the code (that module maybe) and didn't update the rest of FreeSWITCH or you have a merge conflict or other change in that file. Mike On Nov 21, 2008, at 9:59 AM, Baskar wrote: > 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 >
Hi, I have attached the mod_commands.c file. Can any one correct me where i am wrong. Please help to resolve the problem. Thanks for the reply in advance. -- Thanks, N.Baskar
Hi, The send dtmf is working. thanks -- Thank you with regards, Gopal,
Hi, Thanks for the support from *Brian West, Michael S Collins,Birgit Arkesteijn, Cesar Cepeda, Michael Jerris, Gopala krishnan*. DTMF is working fine in barging and Conference. -- Warm Regards, N.Baskar
participants (7)
-
Baskar
-
Birgit Arkesteijn
-
Brian West
-
Cesar Cepeda
-
Gopala krishnan
-
Michael Jerris
-
Michael S Collins