remove debug
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@821 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
parent
c75fdd13cf
commit
4ffdfcbec7
1 changed files with 5 additions and 4 deletions
|
@ -648,6 +648,10 @@ static struct ast_channel *oh323_new(struct oh323_pvt *i, int state, const char
|
||||||
tmp->priority = 1;
|
tmp->priority = 1;
|
||||||
if (strlen(i->callerid))
|
if (strlen(i->callerid))
|
||||||
tmp->callerid = strdup(i->callerid);
|
tmp->callerid = strdup(i->callerid);
|
||||||
|
if (strlen(i->accountcode))
|
||||||
|
strncpy(tmp->accountcode, i->accountcode, sizeof(tmp->accountcode)-1);
|
||||||
|
if (i->amaflags)
|
||||||
|
tmp->amaflags = i->amaflags;
|
||||||
if (state != AST_STATE_DOWN) {
|
if (state != AST_STATE_DOWN) {
|
||||||
if (ast_pbx_start(tmp)) {
|
if (ast_pbx_start(tmp)) {
|
||||||
ast_log(LOG_WARNING, "Unable to start PBX on %s\n", tmp->name);
|
ast_log(LOG_WARNING, "Unable to start PBX on %s\n", tmp->name);
|
||||||
|
@ -983,9 +987,6 @@ int setup_incoming_call(call_details_t cd)
|
||||||
|
|
||||||
if (strlen(user->accountcode)) {
|
if (strlen(user->accountcode)) {
|
||||||
strncpy(p->accountcode, user->accountcode, sizeof(p->accountcode)-1);
|
strncpy(p->accountcode, user->accountcode, sizeof(p->accountcode)-1);
|
||||||
printf("ACCOUNT CODE: %s\n", p->accountcode);
|
|
||||||
} else {
|
|
||||||
printf("NO ACCOUNT CODE IN USERS\n");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Increment the usage counter */
|
/* Increment the usage counter */
|
||||||
|
|
Loading…
Reference in a new issue