I have a main phone number 0120120020 given by my SIP provider for my office. I've recently asked my SIP provider for a second phone number 0230230030 on the same SIP account.
I want Asterisk to ring every phones belonging to Group A when someone calls the office by dialing the main phone number, and I want it to ring every phones belonging to Group B if the second phone number is dialed instead.
My extensions.conf contains the following lines :
[sip-incoming-calls] exten => s,1,Dial(SIP/10&SIP/11&SIP/12&SIP/20&SIP/21,20,tr) Extensions 10, 11 and 12 belongs to the Group A, extensions 20 and 21 belongs to the Group B. Every phones are ringing for each incoming calls coming from the main and the second phone number.
How can I do this with Asterisk 1.8 under CentOS 6.3 ?