[asterisk-bugs] [JIRA] (ASTERISK-22157) res_sip_dtmf_info: Support sending of 'raw' DTMF
Matt Jordan (JIRA)
noreply at issues.asterisk.org
Sat Jul 20 17:44:05 CDT 2013
Matt Jordan created ASTERISK-22157:
--------------------------------------
Summary: res_sip_dtmf_info: Support sending of 'raw' DTMF
Key: ASTERISK-22157
URL: https://issues.asterisk.org/jira/browse/ASTERISK-22157
Project: Asterisk
Issue Type: Bug
Components: Resources/res_sip
Affects Versions: 12
Reporter: Matt Jordan
Currently, {{res_sip_dtmf_info}} will parse an SDP that looks something like the packet below:
{noformat}
<send retrans="500">
<![CDATA[
INFO sip:test@[remote_ip]:[remote_port] SIP/2.0
Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
Max-Forwards: 70
Content-Length: [len]
From: test1 <sip:guest1@[local_ip]:[local_port]>;tag=[call_number]
To: test <sip:test@[remote_ip]:[remote_port]>[peer_tag_param]
Call-ID: [call_id]
CSeq: 2 INFO
Supported: timer
Content-Type: application/dtmf-relay
Contact: sip:test@[local_ip]:[local_port]
Supported: replaces
User-Agent: Aastra 480i Cordless/1.4.3.1001 Brcm Callctrl/1.5.1.0 MxSF/v3.2.8.45
Signal=1
Duration=160
]]>
</send>
{noformat}
Unfortunately, sometimes DTMF is sent without any parameters, i.e., no "Signal" or "Duration":
{noformat}
<send retrans="500">
<![CDATA[
INFO sip:test@[remote_ip]:[remote_port] SIP/2.0
Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
Max-Forwards: 70
Content-Length: [len]
From: test1 <sip:guest1@[local_ip]:[local_port]>;tag=[call_number]
To: test <sip:test@[remote_ip]:[remote_port]>[peer_tag_param]
Call-ID: [call_id]
CSeq: 2 INFO
Supported: timer
Content-Type: application/dtmf-relay
Contact: sip:test@[local_ip]:[local_port]
Supported: replaces
User-Agent: Aastra 480i Cordless/1.4.3.1001 Brcm Callctrl/1.5.1.0 MxSF/v3.2.8.45
1
]]>
</send>
{noformat}
That's a DTMF "1". The duration is inferred.
The module should be able to handle this as well.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.asterisk.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the asterisk-bugs
mailing list