[asterisk-addons-commits] tilghman: trunk r607 - in /trunk: ./ channels/chan_ooh323.c
SVN commits to the Asterisk addons project
asterisk-addons-commits at lists.digium.com
Wed May 28 17:31:22 CDT 2008
Author: tilghman
Date: Wed May 28 17:31:22 2008
New Revision: 607
URL: http://svn.digium.com/view/asterisk-addons?view=rev&rev=607
Log:
Merged revisions 606 via svnmerge from
https://origsvn.digium.com/svn/asterisk-addons/branches/1.4
........
r606 | tilghman | 2008-05-28 17:29:27 -0500 (Wed, 28 May 2008) | 7 lines
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:
trunk/ (props changed)
trunk/channels/chan_ooh323.c
Propchange: trunk/
------------------------------------------------------------------------------
--- branch-1.4-merged (original)
+++ branch-1.4-merged Wed May 28 17:31:22 2008
@@ -1,1 +1,1 @@
-/branches/1.4:1-299,308,310,317,319,329,342,348,358,380,382,387,389,398,405,410,414,417,423,428,466,472,475,479,485,490,502,539,574,578
+/branches/1.4:1-299,308,310,317,319,329,342,348,358,380,382,387,389,398,405,410,414,417,423,428,466,472,475,479,485,490,502,539,574,578,606
Modified: trunk/channels/chan_ooh323.c
URL: http://svn.digium.com/view/asterisk-addons/trunk/channels/chan_ooh323.c?view=diff&rev=607&r1=606&r2=607
==============================================================================
--- trunk/channels/chan_ooh323.c (original)
+++ trunk/channels/chan_ooh323.c Wed May 28 17:31:22 2008
@@ -250,7 +250,7 @@
struct ast_channel *ch = NULL;
int fmt;
if(gH323Debug)
- ast_debug(1, "--- ooh323_new - %s\n", host);
+ ast_verbose("--- ooh323_new - %s\n", host);
/* Don't hold a h323 pvt lock while we allocate a channel */
@@ -352,7 +352,7 @@
if(ch) ast_channel_unlock(ch);
if(gH323Debug)
- ast_debug(1, "+++ h323_new\n");
+ ast_verbose("+++ h323_new\n");
return ch;
}
@@ -364,7 +364,7 @@
struct ooh323_pvt *pvt = NULL;
struct in_addr ipAddr;
if(gH323Debug)
- ast_debug(1, "--- ooh323_alloc\n");
+ ast_verbose("--- ooh323_alloc\n");
pvt = (struct ooh323_pvt*) malloc(sizeof(struct ooh323_pvt));
if(!pvt)
@@ -447,7 +447,7 @@
ast_mutex_unlock(&iflock);
if(gH323Debug)
- ast_debug(1, "+++ ooh323_alloc\n");
+ ast_verbose("+++ ooh323_alloc\n");
return pvt;
}
@@ -1340,11 +1340,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;
@@ -1414,8 +1414,7 @@
if(!ast_strlen_zero(p->caller_dialedDigits)){
if(gH323Debug) {
- ast_debug(1, "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