[asterisk-users] ring groups with different caller id

Derek Belrose (OMEGABYTE) derek at omegabyte.com
Tue Nov 3 13:55:47 CST 2009


Jared,

Thanks for this information, I appreciate it.  I hadn't even thought of
looking at chan_local.

Thanks!

-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Jared Smith
Sent: Tuesday, November 03, 2009 2:33 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] ring groups with different caller id

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.


_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users




More information about the asterisk-users mailing list