Hi,
I have asterisk 1.2.7.1 with tdm 24 ports channels. Out of 24 channels, i have connected only 16 lines, it is working fine. The first number (line1) is the main number, when ever people call this number, the call will be automatically diverted to one of the remaining 15 lines by the service provider. Now when i make the outside call from the my extension, it shows the particular line number (as caller id) , instead, i wish to make the main number as caller id , when the call goes out from any of the extension in my asterisk…
Can any one help me out to fix the same…?
on your outbound dial context, why not use
exten => s,1,Set(CALLERID(num))=1234567890
exten => s,n,Set(CALLERID(name))=Rizwan,Co
that SHOULD work, or at least it does so for us.
Hi,
i have the the following outbound context…
exten =>_NXXNXXXXXX,1,Set(CALLERID(num))=1234567890
exten =>_NXXNXXXXXX,2,Set(CALLERID(Name))=Rizwan
exten => _NXXNXXXXXX,1,Dial(Zap/G1/wwwwww1${EXTEN}|20,tWw)
exten => _NXXNXXXXXX,2,Congestion()
exten => _NXXNXXXXXX,102,busy()
shall i try like this way?
sorry , this is context…
exten =>_NXXNXXXXXX,1,Set(CALLERID(num))=1234567890
exten =>_NXXNXXXXXX,2,Set(CALLERID(Name))=Rizwan
exten => _NXXNXXXXXX,3,Dial(Zap/G1/wwwwww1${EXTEN}|20,tWw)
exten => _NXXNXXXXXX,4,Congestion()
exten => _NXXNXXXXXX,102,busy()
what kind of lines are they? are you using a partial T1? you might need to check with your telco and see what they require in terms of CID.
i just checked the docs for zapata.conf, and it looks like you can only set outgoing callerID for PRI lines.
see here for more info:
voip-info.org/wiki-Asterisk+ … apata.conf
you need to talk to your service provider to set this up. Analog lines do not allow you to set your own outbound caller id. Thus, if you have a handful of POTS lines, you need to explain to your telco what you are doing and have them change the outbound caller id of all the lines in that hunt group to be your main number.
They may not want to do this. Consider yourself warned