Caller ID Name & Contexts

When a call comes in the context of from-pstn, I do not get caller ID name.

I have used the following to verify that I am receiving caller ID name:

[from-mypri]
exten => _.,1,Noop(CALLERID: ${CALLERID(all)})
exten => _.,n,Wait(1)
exten => _.,n,Noop(CALLERID: ${CALLERID(all)})
exten => _.,n,set(CALLERID=${CALLERID(all)})
exten => _.,n,Goto(from-pstn,${EXTEN},1)

Once it goes to from-pstn, the caller ID name is dropped. Here is an example below.

-- Accepting call from '414*******' to '3*******' on channel 0/23, span 1 -- Executing [3*******@from-mypri:1] NoOp("DAHDI/23-1", "CALLERID: "Milwaukee WI" <414*******>") in new stack -- Executing [3*******@from-mypri:2] Wait("DAHDI/23-1", "1") in new stack -- Executing [3*******@from-mypri:3] NoOp("DAHDI/23-1", "CALLERID: "Milwaukee WI" <414*******>") in new stack -- Executing [3*******@from-mypri:4] Set("DAHDI/23-1", "CALLERID="Milwaukee WI" <414*******>") in new stack -- Executing [3*******@from-mypri:5] Goto("DAHDI/23-1", "from-pstn|3*******|1") in new stack -- Goto (from-pstn,3*******,1) -- Executing [3*******@from-pstn:1] Set("DAHDI/23-1", "__FROM_DID=3*******") in new stack -- Executing [3*******@from-pstn:2] ExecIf("DAHDI/23-1", "0 |Set|CALLERID(name)=414*******") in new stack -- Executing [3*******@from-pstn:3] Set("DAHDI/23-1", "__CALLINGPRES_SV=allowed") in new stack -- Executing [3*******@from-pstn:4] SetCallerPres("DAHDI/23-1", "allowed_not_screened") in new stack -- Executing [3*******@from-pstn:5] Goto("DAHDI/23-1", "app-daynight|0|1") in new stack -- Goto (app-daynight,0,1)

If I change the context to from-internal, the caller ID name follows (but that is not a fix, was just to test if it would follow). Any ideas?

Thanks.

to get a variable to follow across contexts, use the underscore first like:

exten => _.,n,set(_CALLERID=${CALLERID(all)})