[asterisk-addons-commits] tilghman: branch 1.4 r606 - /branches/1.4/channels/chan_ooh323.c
SVN commits to the Asterisk addons project
asterisk-addons-commits at lists.digium.com
Wed May 28 17:29:28 CDT 2008
Author: tilghman
Date: Wed May 28 17:29:27 2008
New Revision: 606
URL: http://svn.digium.com/view/asterisk-addons?view=rev&rev=606
Log:
Change channel name to use the section name, rather than CallerID name (which
can contain strange characters).
(closes issue #12743)
Reported by: softins
Patches:
ooh323-1.4-diff.txt uploaded by softins (license 197)
Modified:
branches/1.4/channels/chan_ooh323.c
Modified: branches/1.4/channels/chan_ooh323.c
URL: http://svn.digium.com/view/asterisk-addons/branches/1.4/channels/chan_ooh323.c?view=diff&rev=606&r1=605&r2=606
==============================================================================
--- branches/1.4/channels/chan_ooh323.c (original)
+++ branches/1.4/channels/chan_ooh323.c Wed May 28 17:29:27 2008
@@ -248,7 +248,7 @@
struct ast_channel *ch = NULL;
int fmt;
if(gH323Debug)
- ast_log(LOG_DEBUG, "--- ooh323_new - %s\n", host);
+ ast_verbose("--- ooh323_new - %s\n", host);
/* Don't hold a h323 pvt lock while we allocate a channel */
@@ -350,7 +350,7 @@
if(ch) ast_mutex_unlock(&ch->lock);
if(gH323Debug)
- ast_log(LOG_DEBUG, "+++ h323_new\n");
+ ast_verbose("+++ h323_new\n");
return ch;
}
@@ -362,7 +362,7 @@
struct ooh323_pvt *pvt = NULL;
struct in_addr ipAddr;
if(gH323Debug)
- ast_log(LOG_DEBUG, "--- ooh323_alloc\n");
+ ast_verbose("--- ooh323_alloc\n");
pvt = (struct ooh323_pvt*) malloc(sizeof(struct ooh323_pvt));
if(!pvt)
@@ -445,7 +445,7 @@
ast_mutex_unlock(&iflock);
if(gH323Debug)
- ast_log(LOG_DEBUG, "+++ ooh323_alloc\n");
+ ast_verbose("+++ ooh323_alloc\n");
return pvt;
}
@@ -1338,11 +1338,11 @@
if(p->callerid_name)
{
- p->username = strdup(p->callerid_name);
- user = find_user(p->username, call->remoteIP);
+ user = find_user(p->callerid_name, call->remoteIP);
if(user)
{
ast_mutex_lock(&user->lock);
+ p->username = strdup(user->name);
strncpy(p->context, user->context, sizeof(p->context)-1);
strncpy(p->accountcode, user->accountcode, sizeof(p->accountcode)-1);
p->amaflags = user->amaflags;
@@ -1412,8 +1412,7 @@
if(!ast_strlen_zero(p->caller_dialedDigits)){
if(gH323Debug) {
- ast_log(LOG_DEBUG, "Setting dialed digits %s\n",
- p->caller_dialedDigits);
+ ast_verbose("Setting dialed digits %s\n", p->caller_dialedDigits);
}
ooCallAddAliasDialedDigits(call, p->caller_dialedDigits);
}
More information about the asterisk-addons-commits
mailing list