aboutsummaryrefslogtreecommitdiffstats
path: root/channels
diff options
context:
space:
mode:
authorkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-09-29 03:12:46 +0000
committerkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-09-29 03:12:46 +0000
commitccf77f70407a83aff690c2edbfc097fe0d55d53f (patch)
treea9dd4e0439b3e0180ff1043daed9754b5d3dfa9d /channels
parentad47ba605da588ac2618782de36573c81059dd7b (diff)
don't replace CLID/CNAM when RPID is being generated (issue #5301)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6689 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rwxr-xr-xchannels/chan_sip.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 484aed24e..6f967dbbb 100755
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -4630,8 +4630,8 @@ static void initreqprep(struct sip_request *req, struct sip_pvt *p, int sipmetho
}
if (!l || (!ast_isphonenumber(l) && default_callerid[0]))
l = default_callerid;
- /* if user want's his callerid restricted */
- if ((p->callingpres & AST_PRES_RESTRICTION) != AST_PRES_ALLOWED) {
+ /* if we are not sending RPID and user wants his callerid restricted */
+ if (!ast_test_flag(p, SIP_SENDRPID) && ((p->callingpres & AST_PRES_RESTRICTION) != AST_PRES_ALLOWED)) {
l = CALLERID_UNKNOWN;
n = l;
}