[svn-commits] trunk r9294 - in /trunk: channels/chan_sip.c
configs/sip.conf.sample
svn-commits at lists.digium.com
svn-commits at lists.digium.com
Thu Feb 9 08:40:56 MST 2006
Author: oej
Date: Thu Feb 9 09:40:53 2006
New Revision: 9294
URL: http://svn.digium.com/view/asterisk?rev=9294&view=rev
Log:
- Change "rfc2833" to "rtp" in sip.conf. Keeping backwards compatibility.
Modified:
trunk/channels/chan_sip.c
trunk/configs/sip.conf.sample
Modified: trunk/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_sip.c?rev=9294&r1=9293&r2=9294&view=diff
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Thu Feb 9 09:40:53 2006
@@ -7747,7 +7747,7 @@
{
switch (mode) {
case SIP_DTMF_RFC2833:
- return "rfc2833";
+ return "rtp";
case SIP_DTMF_INFO:
return "info";
case SIP_DTMF_INBAND:
@@ -11723,7 +11723,7 @@
ast_clear_flag(flags, SIP_DTMF);
if (!strcasecmp(v->value, "inband"))
ast_set_flag(flags, SIP_DTMF_INBAND);
- else if (!strcasecmp(v->value, "rfc2833"))
+ else if (!strcasecmp(v->value, "rfc2833") || !strcasecmp(v->value, "rtp"))
ast_set_flag(flags, SIP_DTMF_RFC2833);
else if (!strcasecmp(v->value, "info"))
ast_set_flag(flags, SIP_DTMF_INFO);
@@ -12848,7 +12848,7 @@
}
static char *synopsis_dtmfmode = "Change the dtmfmode for a SIP call";
-static char *descrip_dtmfmode = "SIPDtmfMode(inband|info|rfc2833): Changes the dtmfmode for a SIP call\n";
+static char *descrip_dtmfmode = "SIPDtmfMode(inband|info|rtp): Changes the dtmfmode for a SIP call\n";
static char *app_dtmfmode = "SIPDtmfMode";
static char *app_sipaddheader = "SIPAddHeader";
@@ -12871,7 +12871,7 @@
if (data)
mode = (char *)data;
else {
- ast_log(LOG_WARNING, "This application requires the argument: info, inband, rfc2833\n");
+ ast_log(LOG_WARNING, "This application requires the argument: info, inband, rtp\n");
return 0;
}
ast_mutex_lock(&chan->lock);
@@ -12889,10 +12889,10 @@
if (!strcasecmp(mode,"info")) {
ast_clear_flag(p, SIP_DTMF);
ast_set_flag(p, SIP_DTMF_INFO);
- } else if (!strcasecmp(mode,"rfc2833")) {
+ } else if (!strcasecmp(mode, "rfc2833") || !strcasecmp(mode, "rtp")) {
ast_clear_flag(p, SIP_DTMF);
ast_set_flag(p, SIP_DTMF_RFC2833);
- } else if (!strcasecmp(mode,"inband")) {
+ } else if (!strcasecmp(mode, "inband")) {
ast_clear_flag(p, SIP_DTMF);
ast_set_flag(p, SIP_DTMF_INBAND);
} else
Modified: trunk/configs/sip.conf.sample
URL: http://svn.digium.com/view/asterisk/trunk/configs/sip.conf.sample?rev=9294&r1=9293&r2=9294&view=diff
==============================================================================
--- trunk/configs/sip.conf.sample (original)
+++ trunk/configs/sip.conf.sample Thu Feb 9 09:40:53 2006
@@ -96,11 +96,12 @@
; of performing a "hairpin" call.
;usereqphone = no ; If yes, ";user=phone" is added to uri that contains
; a valid phone number
-;dtmfmode = rfc2833 ; Set default dtmfmode for sending DTMF. Default: rfc2833
+;dtmfmode = rtp ; Set default dtmfmode for sending DTMF. Default is rtp (according to RFC 2833)
; Other options:
- ; info : SIP INFO messages
- ; inband : Inband audio (requires 64 kbit codec -alaw, ulaw)
- ; auto : Use rfc2833 if offered, inband otherwise
+ ; info SIP INFO messages
+ ; inband Inband audio
+ ; (requires 64 kbit codec -alaw, ulaw)
+ ; auto : Use rtp if offered, inband otherwise
;compactheaders = yes ; send compact sip headers.
;sipdebug = yes ; Turn on SIP debugging by default, from
@@ -412,7 +413,7 @@
;subscribecontext=localextensions ; Only allow SUBSCRIBE for local extensions
;language=de ; Use German prompts for this user
;host=dynamic ; This peer register with us
-;dtmfmode=inband ; Choices are inband, rfc2833, or info
+;dtmfmode=inband ; Choices are inband, rtp, or info
;defaultip=192.168.0.59 ; IP used until peer registers
;mailbox=1234 at context,2345 ; Mailbox(-es) for message waiting indicator
;vmexten=voicemail ; dialplan extension to reach mailbox
@@ -428,7 +429,7 @@
;context=from-sip ; Context for incoming calls from this user
;secret=blahpoly
;host=dynamic ; This peer register with us
-;dtmfmode=rfc2833 ; Choices are inband, rfc2833, or info
+;dtmfmode=rtp ; Choices are inband, rtp, or info
;username=polly ; Username to use in INVITE until peer registers
; Normally you do NOT need to set this parameter
;disallow=all
More information about the svn-commits
mailing list