Default for overriden should be passed screen
authorMark Spencer <markster@digium.com>
Thu, 7 Oct 2004 21:06:32 +0000 (21:06 +0000)
committerMark Spencer <markster@digium.com>
Thu, 7 Oct 2004 21:06:32 +0000 (21:06 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3939 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_iax2.c

index 8a7a588..feab2c1 100755 (executable)
@@ -3669,7 +3669,7 @@ static int check_access(int callno, struct sockaddr_in *sin, struct iax_ies *ies
                                iaxs[callno]->calling_ton = 0;
                                strncpy(iaxs[callno]->cid_num, user->cid_num, sizeof(iaxs[callno]->cid_num)-1);
                                strncpy(iaxs[callno]->cid_name, user->cid_name, sizeof(iaxs[callno]->cid_name)-1);
-                               iaxs[callno]->calling_pres = 0;
+                               iaxs[callno]->calling_pres = AST_PRES_ALLOWED_USER_NUMBER_PASSED_SCREEN;
                        }
                        strncpy(iaxs[callno]->ani, user->cid_num, sizeof(iaxs[callno]->ani)-1);
                } else {