[pjsip] Touch tones

Samuel Vinson samuelv at laposte.net
Sun Sep 16 16:19:04 EDT 2007


Thanks Benny, I will test this week.

Samuel

Benny Prijono a écrit :
> Samuel Vinson wrote:
>   
>> Hi,
>>
>> I would like communicate with my voice mail. So I must send instructions 
>> with numpad like :
>>    1 to listen
>>    2 to delete
>>    3 to save
>>
>> How to do this with pjsip ? I test pjsua_call_dial_dtmf, but it isn't 
>> the solution. I understood after test it. :-(
>>     
>
> Any chance you can get what the error is?
>
> There are two ways to send DTMF (with pjmedia), that is out-of-band 
> with RFC 2833 and inband.
>
> pjsua_call_dial_dtmf() will send DTMF out-of-band, so if it doesn't 
> get to remote endpoint, maybe it expects inband DTMF.
>
> To send inband DTMF:
>    - create a tone generator (pjmedia_tonegen_create())
>    - register the tone generator to the conference bridge
>      (pjsua_conf_add_port())
>    - "connect" the tone generator to the call using
>      pjsua_conf_connect() as usual.
>    - dial the DTMF digit in the tone generator
>      (pjmedia_tonegen_play_digits())
>
> Note that since your application only supports 1 call, you can 
> create/register the tone generator during application startup and 
> reuse it for each calls.
>
> -benny
>
>
> _______________________________________________
> Visit our blog: http://blog.pjsip.org
>
> pjsip mailing list
> pjsip at lists.pjsip.org
> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
>
>
>   





More information about the pjsip mailing list