diff options
author | jeremy <jeremy@f38db490-d61c-443f-a65b-d21fe96a405b> | 2003-04-11 04:07:22 +0000 |
---|---|---|
committer | jeremy <jeremy@f38db490-d61c-443f-a65b-d21fe96a405b> | 2003-04-11 04:07:22 +0000 |
commit | 6fe37f03cb6bafd6a66a42cd65474f9f8459e3df (patch) | |
tree | 869afef2896b4ab433aead4783da3f0de84ab160 | |
parent | fbf95cfb9fb1f0560414fae338586ddc4d5ce496 (diff) |
remove debug
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@821 f38db490-d61c-443f-a65b-d21fe96a405b
-rwxr-xr-x | channels/h323/chan_h323.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/channels/h323/chan_h323.c b/channels/h323/chan_h323.c index 5982083dc..24f9ed9e1 100755 --- a/channels/h323/chan_h323.c +++ b/channels/h323/chan_h323.c @@ -648,6 +648,10 @@ static struct ast_channel *oh323_new(struct oh323_pvt *i, int state, const char tmp->priority = 1; if (strlen(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 (ast_pbx_start(tmp)) { ast_log(LOG_WARNING, "Unable to start PBX on %s\n", tmp->name); @@ -983,10 +987,7 @@ int setup_incoming_call(call_details_t cd) if (strlen(user->accountcode)) { 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 */ user->inUse++; |