Re: [asterisk-users] ring groups with different caller id

2009-11-03 Thread Jared Smith
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
555444).  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/123...@testing)

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

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


[asterisk-users] ring groups with different caller id

2009-11-03 Thread Derek Belrose (OMEGABYTE)
Hello,

 

I am in need of some assistance.  We are trying to ring a number of SIP
phones as well as cell phones.  The problem is that the SIP phones show the
callerid correctly, we want the cell phones to show callerid of the original
DID that was called.  This is to ensure that the person answering the cell
phone knows how to answer it correctly.

 

I know I can Set(CALLERID(name)=Some Text) and Set(CALLERID(num)=caller id
of caller) but the cell phones need Set(CALLERID(num)=551212).  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?

 

Thanks,

Derek

___
-- 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

Re: [asterisk-users] ring groups with different caller id

2009-11-03 Thread Derek Belrose (OMEGABYTE)
Jared,

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

Thanks!

-Original Message-
From: asterisk-users-boun...@lists.digium.com
[mailto:asterisk-users-boun...@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
555444).  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/123...@testing)

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

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


___
-- 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