Asterisk 1.0.9 CLID


I am trying to configure different CID’s for our outboundpstn context. We have a number of DID’s and depending on which extension is calling out I would like to define separate CID’s.

Our current config shows as
ignorepat =>9
exten => _9.,1,Dial(Zap/g1/${EXTEN:1})
exten => _9.,2,congestion

exten => _0.,1,Dial(Zap/g1/${EXTEN})
exten => _0.,2,congestion

However I need to be able to route outbound calls to 123456 or 654321 depending on extension number, can this be done easily and where can I find a guide to help me get this set up?

Any help would be greatly appreciated.


Take a look at Asterisk Callerid function

Cheers for the reply.

We set the caller ID as below:

exten => _9.,1,SetCIDNum(12345678910)
exten => _9.,2,Dial(Zap/g1/${EXTEN:1})
exten => _9.,3,Congestion

We ran a debug trace when the call was made and it displayed the following:
ISDN/Telephony Numbering Plan (E.164/E.163) (1)

                      Presentation: Presentation permitted, user 

number passed network screening (1) ‘12345678910’ ] > [hashed number] > Called Number (len=14) [ Ext: 1 TON: Unknown Number Type (0) NPI:
Unknown Number Plan (0) ‘987654321’ ]

However when the call hit the receiving end the caller ID had gone to the default number. Any ideas what is going wrong?
The phone company insist that it’s to do with the PBX at our end.