[Asterisk-cvs] asterisk/channels chan_mgcp.c,1.106,1.107
markster at lists.digium.com
markster at lists.digium.com
Mon Feb 28 16:29:09 CST 2005
Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv27309/channels
Modified Files:
chan_mgcp.c
Log Message:
Allow MGCP to use distinctive ring for call wait
Index: chan_mgcp.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_mgcp.c,v
retrieving revision 1.106
retrieving revision 1.107
diff -u -d -r1.106 -r1.107
--- chan_mgcp.c 25 Jan 2005 06:10:20 -0000 1.106
+++ chan_mgcp.c 28 Feb 2005 22:26:41 -0000 1.107
@@ -872,7 +872,17 @@
ast_mutex_lock(&sub->lock);
switch (p->hookstate) {
case MGCP_OFFHOOK:
- snprintf(tone, sizeof(tone), "L/wt");
+ if (distinctive_ring && !ast_strlen_zero(distinctive_ring)) {
+ snprintf(tone, sizeof(tone), "L/wt%s", distinctive_ring);
+ if (mgcpdebug) {
+ ast_verbose(VERBOSE_PREFIX_3 "MGCP distinctive callwait %s\n", tone);
+ }
+ } else {
+ snprintf(tone, sizeof(tone), "L/wt");
+ if (mgcpdebug) {
+ ast_verbose(VERBOSE_PREFIX_3 "MGCP normal callwait %s\n", tone);
+ }
+ }
break;
case MGCP_ONHOOK:
default:
More information about the svn-commits
mailing list