Index: channels/chan_sip.c =================================================================== --- channels/chan_sip.c (revision 75840) +++ channels/chan_sip.c (working copy) @@ -10043,9 +10043,10 @@ return res; /* Finally, apply the guest policy */ - if (global_allowguest) + if (global_allowguest) { + replace_cid(p, rpid_num, calleridname); res = AUTH_SUCCESSFUL; - else if (global_alwaysauthreject) + } else if (global_alwaysauthreject) res = AUTH_FAKE_AUTH; /* reject with fake authorization request */ else res = AUTH_SECRET_FAILED; /* we don't want any guests, authentication will fail */