Set Caller ID on DAHDHI For Out Bound Calling


I want to set caller id on my outbound calling. The Set Caller id display in cdr but on my cellphone its display the deafult PRI Pilot Number, I spoke to my telco about this as per him they was nothing barred. Earlier it was working but once i restart my system its not working. now i unable to findout the resason. Any Help appriciated.

My Configuration
exten => _X.,1,Answer
exten => _X.,2,Set(CALLERID(all)=“Callerid Name” )
exten => _X.,3,Dial(Dahdi/g2/${EXTEN})
exten => _X.,4,Congestion


channel => 1-15
channel => 17-31

group = 2
channel => 32-46
channel => 48-62

Try just setting number instead of all, and don’t use <>'s when setting the number. Try:

exten => _X.,2,Set(CALLERID(num)=XXXXXXXXXXX) 

maybe your telco doesn’t like you trying to modify outgoing name. Maybe your telco doesn’t like you trying to set to DIDs / Numbers that you don’t own.


Thanks for reply malcolmd

I did the same but its not working for me. is there any other setting require. coz if the same PRI i insert in my other asterisk system its work fine for ourbound caller id and same setting i done in my this system but i dont understand why its not working. I spoke to my telco also but as per them they nothing barred from their side.

exten => _X.,1,Answer
exten => _X.,2,Set(CALLERID(num)=XXXXXXXXXXX)
exten => _X.,3,Dial(Dahdi/g2/${EXTEN})
exten => _X.,4,Congestion

Thanks Malcolmd!

I tried the same suggest by you, but it dosent work. But if i Put same PRI in my Trixbox System its display the callerid that i set in my conf. But the same not work on my Asterisk 1.6.
Please Help…

Here is the log of my asterisk system when i place the out dial.

Executing [9323330453@out-calling:1] Answer(“SIP/502-00000314”, “”) in new stack
– Executing [9323330453@out-calling:2] Set(“SIP/502-00000314”, “CALLERID(num)=XXXXXXXX”) in new stack
– Executing [9323330453@out-calling:3] Dial(“SIP/502-00000314”, “Dahdi/g2/9323330453”) in new stack
– Requested transfer capability: 0x00 - SPEECH
– Called g2/XXXXXXXXXX

You’re replacing the XXXXX… with a valid number, yes?

Yes Malcolmd i am replacing XXXX with Valid DID range of my PRI Line

There’s no reason that restarting Asterisk should cause this not to operate. It’s not impossible that the telco made a change.

I agree but if the same PRI i Put in my other Asterisk system its show the callerid that i set in my conf. So there is no point to blame Telco abut the same.

Okay, so what’s different about the configuration between the two systems if moving the PRI from SystemA to SystemB means that setting outbound CID works?

B System is Trixbox and A system is pure asterisk where i am tryin to set caller id on outbound dialing thats only difrence in configuration.