aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2006-05-25 17:18:01 +0000
committerkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2006-05-25 17:18:01 +0000
commit06e12c0a81733d23bd920a5893d958dcdb4b7e2b (patch)
tree51124d8a684d9d8d499150fc41b84f1a02bb255b
parent7e4782480604737ecc98f14104d62f441c964c53 (diff)
allow SIPCHANINFO(peername) to work for calls from users as well (issue #7215)
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@30293 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--channels/chan_sip.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 4b72af406..cf7e8892c 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));