[asterisk-users] ring groups with different caller id

Jared Smith jsmith at digium.com
Tue Nov 3 13:33:12 CST 2009


On Tue, 2009-11-03 at 14:02 -0500, Derek Belrose (OMEGABYTE) wrote:
> Is there a way to ring multiple phones simultaneously but use
> different caller id settings depending on the type of phone that is
> being called?

This can be accomplished via chan_local, a channel driver that treats an
extension in the dialplan as if it were an external device.

As an example, let's say we want to call Alice and Bob (both on SIP
devices), and Charlie (on his cell phone, which we'll assume is
5554443333).  In addition, we want to modify the CallerID name and
number before calling Charlie's phone.  Here's one way to do it:

[testing]
exten => s,1,Dial(SIP/Alice&SIP/Bob&Local/123456 at testing)

exten => 123456,1,Set(CALLERID(name)=Someone Else)
exten => 123456,n,Set(CALLERID(num)=5551212)
exten => 123456,n,Dial(DAHDI/g1/5554443333)

In this example, Asterisk will dial the two SIP devices and extension
123456 at the same time.  Extension 123456 modifies the CallerID and
then calls Charlie's cell phone number.

I realize that chan_local takes a bit of work to understand, but trust
me -- once you get used to it, you'll wonder how you got along without
it.



-- 
Jared Smith
Training Manager
Digium, Inc.




More information about the asterisk-users mailing list