]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
respect 'usecallingpres' in zapata.conf even if CLID has not been set for the channel...
authorKevin P. Fleming <kpfleming@digium.com>
Wed, 24 May 2006 16:17:26 +0000 (16:17 +0000)
committerKevin P. Fleming <kpfleming@digium.com>
Wed, 24 May 2006 16:17:26 +0000 (16:17 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@29969 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_zap.c

index 847063a5babe30a1921866aecb5c9b1d425b3f7a..c167db2ba9a745295af71f551cc9831eff12a6c4 100644 (file)
@@ -2119,9 +2119,8 @@ static int zt_call(struct ast_channel *ast, char *rdest, int timeout)
                                prilocaldialplan = PRI_LOCAL_ISDN;
                        }
                }
-               pri_sr_set_caller(sr, l ? (l + ldp_strip) : NULL, n, prilocaldialplan, 
-                                       l ? (p->use_callingpres ? ast->cid.cid_pres : PRES_ALLOWED_USER_NUMBER_PASSED_SCREEN) : 
-                                                PRES_NUMBER_NOT_AVAILABLE);
+               pri_sr_set_caller(sr, l ? (l + ldp_strip) : NULL, n, prilocaldialplan,
+                                 p->use_callingpres ? ast->cid.cid_pres : (l ? PRES_ALLOWED_USER_NUMBER_PASSED_SCREEN : PRES_NUMBER_NOT_AVAILABLE));
                pri_sr_set_redirecting(sr, ast->cid.cid_rdnis, p->pri->localdialplan - 1, PRES_ALLOWED_USER_NUMBER_PASSED_SCREEN, PRI_REDIR_UNCONDITIONAL);
 
 #ifdef SUPPORT_USERUSER