[PATCH] pjmedia: Sending RFC2833 DTMF tones with gaps and configurable duration

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

 



Hello,

I noticed that pjmedia is sending RFC2833 DTMF tones continuously without any gap in between. This causes that analogue endpoints connected to PJSIP via a pabx can't decode any dtmf tones.

I modified put_frame_imp in stream.c to memorize timestamp of last sent dtmf tone and wait to send next dtmf tone until gap duration is over.

Furthermore the length of the tones in the DEFINE is quite long 1600/8000 sec = 0,2 sec.
So I created a function that allows to set the tone duration and gap duration manually.




With best regards,
Philip Hoehlein
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20120523/ede9b777/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pjsip-1.12-dtmfgap.patch
Type: application/octet-stream
Size: 3074 bytes
Desc: pjsip-1.12-dtmfgap.patch
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20120523/ede9b777/attachment-0001.patch>


[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