asterisk odbc realtime sip registration

Get help with installing, upgrading and running Asterisk.

Moderators: muppetmaster, Moderator, Support

asterisk odbc realtime sip registration

Postby system32 » Thu Jan 07, 2016 10:29 am

hello all

i need a little help

there is a asterisk box with full realtime odbc configuration with mysql.

i need create sip users with same sip names...

example :

[100]
type=friend
host=dynamic
secret=test1
context=test1
....

[100]
type=friend
host=dynamic
secret=test2
context=test2
...

all this configs are in sip mysql table .

thanks
system32
Newsterisk
 
Posts: 13
Joined: Wed Mar 11, 2015 7:13 am

Re: asterisk odbc realtime sip registration

Postby david55 » Thu Jan 07, 2016 3:41 pm

Not possible.

You are probably confusing device and extension names. Whilst that can simplify dialplans in single tenant environments, it does work for multi-tenant environments, and its is bad security practice in all environments. This is true even with pure text file configuration. type=peer is also usually better for security.
david55
Moves Like Spencer
 
Posts: 12570
Joined: Fri Sep 26, 2008 5:03 am

Re: asterisk odbc realtime sip registration

Postby system32 » Fri Jan 08, 2016 1:19 pm

firstly thanks for answer.

with odbc there are two parameteres sipusers and sippeers => sip.table

but how i can do this as mult-tenant.. with php ? or with database? another table configuration as view ?

and all these parameters (odbc module) are staticly and its problem.

who can tell me anything about this?
system32
Newsterisk
 
Posts: 13
Joined: Wed Mar 11, 2015 7:13 am

Re: asterisk odbc realtime sip registration

Postby david55 » Fri Jan 08, 2016 2:55 pm

Friend is equivalent to setting both users and peers.

You must use device names that are distinct and translate the extension to the device name. You could use <tenant><extension> but that isn't particularly secure.
david55
Moves Like Spencer
 
Posts: 12570
Joined: Fri Sep 26, 2008 5:03 am

Re: asterisk odbc realtime sip registration

Postby system32 » Fri Jan 08, 2016 3:16 pm

can you show an little example ?
system32
Newsterisk
 
Posts: 13
Joined: Wed Mar 11, 2015 7:13 am


Return to Asterisk Support

Who is online

Users browsing this forum: Google [Bot] and 1 guest