[Asterisk-Users] Incoming calls
Howard Lowndes
lannet at lannet.com.au
Wed Feb 2 13:20:44 MST 2005
On Thu, 2005-02-03 at 07:07, Martin Roy wrote:
> OK I have 12 phone lines connected to 3 digium TDM04B cards on the same
> server. I must do the following thing :
>
> The first 10 lines will be use by one company and the 2 left by another
> one. For outgoing calls it's quite easy I just create 2 different group
> and let them dial on a different one. But for incoming calls how can I
> setup asterisk to answer on the first 10 lines with one message and on
> line 11 and 12 with another one?
>
> If I put the s,1, Answer thing it will answer all 12 lines with the same
> message...
>
> I'm sure it's easy but I just don't know how to do it.
Do some string manipulation on the ${CHANNEL} to identify which channel
is ringing (look at the Cut and SetVar commands), then you can either
have an robot/recording answer appropriately, or use the A option in the
Dial command to announce to the callee which line is answered, or modify
the displayed caller id with SetCIDName and SetCIDNum.
I've done it, and it takes a bit of thinking about, but after this
amount of info the meter is running :)
HTH.
>
> Thanks
>
> Martin
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
--
Howard.
LANNet Computing Associates;
Your Linux people <http://www.lannetlinux.com>
------------------------------------------
"When you just want a system that works, you choose Linux;
when you want a system that just works, you choose Microsoft."
------------------------------------------
"Flatter government, not fatter government;
Get rid of the Australian states."
More information about the asterisk-users
mailing list