[asterisk-users] Dialing multiple endpoints and CallerID presentation

Michel Verbraak MVerbraak at intercommit.nl
Mon Aug 29 04:17:02 CDT 2011


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>


More information about the asterisk-users mailing list