aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-07-23 14:32:07 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-07-23 14:32:07 +0000
commit383df3c0895261469aba6f912b918349fe9357bf (patch)
tree41d55cec389f57299ef0d2f278f6b4bc9a37994c
parentee4c30d7eea48c9e1291a1c91b020165ffc53ac7 (diff)
(closes issue #10236)
Reported by: homesick Patches: rpid_1.4_75840.patch uploaded by homesick (license 91) Accept Remote Party ID on guest calls. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@76560 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--channels/chan_sip.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 228734e10..44d551940 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -7482,6 +7482,11 @@ static int check_user_full(struct sip_pvt *p, struct sip_request *req, int sipme
ast_copy_flags(p, &global_flags, SIP_OSPAUTH);
res = check_auth(p, req, p->randdata, sizeof(p->randdata), "", "", "", sipmethod, uri2, reliable, ignore);
#endif
+ } else if (!ast_strlen_zero(rpid_num) && ast_test_flag(p, SIP_TRUSTRPID)) {
+ if (*calleridname)
+ ast_copy_string(p->cid_name, calleridname, sizeof(p->cid_name));
+ ast_copy_string(p->cid_num, rpid_num, sizeof(p->cid_num));
+ ast_shrink_phone_number(p->cid_num);
}
}