I have setup an asterisk system with a 4 ports PRI card connected to a PBX. Asterisk system can see every caller id from PBX as the exstension number. I want to replace the caller ID from PBX with a fixed number. How to do it?
asterisk how to force the caller id of incoming calls from PRI E1 as a specific number?
did you look at the documentation for zapata.conf ? post what you have as a config already here.
look at voip-info.org/wiki/index.php … onf.sample … you can use callerid="Internal PBX"
to override incoming CID.
I uncomment callerid=2564286000 in zapata.conf and restart asterisk.
but asterisk still can not replace the incoming calleer id as 2564286000
any advices
You could try :
exten => x,x,Set(CALLERID(number)=Whatyouwant)
This is for asterisk 1.2.9.1 and prior I think
Add where in your incoming call context. First line or or at the begginging of your dialplan
exten => x,x,Set(CALLERID(number)=Whatyouwant) can only specify caller id base on extension. I want to specify caller id base on PRI incoming trunk.
If you want to do it for each trunk, all you have to do is create different incoming context for each trunk then apply what I told you above.
Ex:
[trunk1]
exten => x,x,Set(CALLERID(number)=5555555)
[trunk2]
exten => x,x,Set(CALLERID(number)=6666666)
Is this what you are looking for ?