Dialing multiple endpoints and CallerID presentation

Home » Asterisk Users » Dialing multiple endpoints and CallerID presentation
Asterisk Users 2 Comments


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:


What could be and


2 thoughts on - 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

    I think it should work.

  • Hi,

    Use the local channel


    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)



    Op 29-08-11 09:15, Olivier schreef: