[asterisk-commits] file: branch 1.2 r76560 - /branches/1.2/channels/chan_sip.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Mon Jul 23 09:32:08 CDT 2007
Author: file
Date: Mon Jul 23 09:32:07 2007
New Revision: 76560
URL: http://svn.digium.com/view/asterisk?view=rev&rev=76560
Log:
(closes issue #10236)
Reported by: homesick
Patches:
rpid_1.4_75840.patch uploaded by homesick (license 91)
Accept Remote Party ID on guest calls.
Modified:
branches/1.2/channels/chan_sip.c
Modified: branches/1.2/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/branches/1.2/channels/chan_sip.c?view=diff&rev=76560&r1=76559&r2=76560
==============================================================================
--- branches/1.2/channels/chan_sip.c (original)
+++ branches/1.2/channels/chan_sip.c Mon Jul 23 09:32:07 2007
@@ -7482,6 +7482,11 @@
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);
}
}
More information about the asterisk-commits
mailing list