If I have the following in the dialplan exten => foo,n,Dial(SIP/1234&Zap/G1c/55443322) and SIP/5432 calls this extension, is it possible to show different callerid numbers to each of the target numbers ? The reason I ask is that if the call is from an internal sip phone, I want to show the internal callerid (5432) to the SIP phone on 1234, and the DDI of the 5432 extension (01702444555) to the zap line. Julian ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email ______________________________________________________________________
Julian Lyndon-Smith <asterisk at dotr.com> writes:> exten => foo,n,Dial(SIP/1234&Zap/G1c/55443322) > > and SIP/5432 calls this extension, > > is it possible to show different callerid numbers to each of the target > numbers ?No, but you can do Dial(Local/1234 at sipcalls&Local/55443322 at zapg1c), and then change callerid as appropriate in the [sipcalls] and [zapg1c] contexts. Naming can obviously be improved... /Benny
Benny Amorsen wrote:> Julian Lyndon-Smith <asterisk at dotr.com> writes: > > >> exten => foo,n,Dial(SIP/1234&Zap/G1c/55443322) >> >> and SIP/5432 calls this extension, >> >> is it possible to show different callerid numbers to each of the target >> numbers ? >> > > No, but you can do Dial(Local/1234 at sipcalls&Local/55443322 at zapg1c), > and then change callerid as appropriate in the [sipcalls] and [zapg1c] > contexts. Naming can obviously be improved... >of course. Great idea - nice lateral thinking ! Thanks Julian> > /Benny > > >______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email ______________________________________________________________________
Julian Lyndon-Smith ha scritto:> If I have the following in the dialplan > > exten => foo,n,Dial(SIP/1234&Zap/G1c/55443322) > > and SIP/5432 calls this extension, > > is it possible to show different callerid numbers to each of the target > numbers ? > > The reason I ask is that if the call is from an internal sip phone, I > want to show the internal callerid (5432) to the SIP phone on 1234, and > the DDI of the 5432 extension (01702444555) to the zap line.I think not, or better, maybe but not in simple way. The reason is that the callerid is a "channel" parameter, so the channel going to the "dial" extension is one and there is one callerid. I think the solution (complex) maybe: Use a queue to make all the items ring togheter. You must use an Agent not directly the SIP on the queue. The Agent must be referred to one extension (agent call back) where you can alter the callerid of the call and go to the sip phone. Ciao. -------------- next part -------------- A non-text attachment was scrubbed... Name: massimo.vcf Type: text/x-vcard Size: 326 bytes Desc: not available Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20090215/9de2912d/attachment.vcf -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 250 bytes Desc: OpenPGP digital signature Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20090215/9de2912d/attachment.pgp
Massimo Nuvoli schrieb:> Julian Lyndon-Smith ha scritto: >> If I have the following in the dialplan >> >> exten => foo,n,Dial(SIP/1234&Zap/G1c/55443322) >> >> and SIP/5432 calls this extension, >> >> is it possible to show different callerid numbers to each of the target >> numbers ? >> >> The reason I ask is that if the call is from an internal sip phone, I >> want to show the internal callerid (5432) to the SIP phone on 1234, and >> the DDI of the 5432 extension (01702444555) to the zap line. > > I think not, or better, maybe but not in simple way. > > The reason is that the callerid is a "channel" parameter, so the > channel going to the "dial" extension is one and there is one callerid. > > I think the solution (complex) maybe: > > Use a queue to make all the items ring togheter. > > You must use an Agent not directly the SIP on the queue. The Agent > must be referred to one extension (agent call back) where you can > alter the callerid of the call and go to the sip phone.Maybe like so: exten => foo,n,Dial(Local/c1234/n&Local/c55443322/n) exten => c1234,1,Set(CALLERID(num)=111) exten => c1234,n,Dial(SIP/1234) exten => c55443322,1,Set(CALLERID(num)=222) exten => c55443322,n,Dial(Zap/G1c/55443322) Philipp Kempgen -- AMOOCON 2009, May 4-5, Rostock / Germany -> http://www.amoocon.de Asterisk: http://the-asterisk-book.com - http://das-asterisk-buch.de AMOOMA GmbH - Bachstr. 126 - 56566 Neuwied -> http://www.amooma.de Gesch?ftsf?hrer: Stefan Wintermeyer, Handelsregister: Neuwied B14998 --