[asterisk-users] Outgoing PRI CID?

Turbo Fredriksson turbo at bayour.com
Thu Nov 1 13:32:26 CDT 2007

We have now got our new PRI line (10 channels, 100 numbers) connected
and everything is working except the outgoing caller ID. Whatever
SIP phone I'm using, the CID that's shown is the very first number...

----- s n i p -----
include => outgoing
include => priin

exten => _NXXXXX.,1,Macro(dial,08${EXTEN},${RINGTIME})          ; Local number (w/o areacode) - Stockholm
exten => _0NX.,1,Macro(dial,${EXTEN},30,r)

exten => _X.,1,Dial(IAX2/graham/${EXTEN},30,r)

exten => s,1,NoOp(Trying extension/number: ${ARG1} from ${CALLERID(num)})
;exten => s,n,Set(CALLERID(num)=${CALLERID(num)})
exten => s,n,Dial(Zap/g1/${ARG1},${RINGTIME},r)
exten => s,n,Playback(connection-failed)
exten => s,n,Congestion()
----- s n i p -----

This * is only for PRI connection. The actual routing is done
in an * installation running under a XEN domain...

Incoming works exactly as planed. So is the 'macro-dial'
with the exception that the numer shown in the receiving
end is '500' (the switchboard). This even if/when I call
from '528'...

Any ideas?

More information about the asterisk-users mailing list