Derek Belrose (OMEGABYTE)
2009-Nov-03 19:02 UTC
[asterisk-users] ring groups with different caller id
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)=5555551212). 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20091103/e55912a3/attachment.htm
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.