From: Kevin P. Fleming Date: Thu, 25 May 2006 17:18:01 +0000 (+0000) Subject: allow SIPCHANINFO(peername) to work for calls from users as well (issue #7215) X-Git-Tag: 1.2.9.1~22 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=547a07080599d0e386dd9e1ea360fb785fcc3d2d;p=thirdparty%2Fasterisk.git allow SIPCHANINFO(peername) to work for calls from users as well (issue #7215) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@30293 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 4b72af406f..cf7e8892c3 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -7177,6 +7177,7 @@ static int check_user_full(struct sip_pvt *p, struct sip_request *req, int sipme } if (!ast_strlen_zero(user->cid_name) && !ast_strlen_zero(p->cid_num)) ast_copy_string(p->cid_name, user->cid_name, sizeof(p->cid_name)); + ast_copy_string(p->peername, user->name, sizeof(p->peername)); ast_copy_string(p->username, user->name, sizeof(p->username)); ast_copy_string(p->peersecret, user->secret, sizeof(p->peersecret)); ast_copy_string(p->subscribecontext, user->subscribecontext, sizeof(p->subscribecontext));