diff options
author | Kevin P. Fleming <kpfleming@digium.com> | 2005-09-29 03:12:46 +0000 |
---|---|---|
committer | Kevin P. Fleming <kpfleming@digium.com> | 2005-09-29 03:12:46 +0000 |
commit | 35b5891b74c52d589e74e34b96eb57b397b29bf8 (patch) | |
tree | a9dd4e0439b3e0180ff1043daed9754b5d3dfa9d /channels/chan_sip.c | |
parent | 61a0f7a65e8cdfa1d87bcb9e7c451f4a70b56347 (diff) |
don't replace CLID/CNAM when RPID is being generated (issue #5301)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6689 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/chan_sip.c')
-rwxr-xr-x | channels/chan_sip.c | 4 |
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; } |