Re: [OpenSIPS-Users] User Management frame in OpenSIPS-CP has no display

2017-07-31 Thread Jerry Chinn
Jennifer,

Thanks for your response.

I did identify the issue and am posting what I found to resolve this.

In the php.ini file there are (2) locations where the short_open_tag is defined.
;short_open_tag
;   Default Value: On
;   Development Value: Off
;   Production Value: On

Again in a few lines below

; This directive determines whether or not PHP will recognize code between
;  tags as PHP source which should be processed as such. It's been
; recommended for several years that you not use the short tag "short cut" and
; instead to use the full  tag combination. With the wide spread use
; of XML and use of these tags by other languages, the server can become easily
; confused and end up parsing the wrong code in the wrong context. But because
; this short cut has been a feature for such a long time, it's currently still
; supported for backwards compatibility, but we recommend you don't use them.
; Default Value: On
; Development Value: Off
; Production Value: Off
; http://php.net/short-open-tag
short_open_tag = OFF

When I searched for the parameter, I uncommented the first, and did not see the 
second.

Once I corrected this error, all works fine.

Jerry Chinn
Telecom VoIP Specialist
NAVIS More Performance. More Profit.
tel 541-330-3562
www.TheNavisWay.com
Facebook | 
Twitter | 
LinkedIn | 
Blog

From: Users [mailto:users-boun...@lists.opensips.org] On Behalf Of Jennifer 
Hashimoto
Sent: Monday, July 31, 2017 10:53 AM
To: OpenSIPS users mailling list
Subject: Re: [OpenSIPS-Users] User Management frame in OpenSIPS-CP has no 
display

Jerry,

I use opensips-cp maybe I can help.

A couple things - I have not found there is an extraneous } that needed to be 
removed, I would suggest putting it back.

What database are you using? I am using postgres instead of mysql and I found 
that there was a query where it did a count of users to see if it had anything 
to display and it was mistakenly finding that it had no users to display.

I suggest finding the part where it does a count on users and modifying the php 
file to echo the sql it uses (just add a few lines like echo $sql;) then test 
the sql against your database.

I had to change something like
< $data_no=$resultset[0]['count'];
---
> $data_no=$resultset[0]['count(*)’];

Jennifer


---
Jennifer Akemi Hashimoto
Caztel Communications
jennifer.hashim...@caztel.com
905-836-5445

On Jul 31, 2017, at 1:37 PM, jhchinn 
> wrote:

Bogdan,

Is there any other advice on how to proceed?

Thanks,

Jerry



--
View this message in context: 
http://opensips-open-sip-server.1449251.n2.nabble.com/User-Management-frame-in-OpenSIPS-CP-has-no-display-tp7608166p7608194.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

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


Re: [OpenSIPS-Users] User Management frame in OpenSIPS-CP has no display

2017-07-31 Thread Jennifer Hashimoto
Jerry,

I use opensips-cp maybe I can help.

A couple things - I have not found there is an extraneous } that needed to be 
removed, I would suggest putting it back.

What database are you using? I am using postgres instead of mysql and I found 
that there was a query where it did a count of users to see if it had anything 
to display and it was mistakenly finding that it had no users to display.

I suggest finding the part where it does a count on users and modifying the php 
file to echo the sql it uses (just add a few lines like echo $sql;) then test 
the sql against your database.

I had to change something like
< $data_no=$resultset[0]['count'];
---
> $data_no=$resultset[0]['count(*)’];

Jennifer


---
Jennifer Akemi Hashimoto
Caztel Communications
jennifer.hashim...@caztel.com 
905-836-5445 

> On Jul 31, 2017, at 1:37 PM, jhchinn  wrote:
> 
> Bogdan,
> 
> Is there any other advice on how to proceed?
> 
> Thanks,
> 
> Jerry
> 
> 
> 
> --
> View this message in context: 
> http://opensips-open-sip-server.1449251.n2.nabble.com/User-Management-frame-in-OpenSIPS-CP-has-no-display-tp7608166p7608194.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

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


Re: [OpenSIPS-Users] User Management frame in OpenSIPS-CP has no display

2017-07-31 Thread jhchinn
Bogdan,

Is there any other advice on how to proceed?

Thanks,

Jerry



--
View this message in context: 
http://opensips-open-sip-server.1449251.n2.nabble.com/User-Management-frame-in-OpenSIPS-CP-has-no-display-tp7608166p7608194.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] SIP password auth mechanism

2017-07-31 Thread Abdul Basit
Hi Bogdan,

Sorry for very late reply. I couldn't find any implementation if *EC-SRP *yet.

However, Ejabbered implemented https://en.wikipedia.org/wiki/
Salted_Challenge_Response_Authentication_Mechanism *(SCRAM)*


This is interesting model and can be adopted for SIP based services as
well.

--
regards,

abdul basit | p: +92 32 1416 4196 | o: +92 30 0841 1445

On Fri, Mar 10, 2017 at 8:29 PM, Bogdan-Andrei Iancu 
wrote:

> Hi Abdul,
>
> I see that's a draft, so hard to judge on how far it will get. And
> something like this is not on our roadmap, maybe because of its very, very
> low priority in terms of needs. Do you have any idea if anyone actually
> implemented this ?
>
> Regards,
>
> Bogdan-Andrei Iancu
>   OpenSIPS Founder and Developer
>   http://www.opensips-solutions.com
>
> OpenSIPS Summit May 2017 Amsterdam
>   http://www.opensips.org/events/Summit-2017Amsterdam.html
>
> On 03/09/2017 12:37 PM, Abdul Basit wrote:
>
> Hi Geeks,
>
> While exploring further I found a draft explaining elliptic curve secure
> remote protocol (*EC-SRP*) for SIP authentication
> https://tools.ietf.org/html/draft-liu-sipcore-ec-srp5-03
>
> This explanation seems align with my requirements of not storing password
> in database.
> UAC and UAS both should support EC-SRP.
>
> Do we have any road-map of opensips implementing of EC-RSP or similar
> authentication mechanism?
> I will check the same with PJSIP because i couldn't find any traces on
> their forum as well.
>
> --
> regards,
>
> abdul basit
>
>
> On Wed, Mar 8, 2017 at 9:53 PM, Abdul Basit  wrote:
>
>> Hi Bogdan,
>>
>> I am using PJSIP as UAC and Opensips as UAS with radius for AAA.
>> I wanted to avoid getting into the code but let me check the flexibility.
>>
>> Thank you for your reply :)
>>
>> --
>> regards,
>>
>> abdul basit
>>
>> On Wed, Mar 8, 2017 at 1:34 AM, Bogdan-Andrei Iancu <
>> bog...@opensips.org> wrote:
>>
>>> Hi Abdul,
>>>
>>> Besides the digest auth, there is no other standard auth mechanism for
>>> SIP, AFAIK.
>>>
>>> If you have control over the SIP UAC, of course, you could try to build
>>> your own auth mechanism - OpenSIPS offers enough flexibility in terms of
>>> both header manipulation and data computing.
>>>
>>> Regards,
>>>
>>> Bogdan-Andrei Iancu
>>>   OpenSIPS Founder and Developer
>>>   http://www.opensips-solutions.com
>>>
>>> OpenSIPS Summit May 2017 Amsterdam
>>>   http://www.opensips.org/events/Summit-2017Amsterdam.html
>>>
>>> On 03/07/2017 10:26 AM, Abdul Basit wrote:
>>>
>>> Hi,
>>> I have a scenario where I will create password HASH = SALT + STRING and
>>> save SALT and resulted HASH only in DB. I will transport random STRING
>>> value to my custom sip application as password.
>>> Digest authentication is not comply with this requirement. Is that any
>>> supported authentication mechanism that can fulfill this requirement.
>>> or is there any more appropriate authentication mechanism by
>>> opensips/kamailio?
>>> One of the objectives is in case DB will compromise, users passwords
>>> will not available because random STRING will not store in DB.
>>> Looking forward for suggestions and comments.
>>> -- regards,
>>> abdul basit
>>>
>>> ___
>>> Users mailing 
>>> listUsers@lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>>
>>>
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users