Olivier
2011-Aug-29 07:15 UTC
[asterisk-users] Dialing multiple endpoints and CallerID presentation
Hi, I've got the following use case where I want to simultaneously dial 2 endpoints that both need different CallerID presentation. How can I do that, from the dialplan preferably ? For instance, let say phone A needs to both dial B, an internal SIP phone and C, a cell phone reachable through a DAHDI span from a an Asterisk system where : 1. users can use 4-digits short numbers to reach other internal phones. 2. calls going out through the DAHDI span, must have CallerIDs presented without any prefix. Ideally, CallerID should be presented : 1- with 4-digits for internal phones 2- with 10-digits for external phones so that both phones can return the call without re-dialing. Suggestions ? A is 1234 alias DID 0555551234 B is 5678 C is 0123456789 I was thinking of using something like this: Dial(SIP/5678<option_to_present_1234_to_callee>&DAHDI/g1<option_to_present_0555551234>/0123456789) What could be <option_to_present_1234_to_callee> and <option_to_present_0555551234> Regards -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20110829/0012d21e/attachment.htm>
Sam Govind
2011-Aug-29 08:08 UTC
[asterisk-users] Dialing multiple endpoints and CallerID presentation
Alternative work around to this could be: 1- Make two different dialplan extensions. One to dial DAHDI numbers with setting for DAHDI and other extension for SIP dialing. Both extensions setting different CallerID presentation 2- Create a queue with Local extensions as static members (strategy=ringall) So whenever you want to dial to both B, and C location use the queue dial-out. I think it should work. On Mon, Aug 29, 2011 at 12:15 PM, Olivier <oza_4h07 at yahoo.fr> wrote:> Hi, > > I've got the following use case where I want to simultaneously dial 2 > endpoints that both need different CallerID presentation. > How can I do that, from the dialplan preferably ? > > For instance, let say phone A needs to both dial B, an internal SIP phone > and C, a cell phone reachable through a DAHDI span from a an Asterisk system > where : > 1. users can use 4-digits short numbers to reach other internal phones. > 2. calls going out through the DAHDI span, must have CallerIDs presented > without any prefix. > > Ideally, CallerID should be presented : > 1- with 4-digits for internal phones > 2- with 10-digits for external phones > so that both phones can return the call without re-dialing. > > > Suggestions ? > > A is 1234 alias DID 0555551234 > B is 5678 > C is 0123456789 > I was thinking of using something like this: > > > Dial(SIP/5678<option_to_present_1234_to_callee>&DAHDI/g1<option_to_present_0555551234>/0123456789) > > What could be <option_to_present_1234_to_callee> and > <option_to_present_0555551234> > > Regards > > -- > _____________________________________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > New to Asterisk? Join us for a live introductory webinar every Thurs: > http://www.asterisk.org/hello > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20110829/dab59447/attachment.htm>
Michel Verbraak
2011-Aug-29 09:17 UTC
[asterisk-users] Dialing multiple endpoints and CallerID presentation
Hi,
Use the local channel
Dial(Local/aaaa at contextinternal&local/bbbbbbbbb at contextexternal)
In the internal context you set CALLERID(num) to the internal extension
and then dial the SIP
exten => aaaa,1,Set(CALLERDI(num)=${EXTEN})
same => n,Dial(SIP/${EXTEN})
In the external context do almost the same but dial DAHDI
exten => bbbbbbbbbb,1,Set(CALLERDI(num)=0555551234)
same => n,Dial(DAHDI/g1/0123456789)
Regards,
Michel.
Op 29-08-11 09:15, Olivier schreef:> Hi,
>
> I've got the following use case where I want to simultaneously dial 2
> endpoints that both need different CallerID presentation.
> How can I do that, from the dialplan preferably ?
>
> For instance, let say phone A needs to both dial B, an internal SIP
> phone and C, a cell phone reachable through a DAHDI span from a an
> Asterisk system where :
> 1. users can use 4-digits short numbers to reach other internal phones.
> 2. calls going out through the DAHDI span, must have CallerIDs
> presented without any prefix.
>
> Ideally, CallerID should be presented :
> 1- with 4-digits for internal phones
> 2- with 10-digits for external phones
> so that both phones can return the call without re-dialing.
>
>
> Suggestions ?
>
> A is 1234 alias DID 0555551234
> B is 5678
> C is 0123456789
> I was thinking of using something like this:
>
>
Dial(SIP/5678<option_to_present_1234_to_callee>&DAHDI/g1<option_to_present_0555551234>/0123456789)
>
> What could be <option_to_present_1234_to_callee> and
> <option_to_present_0555551234>
>
> Regards
>
>
> --
> _____________________________________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> New to Asterisk? Join us for a live introductory webinar every Thurs:
> http://www.asterisk.org/hello
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.digium.com/pipermail/asterisk-users/attachments/20110829/c16b420d/attachment.htm>