Re: [asterisk-dev] SIP Multiple endpoints with same id

2006-11-09 Thread John Lange
On Wed, 2006-11-08 at 17:38 -0600, Eric "ManxPower" Wieling wrote:
> Maybe just allowing wildcard SIP accounts would be better.  i.e.
> 
> [0001547af43b-*]
> 
> This would allow any device registering with any userid beginning with 
> "0001547af43b-".  This might be fairly easy to do.

Combined with wildcard dialing that might bring us closer to the desired
result.

John


___
--Bandwidth and Colocation provided by Easynews.com --

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


Re: [asterisk-dev] SIP Multiple endpoints with same id

2006-11-09 Thread John Lange
On Wed, 2006-11-08 at 17:40 -0500, Peter Beckman wrote:
>   So similar to a DID ringing multiple SIP extensions simultaneously:
> 
>  Dial([EMAIL PROTECTED]&[EMAIL PROTECTED]&[EMAIL PROTECTED])
> 
>   You want Asterisk, if configured, to ring all the devices that have used
>   the same registration when you Dial([EMAIL PROTECTED]).  Asterisk without a 
> config
>   flag set for that SIP user would do what it does now -- overwrite the most
>   recent registration.  If the flag were set, asterisk would allow multiple
>   registrations, and ring all registered devices when that context was
>   dialed.
> 
>   Yes?

Yes, exactly. Ring all the devices that registered with the same
credentials.

I could be wrong but I think this is somewhat common with other sip
proxies (I know I know! Asterisk is not a proxy!). For example, I've
been told SER allows this which I think is one of the reasons a lot of
providers use SER in front of Asterisk.

John

___
--Bandwidth and Colocation provided by Easynews.com --

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


Re: [asterisk-dev] SIP Multiple endpoints with same id

2006-11-08 Thread Luigi Rizzo
On Wed, Nov 08, 2006 at 09:53:55AM -0600, Kevin P. Fleming wrote:
> Alexei Volkov wrote:
> > Is it possible (in theory) to make asterisk server multiple sip endponts
> > configured with same sip credentials.
> 
> Of course it's possible (in theory). Asterisk is software, software can
> be programmed to do anything people want it to do.
> 
> 
> 
> > If asterisk can support multiple sip enpoints with same credentials  i
> > have simplify routint to them with simple Dial(SIP/0001) instead of 
> > Dial(SIP/0001&SIP/0002&SIP/0003)  command and save dialplan numbers (one
> > instead of three in my case).
> > 
> 
> In spite of the fact that it is possible, we have no plans nor desire to
> make this change. Asterisk treats SIP devices as _devices_, which means
> it needs to be able to handle them individually. Turning devices into
> _extensions_ is the responsibility of the dialplan, where it is very
> very easy to do what you want to do (as your example shows).

The not-so-easy part (to me at least) is how to make this dynamic
- e.g. buy a new _device_, configure with appropriate credentials,
and have it dynamically (i.e. as it registers/unregisters)
linked to a certain extension together with
the other devices in the group without having to modify the dialplan.

If there is a well known trick to achieve this, it would be
surely worthwhile documenting it in sip.conf or some other
prominent place. It would cut a lot of questions.

cheers
luigi
___
--Bandwidth and Colocation provided by Easynews.com --

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


Re: [asterisk-dev] SIP Multiple endpoints with same id

2006-11-08 Thread Kevin P. Fleming
Alexei Volkov wrote:
> Is it possible (in theory) to make asterisk server multiple sip endponts
> configured with same sip credentials.

Of course it's possible (in theory). Asterisk is software, software can
be programmed to do anything people want it to do.



> If asterisk can support multiple sip enpoints with same credentials  i
> have simplify routint to them with simple Dial(SIP/0001) instead of 
> Dial(SIP/0001&SIP/0002&SIP/0003)  command and save dialplan numbers (one
> instead of three in my case).
> 

In spite of the fact that it is possible, we have no plans nor desire to
make this change. Asterisk treats SIP devices as _devices_, which means
it needs to be able to handle them individually. Turning devices into
_extensions_ is the responsibility of the dialplan, where it is very
very easy to do what you want to do (as your example shows).

Part of your problem is that you are making an assumption that your SIP
device identifiers have to be the same format (and come from the same
number space) as your extensions ("dialplan numbers"). This is a faulty
assumption; they are completely unrelated and generally using the same
numbers in both places only causes confusion. Your SIP devices can be
called anything you want (many people use device MAC addresses or
portions of them for hardphones, for example), and the extensions can be
numeric as you have shown.
___
--Bandwidth and Colocation provided by Easynews.com --

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


Re: [asterisk-dev] SIP Multiple endpoints with same id

2006-11-08 Thread Eric "ManxPower" Wieling

No it is not possible.

Alexei Volkov wrote:
Is it possible (in theory) to make asterisk server multiple sip endponts 
configured with same sip credentials.


___
--Bandwidth and Colocation provided by Easynews.com --

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


[asterisk-dev] SIP Multiple endpoints with same id

2006-11-08 Thread Alexei Volkov

Hi all!

Is it possible (in theory) to make asterisk server multiple sip endponts 
configured with same sip credentials.


For example if i have in sip.conf

[0001]
canreinvite=yes
type=friend
secret=secret
username=USER
callerid="USER" <0001>
host=dynamic

Is it possible to have two or more hardware or software sip phones 
configured with this entry?


I tested that asterisk allow to register more then one endpoint with 
same credentials and allow outgoinc calls from them, but will route 
incoming call to last registered one.
Why not to keep information about all such sip endpoints and route 
incoming calls to all devices with same sip credentials.


This situation is helpfull when i have more then one sip phones (for 
example softphone on pc SIP/0001, hardware desktop sip phone SIP/0002, 
and mobile wifi sip phone SIP/0003) and nowtime i need to configure them 
with different sip numbers (and configuration entry in sip.conf) and 
have a special dialplan in case i want to route any call to me on all 
this devices.


If asterisk can support multiple sip enpoints with same credentials  i 
have simplify routint to them with simple Dial(SIP/0001) instead of  
Dial(SIP/0001&SIP/0002&SIP/0003)  command and save dialplan numbers (one 
instead of three in my case).


Thanks for any comments.

WBR Alexei Volkov.





___
--Bandwidth and Colocation provided by Easynews.com --

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