]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
allow SIPCHANINFO(peername) to work for calls from users as well (issue #7215)
authorKevin P. Fleming <kpfleming@digium.com>
Thu, 25 May 2006 17:18:01 +0000 (17:18 +0000)
committerKevin P. Fleming <kpfleming@digium.com>
Thu, 25 May 2006 17:18:01 +0000 (17:18 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@30293 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 4b72af406ff24c2206cadfdbf61495cb199c54c8..cf7e8892c31896b5f7c49ba56307d1e1e6e1c0db 100644 (file)
@@ -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));