From 9fd6ce9eba485f2698ab40229d638a4e7d1a5e07 Mon Sep 17 00:00:00 2001 From: Jeremy McNamara Date: Wed, 23 Jul 2003 19:55:13 +0000 Subject: [PATCH] implement callerid passing on type=users. Thanks Ol1ver git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1206 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- channels/h323/ast_h323.cpp | 4 ++-- channels/h323/ast_h323.h | 4 ++-- channels/h323/chan_h323.c | 6 ++++-- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/channels/h323/ast_h323.cpp b/channels/h323/ast_h323.cpp index a3a75b299b..9f6f7f9ae7 100755 --- a/channels/h323/ast_h323.cpp +++ b/channels/h323/ast_h323.cpp @@ -5,8 +5,8 @@ * By Jeremy McNamara * For The NuFone Network * - * This code has been derived from code created by - * Michael Manousos and Mark Spencer + * This code has been derived from code created by + * Michael Manousos and Mark Spencer * * This file is part of the chan_h323 driver for Asterisk * diff --git a/channels/h323/ast_h323.h b/channels/h323/ast_h323.h index 468f778155..492802955b 100755 --- a/channels/h323/ast_h323.h +++ b/channels/h323/ast_h323.h @@ -5,8 +5,8 @@ * By Jeremy McNamara * For The NuFone Network * - * This code has been derived from code created by - * Michael Manousos and Mark Spencer + * This code has been derived from code created by + * Michael Manousos and Mark Spencer * * This file is part of the chan_h323 driver for Asterisk * diff --git a/channels/h323/chan_h323.c b/channels/h323/chan_h323.c index 99bfede494..9ad2d48b84 100755 --- a/channels/h323/chan_h323.c +++ b/channels/h323/chan_h323.c @@ -5,8 +5,8 @@ * By Jeremy McNamara * For The NuFone Network * - * This code has been derived from code created by - * Michael Manousos and Mark Spencer + * This code has been derived from code created by + * Michael Manousos and Mark Spencer * * This file is part of the chan_h323 driver for Asterisk * @@ -239,6 +239,8 @@ static struct oh323_user *build_user(char *name, struct ast_variable *v) user->noSilenceSuppression = ast_true(v->value); } else if (!strcasecmp(v->name, "secret")) { strncpy(user->secret, v->value, sizeof(user->secret)-1); + } else if (!strcasecmp(v->name, "callerid")) { + strncpy(user->callerid, v->value, sizeof(user->callerid)-1); } else if (!strcasecmp(v->name, "accountcode")) { strncpy(user->accountcode, v->value, sizeof(user->accountcode)-1); } else if (!strcasecmp(v->name, "incominglimit")) {