How to make payload-type for DTMF configurable

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi list,
 
For my pjsua-lib based application I need to configure the payload-type for DTMF as to be passed with telephone-event in outgoing SDP. I need to change it at run-time, thus the currente compile-time choice of PJMEDIA_RTP_PT_TELEPHONE_EVENTS and 
PJMEDIA_RTP_PT_TELEPHONE_EVENTS_STR  
is not enough.
 
Currently I am not using codecs with dynamic payload types, so I can imagine a simple specific solution (quick and dirty). However I prefer a solution that may eventually be included in the PJSIP-library.
 
I think a generic solution would need to allow configuring a codec of any dynamic payload type.
 
My idea is to move this into the codec-manager:

Allow the codec-manager to change the dynamic payload-type of a codec, e.g. through pjmedia_codec_mgr_set_default_param.
 
Add codec ?telephone-event/8000? to the codec-manager.
 
Users pjmedia_stream_info_from_sdp and pjmedia_stream_info_from_sdp must instead of using PJMEDIA_RTP_PT_TELEPHONE_EVENTS obtain the actual payload-type for ?telephone-event/8000? from the codec-manager.
 

Is this a sound approach, and/or do you see any pitfalls?
Any advice is welcome.

 
Regards,
 
Arie Velthoen 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20101020/c3d7ce57/attachment.html>


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux