Not showing actual callerid in call forwarding in PRI


Asterisk Version: 11.8
OS : Ubuntu 12.04 Server 64-Bit

I am using PRI E1 line and able to make calls and receive calls successfully.

Please find my below scenario:

PRI E1 line contains these numbers: 123, 124, 125, 126, 127, 128, 129 (In this, 123 is the hunting number that is configured by our PSTN provider)

My mobile number: 3456789

“User A” mobile number: 1111111

When “User A” calls to 123, the extension 5002 rings. If no one is answered 5002, it should connects to my mobile number. Now, It is connecting my mobile number. But, I am getting “123” as the caller id, AND not getting “User A” mobile number (1111111). How to get the actual caller’s caller ID?

Below is the pattern:

exten => 5002,1,Answer()
exten => 5002,n,Dial(SIP/5002,15,tr)
exten => 5002,n,Dial(DAHDI/g0/3456789,30)
exten => 5002,n,VoiceMail(5002,u)
exten => 5002,n,Hangup

Please do needful. Thanks in advance.


You will probably have to prove to your network operator that you control 1111111. However, if Asterisk, rather than the service provider, is forcing the setting of the caller ID, this will be in the channel driver configuration file, not in extensions.conf.

The ability to send arbitrary caller ID is useful for fraudsters so something that no respectable network operator should allow.

Hello David,

Thanks for your reply. Can you tell me the configuration details of channel driver configuration file for my requirement?

Thank you.


Don’t set the callerid.

However, I think that your real problem is service provider best practice.

Great. Thank you David.