How to place a call to two phones with different CID?

Hi,

I am trying to place a call from a local extension to 2 phones(one is local extension, the other is normal mobile). These 2 phones should be ringing at same time. And the CID should be different on each phones?

How can I implement this? Should I use AGI, dialparties.agi?

BR,
fcp

then I call mobile & softphone at the same time, I use ${CALLERID(name)} and ${CALLERID(num)}

the sip softphones always show the “name” (= ${CALLERID(name)}), so “different” info is shown to the callee

does this work for you?

Hi fcp,

I think, one way you could do this is to use a combination of chan_local and the Queue application.

Create a dialplan context containing extensions for the two phones and set the callerid appropriately before the dial command.

e.g.

extensions.conf

[agents]
; SIP
exten => 100,1,Set(CALLERID(number)=123)
exten => 100,n,Dial(SIP/301)

; Mobile
exten => 101,1,Set(CALLERID(number)=456)
exten => 101,n,Dial(DAHDI/g1/07123456789)

Then create a queue and rather than adding the SIP devices as agents to the queue, use the Local channel;

queues.conf

[myq]
etc.
etc.

member => Local/100@agents
member => Local/101@agents

Then back in your main dialplan, use the Queue application to call the phones rather than the Dial application.

I think this should work,

Colin

Hi,

Thanks all. I have done this using this method

[from-sip]
exten => 8801, 1, dial(LOCAL/8801@extension&LOCAL/8801@mobile)
exten => 8801, n, hangup

[mobile]
exten => 8801, 1, Set(CALLERID(num)= )
exten => 8801, n, Dial(SIP//)
exten => 8801, n, Hangup

[extension]
exten => 8801, 1, Set(CALLERID(num) = )
exten => 8801, n, Dial(SIP/8801)
exten => 8801, n, Hangup

BR,
fcp