Merged revisions 30293 via svnmerge from
authorKevin P. Fleming <kpfleming@digium.com>
Thu, 25 May 2006 17:22:26 +0000 (17:22 +0000)
committerKevin P. Fleming <kpfleming@digium.com>
Thu, 25 May 2006 17:22:26 +0000 (17:22 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r30293 | kpfleming | 2006-05-25 12:18:01 -0500 (Thu, 25 May 2006) | 2 lines

allow SIPCHANINFO(peername) to work for calls from users as well (issue #7215)

........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@30294 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 36f6ac2..8b2096e 100644 (file)
@@ -7627,6 +7627,7 @@ static enum check_auth_result check_user_full(struct sip_pvt *p, struct sip_requ
                        if (!ast_strlen_zero(user->cid_name) && !ast_strlen_zero(p->cid_num))
                                ast_string_field_set(p, cid_name, user->cid_name);
                        ast_string_field_set(p, username, user->name);
+                       ast_string_field_set(p, peername, user->name);
                        ast_string_field_set(p, peersecret, user->secret);
                        ast_string_field_set(p, peermd5secret, user->md5secret);
                        ast_string_field_set(p, subscribecontext, user->subscribecontext);