Honoring 'callingpres' settings within an inbound call

Hi all,

I have some problems with screening of CID when going through an IAX2 trunk from one plain Asterisk into an Asterisk w/FreePBX 2.8.1.4. I’m administrating both boxes.

On the plain asterisk I have NoOp’ed the callingpres variable value and I can see there that this is set to “prohib_passed_screen” (the value 33).
The dialplan entry for ‘Dial’ in plain asterisk box is this:
n,Dial(IAX2/pabx1-IAXpeer/${EXTEN}) (IAX2 peers is configured in iax2.conf)

Nevertheless when the call is coming into the FreePBX I can see from the console this (source=11111111, dst=22222222):
– snipp –
– Executing [[email protected]:3] ExecIf(“IAX2/pabx2-IAXuser-1541”, “0 ?Set(CALLERID(name)=22222222)”) in new stack
– Executing [[email protected]:4] Set(“IAX2/pabx2-IAXuser-1541”, “__CALLINGPRES_SV=prohib_passed_screen”) in new stack
– Executing [[email protected]:5] Set(“IAX2/pabx2-IAXuser-1541”, “CALLERPRES()=allowed_not_screened”) in new stack
– snipp –

The polycom IP phone registered with 11111111 is showing me the CID of 22222222 when it gets the call.

Is it something I have missed somewhere? Why is it not showing “Restricted” or something similar?

Update 080911:
If I go into the file “extensions_additional.conf” under the context “ext-did-0002” and remove the line saying “exten => 11111111,n,Set(CALLERPRES()=allowed_not_screened)”, reload the dialplan, then it works as supposed to (Polycom phone showing “Anonymous” when it receives the call).

Why is the line overruling the CALLERPRES variable present in the dialplan at all?