[OpenSIPS-Users] web access to opensipsctl add?

Chris Martineau chris at ghosttelecom.com
Wed Mar 9 15:08:41 CET 2011


Hi Anca,

Yes this is set. This is not just a web issue it does the same on the
command line if you su to the opensips user so seems to be a permissions
issue somewhere.

Many thanks

Chris

-----Original Message-----
From: users-bounces at lists.opensips.org
[mailto:users-bounces at lists.opensips.org] On Behalf Of Anca Vamanu
Sent: 09 March 2011 12:04
To: users at lists.opensips.org
Subject: Re: [OpenSIPS-Users] web access to opensipsctl add?

Hi Cris,

On 03/09/2011 11:21 AM, Chris Martineau wrote:
> Hi Bogdan,
>
> I am using the absolute path to opensipsctl and calls that don't seem
to
> involve db access work fine (i.e. fifo commands). There seems to be a
> permissions issue somewhere when making a db call through opensipsctl
as
> it says no db engine loaded. Can't see anywhere in opensipsctlrc that
> sets absolute paths to the mysql database?
>
Edit the opensipctlrc or opensipsctl file and add the line:

DBENGINE=mysql

Regards,
Anca
> I have now built direct db access for my app however was interested in
> where this limitation is happening.
>
> Many thanks
>
> Chris
>
> -----Original Message-----
> From: users-bounces at lists.opensips.org
> [mailto:users-bounces at lists.opensips.org] On Behalf Of Bogdan-Andrei
> Iancu
> Sent: 08 March 2011 14:17
> To: OpenSIPS users mailling list
> Subject: Re: [OpenSIPS-Users] web access to opensipsctl add?
>
> Hi Chris,
>
> I guess your problem in running opensipsctl from web is about the
> default PATH and where the opensipsrc file is - try to use in
> opensipsclt (for locateing the rc file and the rest of the opensipsct
> lib file) absolute paths.
>
> Regards,
> Bogdan
>
> Chris Martineau wrote:
>> Hi,
>>
>> Can access all opensipsctl services as root but if I drop to a non
>> root user or try to access this from the web I cannot add a user or
>> issue a db exec command, I just get no database engine loaded.
>> Everything was originally built as root. I notice that opensips-cp
>> doesn't use any calls to opensipsctl for anything other than fifo
>> commands which still seem to work.
>>
>> Is there a way round this as it makes life fairly easy to create a
>> simple rest interface to opensipsctl rather than having to grind
>> through all the direct db access and should avoid any blocking issues
>> if all db requests go through opensipsctl.
>>
>> Many thanks
>>
>> Chris
>>
>>
>
------------------------------------------------------------------------
>> _______________________________________________
>> Users mailing list
>> Users at lists.opensips.org
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>


-- 
Anca Vamanu
OpenSIPS Developer


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



More information about the Users mailing list