Re: [asterisk-users] Multiple caller id ...

2009-02-15 Thread Philipp Kempgen
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
-- 

___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Multiple caller id ...

2009-02-14 Thread Massimo Nuvoli
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.
begin:vcard
fn:Massimo Nuvoli
n:Nuvoli;Massimo
org:Progetto Archivio SRL
adr:;;Via Giustetto 75;Abbadia Alpina Pinerolo;TO;10060;Italia
email;internet:mass...@archivio.it
title:Amministratore Delegato
tel;work:0121303544
tel;fax:0121040601
x-mozilla-html:FALSE
url:www.progettoarchivio.com
version:2.1
end:vcard



signature.asc
Description: OpenPGP digital signature
___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] Multiple caller id ...

2009-02-13 Thread Julian Lyndon-Smith
Benny Amorsen wrote:
> Julian Lyndon-Smith  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/1...@sipcalls&Local/55443...@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 
__

___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Multiple caller id ...

2009-02-12 Thread Benny Amorsen
Julian Lyndon-Smith  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/1...@sipcalls&Local/55443...@zapg1c),
and then change callerid as appropriate in the [sipcalls] and [zapg1c]
contexts. Naming can obviously be improved...


/Benny


___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


[asterisk-users] Multiple caller id ...

2009-02-12 Thread Julian Lyndon-Smith
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 
__

___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users