Re: [OpenSIPS-Users] Installing OpenSIPS on Red Hat

2011-02-01 Thread John Khvatov
Hello.

I maintain OpenSIPS package in fedora/epel.

Of course, let me know if you have issues with OpenSIPS rpm package from 
official fedora/epel repos.

On 31.01.2011, at 20:03, Adrian Georgescu wrote:

> Would the maintainers of those packages please step forward so that people 
> who need support know exactly who to ask when in need?
> 
> This would help everyone to better understand who is maintaing what so that 
> there is no fear uncertainty and doubts but only sure things.
> 
> Adrian

-- 
WBR, John Khvatov


___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] Registration process

2011-02-01 Thread Toyima Dias
Hello,
I'm a little confuse about the process of registration, who does set the
expiration time on a REGISTER request? is it done by the Proxy? or may be
the client? i've read on the RFC 3261 the following:

"Version 1.0 StartHTML:000105 EndHTML:000682
StartFragment:000424 EndFragment:000646

If neither mechanism for expressing a suggested expiration time is
present in a REGISTER, the client is indicating its desire for the
server to choose.!

That means that the UA can send or not the expires in the contact? what
about if the expiration date finish?what should be done? the REGISTER server
sends some message to refresh the binding?

Thanks in advance!!!
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] BYE request for proper signalling

2011-02-01 Thread Denis Putyato
Hello!

 

I am using dialog module for control of call duration.

When timeout of dialog expires I need Opensips send BYE not to caller and 
callee contact (which is stored during creation of dialog) but to IP address 
and port from which INVITE (caller) and 200 OK (callee) had been received.

 

Thank you for any help

 

 

___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] Permissions module

2011-02-01 Thread Anton Zagorskiy
Hi.

Can I use pseudo variable as first parameter in the function allow_routing?

I've made files domain1.allow, domain1.deny, domain2.allow, domain2.deny. 
Next, I'm calling "allow_routing("$dlg_val(cur_domain)")". In the log file I
see "DBG:permissions:check_routing: no rules => allow any routing" and
nothing more from permissions module.
In each file there is at least one rule.

What I'm doing wrong?




WBR, Anton Zagorskiy
VoIP Developer, Oyster Telecom
Phone.: +7 812 601-0666
Fax: +7 812 601-0593
a.zagors...@oyster-telecom.ru
www.oyster-telecom.ru




___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Installing OpenSIPS on Red Hat

2011-02-01 Thread Toyima Dias
2011/1/31 Dave Singer 

> Toyima,
>
> I posted in the list last week on the thread "multiple
> use_media_proxy() calls" my notes on getting media proxy installed on
> centos 5.5.
>
>
Many thanks Dave...


> To compile opensips just do the yum installs mentioned in that thread,
> get the opensips source, unpack, compile and install according to docs
> on install from source.
> what I do after the yum installs and updates:
>
> cd /usr/local/src/
> wget "
> http://opensips.org/pub/opensips/latest/src/opensips-1.6.4-tls_src.tar.gz";
> tar -xzf opensips-1.6.?-tls_src.tar.gz
> cd opensips-1.6.?-tls
> # note: the -j is the number of threads the compile can use. I
> usually use one less than number of cores.
> TLS=1 make -j3 prefix=/opt/opensips doc-prefix=/usr/local
> man-prefix=/usr/local include_modules="db_mysql db_postgres" install
>
>
Cool, now i have my OpenSIPS up and running...


> A few months ago I also posted an init.d script for centos that does
> double checking for problems (runs opensips with -c and runs it full
> on localhost:2021 or some port) because -c only does syntax checking
> and I got tired of restarting and it would fail when starting back up.
> It also is set to use monit if it is installed and configured.
>
>

This looks interesting...I'm using the init.d that opensips brings by
default (/opensips/package/fedora/init.d)


> Dave
>
> On Mon, Jan 31, 2011 at 11:23 AM, Brett Nemeroff 
> wrote:
> > On Mon, Jan 31, 2011 at 10:28 AM, Toyima Dias 
> wrote:
> >>
> >> Hello,
> >>
> >> I've seen many information on how to install OpenSIPS in DEBIAN, but in
> my
> >> case i need to install it on Red Hat, i've found some information but
> not
> >> very well supported, i would like to have a very clean and stable
> >> installation for a very large and stable production server, is there any
> >> recommendations please?
> >>
> >> Regards
> >
> > Toyima,
> > If you are trying to install mediaproxy, then yes, Debian is the way to
> go.
> > With it's dependencies you'll be fighting to make it work for a while.
> > However, if you are just trying to get Opensips to run on Redhat.. Can't
> you
> > just compile from source? It's really not so advanced. Maybe I'm missing
> > something?
> > -Brett
> >
>  > ___
> > Users mailing list
> > Users@lists.opensips.org
> > http://lists.opensips.org/cgi-bin/mailman/listinfo/users
> >
> >
>
> ___
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Installing OpenSIPS on Red Hat

2011-02-01 Thread Nicholas Papadakos
I don't have anything against Debian but I think Centos or RH would be more
suitable to the task if they were properly supported.

 

 

I don't know but I always have a feeling of being safer using those
platforms for my mission critical applications J

 

And opensips certainly falls into that category.

 

I do believe there should be more attention to those flavors as they are
more often found on corporate datacenters than debian and sysadmins are more
confortable supporting them.

 

 

Regards,

 

Nicholas Papadakos

 

 

From: users-boun...@lists.opensips.org
[mailto:users-boun...@lists.opensips.org] On Behalf Of Skyler
Sent: Monday, January 31, 2011 9:14 PM
To: OpenSIPS users mailling list
Subject: Re: [OpenSIPS-Users] Installing OpenSIPS on Red Hat

 

Hi Adrian,

 

 Not sure if this is what yer after though I am a CentOS x86_64 admin and
this is what I did. I don't have trouble with 'translation' (CentOS/Debian)
so much, its the dependencies that were and are always a huge pain. Once
those were figured out, all was well and working. I found all the info I
needed from searching the list archive.

 

I started with...

 

 

vi /etc/yum.repos.d/epel-repository

 

## Copy and paste the below

[epel]

name=Extra Packages for Enterprise Linux 5 - $basearch

#baseurl=http://download.fedoraproject.org/pub/epel/5/$basearch

mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=epel-5

&arch=$basearch

failovermethod=priority

enabled=1

gpgcheck=1

gpgkey=http://mirror.its.dal.ca/pub/epel/RPM-GPG-KEY-EPEL

 

 

# get a complete list of all packages so you can pick/choose

yum search opensips

 

# Install what you need

yum install opensips opensips-mysql ... etc.

 

 

These might be older than the current debian packages (not sure), though
I've had no issues and if anything these are stable versions. I wish
opensips and the commonly sought after tools
(mediaproxy/cdrtool/rtpproxy/sems..etc) were better RH supported, though
dependencies are more the problem than the opensips packaging itself. I
suppose I can't complain...if it were THAT important to me I would build my
own updated rpm's and have them to share with you.

 

 Come to think of it...if I were to create a software and give it out for
free...I would only support what I created in the first place. With the
tools I used. If you want it differently, create it.

 

 

All the best.

 

Skyler.

 

 

 

On Mon, Jan 31, 2011 at 8:28 AM, Toyima Dias  wrote:

Hello,

 

I've seen many information on how to install OpenSIPS in DEBIAN, but in my
case i need to install it on Red Hat, i've found some information but not
very well supported, i would like to have a very clean and stable
installation for a very large and stable production server, is there any
recommendations please?

Regards

 


___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

 

___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Registration process

2011-02-01 Thread Jeff Pyle
Toyima,

The client can request an expiration time.  It's the proxy that ultimately 
determines how long the registration is valid, and that is the value that gets 
communicated back to the client in the 200 OK from the proxy.

How does the proxy decide?  Take a look at this link and the two entries 
following it:
  http://www.opensips.org/html/docs/modules/1.6.x/registrar.html#id249121



- Jeff


From: Toyima Dias mailto:toyim...@gmail.com>>
Reply-To: OpenSIPS users mailling list 
mailto:users@lists.opensips.org>>
Date: Tue, 1 Feb 2011 04:58:32 -0500
To: OpenSIPS users mailling list 
mailto:users@lists.opensips.org>>
Subject: [OpenSIPS-Users] Registration process

Hello,
I'm a little confuse about the process of registration, who does set the 
expiration time on a REGISTER request? is it done by the Proxy? or may be the 
client? i've read on the RFC 3261 the following:

"Version 1.0 StartHTML:000105 EndHTML:000682 StartFragment:000424 
EndFragment:000646

If neither mechanism for expressing a suggested expiration time is
present in a REGISTER, the client is indicating its desire for the
server to choose.!

That means that the UA can send or not the expires in the contact? what about 
if the expiration date finish?what should be done? the REGISTER server sends 
some message to refresh the binding?

Thanks in advance!!!
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Registration process

2011-02-01 Thread Toyima Dias
MANY Thanks Jeff...i read the hole section 10 of RFC 3261, but i wasn't sure
how does OpenSIPS set this parameter!!!

Best Regards!


2011/2/1 Jeff Pyle 

>  Toyima,
>
> The client can request an expiration time.  It's the proxy that ultimately
> determines how long the registration is valid, and that is the value that
> gets communicated back to the client in the 200 OK from the proxy.
>
> How does the proxy decide?  Take a look at this link and the two entries
> following it:
>   http://www.opensips.org/html/docs/modules/1.6.x/registrar.html#id249121
>
>
>
> - Jeff
>
>
> From: Toyima Dias 
> Reply-To: OpenSIPS users mailling list 
> Date: Tue, 1 Feb 2011 04:58:32 -0500
> To: OpenSIPS users mailling list 
> Subject: [OpenSIPS-Users] Registration process
>
> Hello,
> I'm a little confuse about the process of registration, who does set the
> expiration time on a REGISTER request? is it done by the Proxy? or may be
> the client? i've read on the RFC 3261 the following:
>
> "Version 1.0 StartHTML:000105 EndHTML:000682
> StartFragment:000424 EndFragment:000646
>
> If neither mechanism for expressing a suggested expiration time is
> present in a REGISTER, the client is indicating its desire for the
> server to choose.!
>
> That means that the UA can send or not the expires in the contact? what
> about if the expiration date finish?what should be done? the REGISTER server
> sends some message to refresh the binding?
>
> Thanks in advance!!!
>
> ___
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] How to avoid rewriting NAT RURI

2011-02-01 Thread opensipslist

Hello list,

I'm using:

  Solaris 11 x86 (nv-b91)
  OpenSIPS 1.6.4 with TLS

In order to allow two UAs behind the same NAT router to communicated
with each other directly, I'm trying to do something like this in the
main request route block:

  if (ruri.received_addr == registered(To-URI).received_hdr)
  noop;  # Do nothing
  else {  # UAs are behind different routers
  rewrite-request-URI-contact-with-ruri.recieved_addr;
  lookup(To-URI);  # Lookup will rewrite ruri with recv header
  }

Similar logic probably must go in the onreply_route block as well.

I don't need any help with the 'else' block, because that's the normal
case which is working very well for us now.

The problem with the example configurations distributed with the source
code is that they assume that any UA which is behind a NAT router will
always call other UAs behind another (different) router. That's not
always the case, though.

Does anybody have an example of how to do this? How have others solved
this problem?

Regards,
Brian

___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] call forwarding with replace from uri

2011-02-01 Thread Jesse Cloutier

Hi list,

I having trouble with my script when trying to call forward by reseting 
the $ru and doing a route(1)


My problem seems to be coming from the fact that I am changing my $fu 
with uac_replace_from. When I xlog the $fu right before the route() It 
shows the correct value (the original $fu before it was changed by 
uac_replace_from). But on the request to the forwarded number it tries 
to authenticate the user using the new value (the value that 
uac_replace_from put in)


If I don't replace the $fu everything works fine.

Thanks A lot for any help!!

here is the relavant parts of my script:

Replacing the uri in the original request:

 if (is_avp_set("$avp(s:uri)")) {
if (is_avp_set("$avp(s:fromname)")) {
xlog("L_INFO","Fromname set to 
$avp(s:fromname) and URI set to $avp(s:uri)");

uac_replace_from("$avp(s:fromname)","$avp(s:uri)");

} else {
uac_replace_from("","$avp(s:uri)");
xlog("L_INFO","Only Fromname Set");
}
}


The fowrwarding:

 if(avp_db_load("$ru","$avp(s:unavailcallfwd)")) {
  #xlog("call forward is set 
to: $avp(s:unavailcallfwd)");
  
avp_pushto("$ru","$avp(s:unavailcallfwd)");
  xlog("call forward is set to: 
$ru from $fu");


  route(1);

  exit;
}


And the proxy authorize


xlog("Checking if we should attempt authentication on $fu");
if (!(method=="REGISTER"))
{
#Do not authenticate calls from the gateways
xlog("Checking if its from a gateway");
if(!is_from_gw()) # This check is from the drouting module
{
xlog("Checking if it is an IP Authed IP");
if(!check_source_address("0", "$avp(i:9)")) 
#This check looks in the address table

{
xlog("Checking if it is a subscriber");

xlog("from is $fu");

if (!proxy_authorize("", "subscriber")) {
proxy_challenge("", "0");
xlog("Sent proxy challange to 
$fu");

exit;
}
if (!db_check_from()) {
sl_send_reply("403","Forbidden 
auth ID");

exit;
}

}
}
}


--
Jesse Cloutier
Network Administrator
Cronomagic Canada
5143411579 x210
je...@cronomagic.com

___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] OpenSIPS or Kamailio

2011-02-01 Thread Toyima Dias
 Hello Community,

I've a question about OpenSIPS; Kamailio and OpenSIPS are the same
application right? i mean, both are Proxy servers for high enterprise
productions environmets...what i want to know is if there is any difference
between them? why the Kamailio community is higher than OpenSIPS community,
or at least seems to be like this...or not?

Best Regards
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] OpenSIPS or Kamailio

2011-02-01 Thread Peter Lemenkov
2011/2/1 Toyima Dias :
> Hello Community,
>
> I've a question about OpenSIPS; Kamailio and OpenSIPS are the same
> application right? i mean, both are Proxy servers for high enterprise
> productions environmets...what i want to know is if there is any difference
> between them? why the Kamailio community is higher than OpenSIPS community,
> or at least seems to be like this...or not?

Well, I'm sure that Kamailio is a great software, but I spent several
hours fixing compilation errors and gave up after all :)

-- 
With best regards, Peter Lemenkov.

___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] My OpenSIPS apparently ignoring 100s

2011-02-01 Thread Jock McKechnie
Greetings;

I apologise in advance for this one. I _know_ I screwed it up, but I just
cannot see how. I'm sure it's something blazingly obvious, but I just cannot
find it and it's driving me nuts.

I've written an OpenSIPS config that uses an external perl 'helper' to do an
LCR lookup (it incorporates a bunch more things that the built-in OpenSIPS
LCR can't do, elsewise I'd use it), I've rewritten the configuration several
times over, and somewhere along the way I've borked it, I guess. When the
system receives a call it'll do the LCR lookup, find a route, and sends the
call out to that route.
The gateway it sends the call to responds with a '100 Trying' and then a
second later OpenSIPS sends the INVITE again, and gets another '100 Trying'.
And then a second later, OpenSIPS sends the INVITE again, etc. Even when the
call comes up, sometimes OpenSIPS isn't "seeing" the '200 OK' and continues
sending INVITES until it times out the call.

I've pasted the whole config here - I hate to gobsmack people with the
inanity and insanity of the config, remember it is in development, but I
think I really need to show 'everything' to have someone work out what the
heck I'm doing wrong here.

Config:
http://pastebin.com/bqy9P9bt

Thank you very much for your help!

 - Jock
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] OpenSIPS or Kamailio

2011-02-01 Thread Michael Collins
They both trace their roots to the OpenSER project and thus share a great
many features. Daniel (Kamailio) and Bogdan (OpenSIPS) are in the best
position to offer you details on the differences between the two projects.
However, if you "just need a SIP proxy" then chances are either software
would work. The difficult question becomes "which one should I use." :) The
correct answer is, as always, "it depends." In the FreeSWITCH community we
have a saying: Use what works for your situation.

I recommend that you examine the feature lists for each project and see if
there are any differences that affect you. If none exist then get to know
members of each community. You may find that you are more comfortable in one
versus the other.

Best wishes,
Michael Collins
www.freeswitch.org

On Tue, Feb 1, 2011 at 8:18 AM, Toyima Dias  wrote:

> Hello Community,
>
> I've a question about OpenSIPS; Kamailio and OpenSIPS are the same
> application right? i mean, both are Proxy servers for high enterprise
> productions environmets...what i want to know is if there is any difference
> between them? why the Kamailio community is higher than OpenSIPS community,
> or at least seems to be like this...or not?
>
> Best Regards
>
> ___
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] OpenSIPS 1.6 on Ubuntu

2011-02-01 Thread Robin Malhotra
Guys I a newbie to OpenSIPS

 I have installed opensips and mysql on ubuntu following some instructions.
I have also installed x-lite. Now how to register a user in opensips and to
use it with the client ? I am stuck, please let me know

Regards
Ricky
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Next branches error

2011-02-01 Thread Andrew Mortensen

On Jan 29, 2011, at 11:53 AM, Brett Nemeroff wrote:

> All,
> 
> I'm routing calls using 3XX redirects. I serialize the branches. I 
> immediately call a next_branches() and arm a failure_route. In the failure 
> route I do something like:
> 
> 
> if (!next_branches()) {
> t_reply("503","Service Unavailable ");
> exit;
> }
> 
> To catch the end of the list of rollover options.

next_branches actually never returns false (0) as a result of SVN trunk commit 
7248, so you'll never hit your t_reply call. (I'd post a link to the commit, 
but SF.net's SVN host seems sad today for some reason.) I'm not sure what the 
reason for the return code changes was here, but opensips now returns 2 if the 
current branch is the last one, and returns 1 if there are more branches 
available for processing.

> I see in my log:
> Jan 29 09:23:50 sip1 /usr/local/sbin/opensips[21262]: ERROR:core:do_action: 
> next_branches failed 
> ...
> 
> Over and over.  Is there some sort of test I should be doing prior to calling 
> next_branches? or is the log level just too high on that message?

I suspect your serial_avp may be empty when you call next_branches from the 
failure route. Bumping your log level to debug would show it for sure, since 
you'd might then see messages like "DBG:core:serialize_branches: nothing to do 
- all same q!" (from serialize_branches) and "DBG:core:next_branches: no AVPs 
-- we are done!" (from next_branches).

The latter message will show up if, in next_branches, search_first_avp returns 
nothing. It then jumps to an error handler returning a value of -1 to the 
caller, which is why you're seeing the repeated "next_branches failed" message.

Given that an empty response from search_first_avp has been considered an error 
from the very first commit of the next_branches code, it seems reasonable to 
change the "no AVPs" log message to log at error level, which would at least 
have the effect of informing the admin of the reason for the failure. 
Alternatively, since an empty serial_avp seems very similar to an end of list 
condition, a change in the logic when handling an empty serial_avp is worth 
considering. It might be better in that case to pass control back to the config 
for further processing.

andrew
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] OpenSIPS 1.6 on Ubuntu

2011-02-01 Thread Duane Larson
The first thing you should do is
http://www.packtpub.com/article/installation-of-opensips-1.6

You can watch the webinars here
http://www.opensips.org/Resources/Webinars

You should join the mailing list
http://www.opensips.org/Resources/MailingLists

To search old mailing list posts I use
http://opensips-open-sip-server.1449251.n2.nabble.com/OpenSIPS-Users-f1449235.html


Sounds like what you need to do is to actually create a user/subscriber so
that opensips can register the x-lite client.  For that you need to use the
opensipsctl command or the osipsconsole.




On Tue, Feb 1, 2011 at 12:21 PM, Robin Malhotra  wrote:

>
> Guys I a newbie to OpenSIPS
>
>  I have installed opensips and mysql on ubuntu following some instructions.
> I have also installed x-lite. Now how to register a user in opensips and to
> use it with the client ? I am stuck, please let me know
>
> Regards
> Ricky
>
>
> ___
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>


-- 
--
*--*--*--*--*--*
Duane
*--*--*--*--*--*
--
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


[OpenSIPS-Users] Pointing auth_db at remote database, OpenSIPS is expecting a local-like schema?

2011-02-01 Thread ambertch

I pointed auth_db at a remote DB and table via the following:

modparam("auth_db", "db_url", "mysql://user:pass@server/MY_REMOTE_DB")
...
if (!www_authorize("serve.name", "users")) {


Doing this, it complains that the table "MY_REMOTE_DB.version" doesn't
exist. 
When I create MY_REMOTE_DB.version and copy over opensips.version, it then
complains about users not being the correct version.

I addressed this by noting a db entry in opensips.version for the default
user storage table of subscriber = 7 and adding users = 7 that into
MY_DB_NAME.version


It works, but it looks to me that pointing to a remote db, some logic in
OpenSIPS is expecting the same things as if auth_db were pointed locally. Is
there any way to address this so I can remove the opensips version table
from MY_REMOTE_DB?

Thanks!
Ambert

-- 
View this message in context: 
http://opensips-open-sip-server.1449251.n2.nabble.com/Pointing-auth-db-at-remote-database-OpenSIPS-is-expecting-a-local-like-schema-tp5983295p5983295.html
Sent from the OpenSIPS - Users mailing list archive at Nabble.com.

___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Pointing auth_db at remote database, OpenSIPS is expecting a local-like schema?

2011-02-01 Thread Duane Larson
If I understand you correctly your local version of OpenSIPS has a couple of
modules that use DB and are pointed to the local mysql server and then you
also have a remote DB and point auth_db to that remote DB?  Is that
correct?  It sounds like for the OpenSIPS databases on both MySQL servers
have different stuff in their "Version" table.  You need to make sure the
stuff in the version table's on both servers are the correct value.  Maybe
the best thing to do is within the untar'ed folder of OpenSIPS you installed
look in the /scripts/mysql folder and the look in all the .sql files to see
what all needs to be in your "Version" table.



On Tue, Feb 1, 2011 at 6:47 PM, ambertch  wrote:

>
> I pointed auth_db at a remote DB and table via the following:
>
> modparam("auth_db", "db_url", "mysql://user:pass@server/MY_REMOTE_DB")
> ...
> if (!www_authorize("serve.name", "users")) {
>
>
> Doing this, it complains that the table "MY_REMOTE_DB.version" doesn't
> exist.
> When I create MY_REMOTE_DB.version and copy over opensips.version, it then
> complains about users not being the correct version.
>
> I addressed this by noting a db entry in opensips.version for the default
> user storage table of subscriber = 7 and adding users = 7 that into
> MY_DB_NAME.version
>
>
> It works, but it looks to me that pointing to a remote db, some logic in
> OpenSIPS is expecting the same things as if auth_db were pointed locally.
> Is
> there any way to address this so I can remove the opensips version table
> from MY_REMOTE_DB?
>
> Thanks!
> Ambert
>
> --
> View this message in context:
> http://opensips-open-sip-server.1449251.n2.nabble.com/Pointing-auth-db-at-remote-database-OpenSIPS-is-expecting-a-local-like-schema-tp5983295p5983295.html
> Sent from the OpenSIPS - Users mailing list archive at Nabble.com.
>
> ___
> Users mailing list
> Users@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>



-- 
--
*--*--*--*--*--*
Duane
*--*--*--*--*--*
--
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Pointing auth_db at remote database, OpenSIPS is expecting a local-like schema?

2011-02-01 Thread ambertch

Hey Duane,

Yeah, that's what I ended up doing. It doesn't seem like ideal
behavior, though - I guess I just wanted to hear from the horse's
mouth if this was the only way the server can behave out of the box.

Thanks!
Ambert

On Tue, Feb 1, 2011 at 5:18 PM, osiris123d [via OpenSIPS (Open SIP
Server)]  wrote:
> If I understand you correctly your local version of OpenSIPS has a couple of
> modules that use DB and are pointed to the local mysql server and then you
> also have a remote DB and point auth_db to that remote DB?  Is that
> correct?  It sounds like for the OpenSIPS databases on both MySQL servers
> have different stuff in their "Version" table.  You need to make sure the
> stuff in the version table's on both servers are the correct value.  Maybe
> the best thing to do is within the untar'ed folder of OpenSIPS you installed
> look in the /scripts/mysql folder and the look in all the .sql files to see
> what all needs to be in your "Version" table.
>
>
>
> On Tue, Feb 1, 2011 at 6:47 PM, ambertch <[hidden email]> wrote:
>>
>> I pointed auth_db at a remote DB and table via the following:
>>
>> modparam("auth_db", "db_url", "mysql://user:pass@server/MY_REMOTE_DB")
>> ...
>> if (!www_authorize("serve.name", "users")) {
>>
>>
>> Doing this, it complains that the table "MY_REMOTE_DB.version" doesn't
>> exist.
>> When I create MY_REMOTE_DB.version and copy over opensips.version, it then
>> complains about users not being the correct version.
>>
>> I addressed this by noting a db entry in opensips.version for the default
>> user storage table of subscriber = 7 and adding users = 7 that into
>> MY_DB_NAME.version
>>
>>
>> It works, but it looks to me that pointing to a remote db, some logic in
>> OpenSIPS is expecting the same things as if auth_db were pointed locally.
>> Is
>> there any way to address this so I can remove the opensips version table
>> from MY_REMOTE_DB?
>>
>> Thanks!
>> Ambert
>>
>> --
>> View this message in context:
>> http://opensips-open-sip-server.1449251.n2.nabble.com/Pointing-auth-db-at-remote-database-OpenSIPS-is-expecting-a-local-like-schema-tp5983295p5983295.html
>> Sent from the OpenSIPS - Users mailing list archive at Nabble.com.
>>
>> ___
>> Users mailing list
>> [hidden email]
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
>
> --
> --
> *--*--*--*--*--*
> Duane
> *--*--*--*--*--*
> --
>
> ___
> Users mailing list
> [hidden email]
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
> 
> If you reply to this email, your message will be added to the discussion
> below:
> http://opensips-open-sip-server.1449251.n2.nabble.com/Pointing-auth-db-at-remote-database-OpenSIPS-is-expecting-a-local-like-schema-tp5983295p5983342.html
> To unsubscribe from Pointing auth_db at remote database, OpenSIPS is
> expecting a local-like schema?, click here.

-- 
View this message in context: 
http://opensips-open-sip-server.1449251.n2.nabble.com/Pointing-auth-db-at-remote-database-OpenSIPS-is-expecting-a-local-like-schema-tp5983295p5983385.html
Sent from the OpenSIPS - Users mailing list archive at Nabble.com.
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] OpenSIPS or Kamailio

2011-02-01 Thread Anton Zagorskiy
Hi.

Kamailio hasn't B2B module.






WBR, Anton Zagorskiy
VoIP Developer, Oyster Telecom
Phone.: +7 812 601-0666
Fax: +7 812 601-0593
a.zagors...@oyster-telecom.ru
www.oyster-telecom.ru


From: users-boun...@lists.opensips.org
[mailto:users-boun...@lists.opensips.org] On Behalf Of Toyima Dias
Sent: Tuesday, February 01, 2011 7:19 PM
To: OpenSIPS users mailling list
Subject: [OpenSIPS-Users] OpenSIPS or Kamailio

Hello Community, 
 
I've a question about OpenSIPS; Kamailio and OpenSIPS are the same
application right? i mean, both are Proxy servers for high enterprise
productions environmets...what i want to know is if there is any difference
between them? why the Kamailio community is higher than OpenSIPS community,
or at least seems to be like this...or not?
 
Best Regards


___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users