Re: [OpenSIPS-Users] OpenSIPS Control Panel supported OpenSIPS version question

2023-12-08 Thread Bogdan-Andrei Iancu

Hi Ronald,

Thanks for troubleshooting and fixing this. I pushed the fix on git !
https://github.com/OpenSIPS/opensips-cp/commit/492a0eb46dedc1f09297ed331013254cdd5bf1a8

Best regards,

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  https://www.opensips-solutions.com
  https://www.siphub.com

On 08.12.2023 16:57, r...@rvgeerligs.nl wrote:

Hi Bogan-Andrei,

Show errors was not an otion: I get error after log in. Instead I did 
the following:


using tail -f on apache error log file


calling call center on the left menu and result is blank page

[..]


calling TLS management on the left panel and result is blank page

[..]


Calling UAC Registrant on the left menu and result is blank page

[..]


--

diff /var/www/html/opensipscp/web/common/tools/tviewer/tviewer.php 
/var/www/html/opensips-cp/web/common/tools/tviewer/tviewer.php



68,72c68,70
< if 
(isset($custom_config[$module_id][$_SESSION[$module_id]['submenu_item_id']]['custom_action_columns']) 
{

< for ($i=0; $i
< if 
(isset($custom_config[$module_id][$_SESSION[$module_id]['submenu_item_id']]['custom_action_columns'][$i]['action_script']) 
&& 
$custom_config[$module_id][$_SESSION[$module_id]['submenu_item_id']]['custom_action_columns'][$i]['action_script']!="" 
&& 
file_exists($custom_config[$module_id][$_SESSION[$module_id]['submenu_item_id']]['custom_action_columns'][$i]['action_script']))
< 
require($custom_config[$module_id][$_SESSION[$module_id]['submenu_item_id']]['custom_action_columns'][$i]['action_script']);

< }
---
> for ($i=0; 
$i$i++) {
> if 
(isset($custom_config[$module_id][$_SESSION[$module_id]['submenu_item_id']]['custom_action_columns'][$i]['action_script']) 
&& 
$custom_config[$module_id][$_SESSION[$module_id]['submenu_item_id']]['custom_action_columns'][$i]['action_script']!="" 
&& 
file_exists($custom_config[$module_id][$_SESSION[$module_id]['submenu_item_id']]['custom_action_columns'][$i]['action_script']))
> 
require($custom_config[$module_id][$_SESSION[$module_id]['submenu_item_id']]['custom_action_columns'][$i]['action_script']);

85,89c83,85
< if 
(isset($custom_config[$module_id][$_SESSION[$module_id]['submenu_item_id']]['custom_action_buttons'])) 
{

< for ($i=0; $i
< if 
(isset($custom_config[$module_id][$_SESSION[$module_id]['submenu_item_id']]['custom_action_buttons'][$i]['action_script']) 
&& 
$custom_config[$module_id][$_SESSION[$module_id]['submenu_item_id']]['custom_action_buttons'][$i]['action_script']!="" 
&& 
file_exists($custom_config[$module_id][$_SESSION[$module_id]['submenu_item_id']]['custom_action_buttons'][$i]['action_script']))
< 
require($custom_config[$module_id][$_SESSION[$module_id]['submenu_item_id']]['custom_action_buttons'][$i]['action_script']);

< }
---
> for ($i=0; 
$i$i++) {
> if 
(isset($custom_config[$module_id][$_SESSION[$module_id]['submenu_item_id']]['custom_action_buttons'][$i]['action_script']) 
&& 
$custom_config[$module_id][$_SESSION[$module_id]['submenu_item_id']]['custom_action_buttons'][$i]['action_script']!="" 
&& 
file_exists($custom_config[$module_id][$_SESSION[$module_id]['submenu_item_id']]['custom_action_buttons'][$i]['action_script']))
> 
require($custom_config[$module_id][$_SESSION[$module_id]['submenu_item_id']]['custom_action_buttons'][$i]['action_script']);

98,99c94
< if 
(isset($custom_config[$module_id][$_SESSION[$module_id]['submenu_item_id']]['custom_search']['enabled']) 
&&
< 
$custom_config[$module_id][$_SESSION[$module_id]['submenu_item_id']]['custom_search']['enabled'])

---
> if 
($custom_config[$module_id][$_SESSION[$module_id]['submenu_item_id']]['custom_search']['enabled'])



I hope this is enough?

Regards,

Ronald

December 8, 2023 at 8:39 AM, "Bogdan-Andrei Iancu" 
> 
wrote:


Hi Ronald,

yes, please check for ERR or WARN in php.

Regards,

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
   https://www.opensips-solutions.com
   https://www.siphub.com

On 07.12.2023 22:26, r...@rvgeerligs.nl wrote:

Hi Bogdan-Andrei,
The others like adresses and dialplan or dynamic routing (very
important one) work and the dialogues give the right answers.
No reaction means blank page.
Want me to enable PHP error messages?
Regards,
Ronald

December 7, 2023 at 6:18 PM, "Bogdan-Andrei Iancu"
mailto:bog...@opensips.org?to=%22Bogdan-Andrei%20Iancu%22%20%3Cbogdan%40opensips.org%3E>>
wrote:

Hi Ronald,

Tool as Addresses or Diaplan are still working in 9.3.4 ?
and just to clarify, what exactly means "no reaction"?
when you click on the "Call Center" tool, you still have
the old tool in the main right window? or is it turning
blank ?

Regards,

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
   https://www.opensips-solutions.com
   

Re: [OpenSIPS-Users] OpenSIPS Control Panel supported OpenSIPS version question

2023-12-07 Thread Bogdan-Andrei Iancu

Hi Ronald,

yes, please check for ERR or WARN in php.

Regards,

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  https://www.opensips-solutions.com
  https://www.siphub.com

On 07.12.2023 22:26, r...@rvgeerligs.nl wrote:

Hi Bogdan-Andrei,

The others like adresses and dialplan or dynamic routing (very 
important one) work and the dialogues give the right answers.

No reaction means blank page.

Want me to enable PHP error messages?

Regards,

Ronald

December 7, 2023 at 6:18 PM, "Bogdan-Andrei Iancu" 
> 
wrote:


Hi Ronald,

Tool as Addresses or Diaplan are still working in 9.3.4 ? and just
to clarify, what exactly means "no reaction"? when you click on
the "Call Center" tool, you still have the old tool in the main
right window? or is it turning blank ?

Regards,

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
   https://www.opensips-solutions.com
   https://www.siphub.com

On 07.12.2023 15:44, r...@rvgeerligs.nl wrote:

Hi Bogdan,
Short answer: yes.
Did not change anything in modules.inc.php.
I have 2 directories opensips-cp and opensipscp, containing
9.3.3 and 9.3.4 respectively. also configured in apache2.
Copied the db.inc.php from the 9.3.3 to the 9.3.4 directory.
Regards,
Ronald Geerligs

December 7, 2023 at 9:08 AM, "Bogdan-Andrei Iancu"
mailto:bog...@opensips.org?to=%22Bogdan-Andrei%20Iancu%22%20%3Cbogdan%40opensips.org%3E>>
wrote:

Hi Ronald,

So same server with an OpenSIPS 3.4 works with OCP 9.3.3,
but not with OCP 9.3.4 - the only difference between the 2
tests is the version of OCP, still exactly the same env is
used, right ? Any setting in the modules.inc.php ?

Regards,

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
   https://www.opensips-solutions.com
   https://www.siphub.com

On 06.12.2023 20:58, r...@rvgeerligs.nl wrote:

Hi all,
I do not know where to post this, but maybe it is all
right.
I use:
Opensips 3.4 compiled on Oracle VM ARM Ubuntu 22.04.2
LTS - php 7.4 with OCP 9.3.3. Everything works!
Installed OCP 9.3.4 and many menues on the left side
have no reaction:
CallCenter
keepalived
TLS management !
UAC registrant
SMPP Gateway
TCP Management
Regards,
Ronald Geerligs

October 2, 2023 at 8:49 AM, "Răzvan Crainea"
mailto:raz...@opensips.org?to=%22R%C4%83zvan%20Crainea%22%20%3Crazvan%40opensips.org%3E>>
wrote:

Hi, Nineto!
Although it was not already released, OpenSIPS
master branch should be
compatible with OpenSIPS 3.4. The compatibility
process is not yet
complete, therefore a full release (9.3.4) is not
available yet for
OpenSIPS 3.4.
Best regards,
Răzvan Crainea
OpenSIPS Core Developer / SIPhub CTO
http://www.opensips-solutions.com/ /
https://www.siphub.com/
On 9/29/23 19:15, Nine to one wrote:

Hello OpenSIPS Control Panel developers,
From website OCP only mentioned support up to
OpenSIPS 3.3, I am using
3.4, so want to know if current OCP already
support OpenSIPS 3.4 or not.
Thanks,
Nineto
___
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


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


Re: [OpenSIPS-Users] OpenSIPS Control Panel supported OpenSIPS version question

2023-12-07 Thread Bogdan-Andrei Iancu

Hi Ronald,

Tool as Addresses or Diaplan are still working in 9.3.4 ? and just to 
clarify, what exactly means "no reaction"? when you click on the "Call 
Center" tool, you still have the old tool in the main right window? or 
is it turning blank ?


Regards,

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  https://www.opensips-solutions.com
  https://www.siphub.com

On 07.12.2023 15:44, r...@rvgeerligs.nl wrote:

Hi Bogdan,

Short answer: yes.
Did not change anything in modules.inc.php.

I have 2 directories opensips-cp and opensipscp, containing 9.3.3 and 
9.3.4 respectively. also configured in apache2.

Copied the db.inc.php from the 9.3.3 to the 9.3.4 directory.

Regards,

Ronald Geerligs

December 7, 2023 at 9:08 AM, "Bogdan-Andrei Iancu" 
> 
wrote:


Hi Ronald,

So same server with an OpenSIPS 3.4 works with OCP 9.3.3, but not
with OCP 9.3.4 - the only difference between the 2 tests is the
version of OCP, still exactly the same env is used, right ? Any
setting in the modules.inc.php ?

Regards,

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
   https://www.opensips-solutions.com
   https://www.siphub.com

On 06.12.2023 20:58, r...@rvgeerligs.nl wrote:

Hi all,
I do not know where to post this, but maybe it is all right.
I use:
Opensips 3.4 compiled on Oracle VM ARM Ubuntu 22.04.2 LTS -
php 7.4 with OCP 9.3.3. Everything works!
Installed OCP 9.3.4 and many menues on the left side have no
reaction:
CallCenter
keepalived
TLS management !
UAC registrant
SMPP Gateway
TCP Management
Regards,
Ronald Geerligs

October 2, 2023 at 8:49 AM, "Răzvan Crainea"
mailto:raz...@opensips.org?to=%22R%C4%83zvan%20Crainea%22%20%3Crazvan%40opensips.org%3E>>
wrote:

Hi, Nineto!
Although it was not already released, OpenSIPS master
branch should be
compatible with OpenSIPS 3.4. The compatibility process is
not yet
complete, therefore a full release (9.3.4) is not
available yet for
OpenSIPS 3.4.
Best regards,
Răzvan Crainea
OpenSIPS Core Developer / SIPhub CTO
http://www.opensips-solutions.com/ / https://www.siphub.com/
On 9/29/23 19:15, Nine to one wrote:

Hello OpenSIPS Control Panel developers,
From website OCP only mentioned support up to OpenSIPS
3.3, I am using
3.4, so want to know if current OCP already support
OpenSIPS 3.4 or not.
Thanks,
Nineto
___
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


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


Re: [OpenSIPS-Users] OpenSIPS Control Panel supported OpenSIPS version question

2023-12-07 Thread Bogdan-Andrei Iancu

Hi Ronald,

So same server with an OpenSIPS 3.4 works with OCP 9.3.3, but not with 
OCP 9.3.4 - the only difference between the 2 tests is the version of 
OCP, still exactly the same env is used, right ? Any setting in the 
modules.inc.php ?


Regards,

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  https://www.opensips-solutions.com
  https://www.siphub.com

On 06.12.2023 20:58, r...@rvgeerligs.nl wrote:

Hi all,

I do not know where to post this, but maybe it is all right.

I use:
Opensips 3.4 compiled on Oracle VM ARM Ubuntu 22.04.2 LTS - php 7.4 
with OCP 9.3.3. Everything works!

Installed OCP 9.3.4 and many menues on the left side have no reaction:
CallCenter
keepalived
TLS management !
UAC registrant
SMPP Gateway
TCP Management

Regards,

Ronald Geerligs


October 2, 2023 at 8:49 AM, "Răzvan Crainea" > 
wrote:


Hi, Nineto!

Although it was not already released, OpenSIPS master branch
should be
compatible with OpenSIPS 3.4. The compatibility process is not yet
complete, therefore a full release (9.3.4) is not available yet for
OpenSIPS 3.4.

Best regards,

Răzvan Crainea
OpenSIPS Core Developer / SIPhub CTO
http://www.opensips-solutions.com/ / https://www.siphub.com/

On 9/29/23 19:15, Nine to one wrote:

Hello OpenSIPS Control Panel developers,
From website OCP only mentioned support up to OpenSIPS 3.3, I
am using
3.4, so want to know if current OCP already support OpenSIPS
3.4 or not.
Thanks,
Nineto
___
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
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] OpenSIPS Control Panel supported OpenSIPS version question

2023-12-06 Thread rvg
Hi all,

I do not know where to post this, but maybe it is all right.

I use:
Opensips 3.4 compiled on Oracle VM ARM Ubuntu 22.04.2 LTS - php 7.4 with OCP 
9.3.3. Everything works!
Installed OCP 9.3.4 and many menues on the left side have no reaction:
CallCenter
keepalived
TLS management !
UAC registrant
SMPP Gateway
TCP Management

Regards,

Ronald Geerligs




October 2, 2023 at 8:49 AM, "Răzvan Crainea"  wrote:


> 
> Hi, Nineto!
> 
> Although it was not already released, OpenSIPS master branch should be 
> compatible with OpenSIPS 3.4. The compatibility process is not yet 
> complete, therefore a full release (9.3.4) is not available yet for 
> OpenSIPS 3.4.
> 
> Best regards,
> 
> Răzvan Crainea
> OpenSIPS Core Developer / SIPhub CTO
> http://www.opensips-solutions.com/ / https://www.siphub.com/
> 
> On 9/29/23 19:15, Nine to one wrote:
> 
> > 
> > Hello OpenSIPS Control Panel developers,
> >  
> >  From website OCP only mentioned support up to OpenSIPS 3.3, I am using 
> >  3.4, so want to know if current OCP already support OpenSIPS 3.4 or not.
> >  
> >  Thanks,
> >  Nineto
> >  
> >  ___
> >  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] OpenSIPS Control Panel supported OpenSIPS version question

2023-10-03 Thread Nine to one
Hi Răzvan,

Thanks for advise this.
At the point in time I installed OpenSIPS 3.3 in order to install OCP
OpenSIPS Control Panel.

I am not a PHP developer, but when I run OCP I found many issues with
Postgres, I use an external Postgres, so I modified the source in order to
let this Postgres version works, here are several fixes :
https://github.com/9to1url/opensips-cp/commit/b47702907f166d049641d99cff956e1f25423d94

Since I am not a PHP developer so let it work both for MySQL and Postgres
is not easy job for me. Might be you can consider to update your code to
make it works for both. :-)

Thanks,
Nineto

Răzvan Crainea  於 2023年10月2日 週一 上午5:36寫道:

> Hi, Nineto!
>
> Although it was not already released, OpenSIPS master branch should be
> compatible with OpenSIPS 3.4. The compatibility process is not yet
> complete, therefore a full release (9.3.4) is not available yet for
> OpenSIPS 3.4.
>
> Best regards,
>
> Răzvan Crainea
> OpenSIPS Core Developer / SIPhub CTO
> http://www.opensips-solutions.com / https://www.siphub.com
>
> On 9/29/23 19:15, Nine to one wrote:
> > Hello OpenSIPS Control Panel developers,
> >
> >  From website OCP only mentioned support up to OpenSIPS 3.3, I am using
> > 3.4, so want to know if current OCP already support OpenSIPS 3.4 or not.
> >
> > Thanks,
> > Nineto
> >
> > ___
> > 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] OpenSIPS Control Panel supported OpenSIPS version question

2023-10-02 Thread Răzvan Crainea

Hi, Nineto!

Although it was not already released, OpenSIPS master branch should be 
compatible with OpenSIPS 3.4. The compatibility process is not yet 
complete, therefore a full release (9.3.4) is not available yet for 
OpenSIPS 3.4.


Best regards,

Răzvan Crainea
OpenSIPS Core Developer / SIPhub CTO
http://www.opensips-solutions.com / https://www.siphub.com

On 9/29/23 19:15, Nine to one wrote:

Hello OpenSIPS Control Panel developers,

 From website OCP only mentioned support up to OpenSIPS 3.3, I am using 
3.4, so want to know if current OCP already support OpenSIPS 3.4 or not.


Thanks,
Nineto

___
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] OpenSIPS Control Panel

2022-10-19 Thread Bogdan-Andrei Iancu

Hi Nitesh,

Take a look at https://www.opensips.org/Documentation/Script-Routes-3-2

Best regards,

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  https://www.opensips-solutions.com
OpenSIPS Bootcamp 5-16 Dec 2022, online
  https://www.opensips.org/training/OpenSIPS_eBootcamp_2022/

On 10/18/22 4:02 PM, Nitesh Divecha wrote:

Bogdan-Andrei,

Got it working! Much appreciated...

By any chance can you guide me to any kind of OpenSIPS documentation 
explaining the "Routing Logic"? How does the "branch_route" work and 
what does it mean? Is this like a C/Python function/method which 
returns the value?


Any guidance will be greatly appreciated.

Cheers,
Nitesh



On Mon, Oct 17, 2022 at 2:53 AM Bogdan-Andrei Iancu 
mailto:bog...@opensips.org>> wrote:


Hi Nitesh,

Do uac_replace_from( , "$avp(furi)");

Regards,

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
   https://www.opensips-solutions.com  
OpenSIPS Summit 27-30 Sept 2022, Athens
   https://www.opensips.org/events/Summit-2022Athens/  


On 10/14/22 5:55 PM, Nitesh Divecha wrote:

Bogdan-Andrei,

So I gave it a try and got error:

Oct 14 14:42:22 ip-172-31-29-47 opensips[60994]: Oct 14 14:42:22
[61003]  0.
/usr/local/etc/opensips/opensips_residential_2022-10-11.cfg
Oct 14 14:42:22 ip-172-31-29-47 opensips[60994]: Oct 14 14:42:22
[61003] CRITICAL:core:yyerror: parse error in
/usr/local/etc/opensips/opensips_residential_2022-10-11.cfg:456:22-23:
too few param>
Oct 14 14:42:22 ip-172-31-29-47 opensips[60994]: Oct 14 14:42:22
[61003]         xlog("new branch at change_from $ru to $avp(furi)
Oct 14 14:42:22 ip-172-31-29-47 opensips[60994]: ");
Oct 14 14:42:22 ip-172-31-29-47 opensips[60994]: Oct 14 14:42:22
[61003]         if ($avp(furi) != NULL) {
Oct 14 14:42:22 ip-172-31-29-47 opensips[60994]: Oct 14 14:42:22
[61003] uac_replace_from("$avp(furi)");
Oct 14 14:42:22 ip-172-31-29-47 opensips[60994]: Oct 14 14:42:22
[61003]                 ^~
Oct 14 14:42:22 ip-172-31-29-47 opensips[60994]: Oct 14 14:42:22
[61003]         }
Oct 14 14:42:22 ip-172-31-29-47 opensips[60994]: Oct 14 14:42:22
[61003] }


Here is my code:

### uac_registrant module
loadmodule "uac.so"
modparam("uac","restore_mode", "auto")  #auto


### Routing Logic 
# main request routing logic
route{
if (dp_translate(10 ,$rU ,$rU) ) {
                $avp(furi) = "sip:1xxx...@gothamcity.com
";
                #strip(1);

                if (!do_routing(0)) {
                        send_reply(500,"No PSTN Route found");
                        exit;
                }

                t_on_branch("change_from");
                route(relay);
                exit;
        }
}

branch_route[change_from] {
        xlog("new branch at change_from $ru to $avp(furi)\n");
        if ($avp(furi) != NULL) {
                uac_replace_from("$avp(furi)");
        }
}


NOTE: This is my first time playing with C-style code... Trying
to learn what branches do/return, etc...

Rest of the code is default residential cfg.

Cheers,
Nitesh




On Thu, Oct 13, 2022 at 10:19 AM Nitesh Divecha
mailto:aviator.nites...@gmail.com>>
wrote:

Bogdan-Andrei,

Thanks for your feedback...

Yes, the remote SIP server expects FROM HEADER (Calling
Identity) in order to authenticate the caller to
make outbound calls.

Where in cfg do I implement uac_replace_from() ? Is it in
Routing Logic or where modules are declared?

Also what happens if multiple DID providers are implemented
in future? How will it affect the cfg file? Can we just
implement via Control Panel?

Cheers,
Nitesh





On Mon, Oct 10, 2022 at 9:42 AM Bogdan-Andrei Iancu
mailto:bog...@opensips.org>> wrote:

Hi Nitesh,

In SIP, registration is done for receiving calls, it does
not impact sending calls. So, define the remote server as
GW in Dynamic Route and simply route the calls to it. 
Note that maybe the remote server will expect you to use
the as FROM hdr (calling identity) the AOR (SIP address)
you are registering with, so maybe you should be an
uac_replace_from() in cfg when sending to the GW.

Best regards,

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
   https://www.opensips-solutions.com  

OpenSIPS Summit 27-30 Sept 2022, Athens
   https://www.opensips.org/events/Summit-2022Athens/  

Re: [OpenSIPS-Users] OpenSIPS Control Panel

2022-10-18 Thread Nitesh Divecha
Bogdan-Andrei,

Got it working! Much appreciated...

By any chance can you guide me to any kind of OpenSIPS documentation
explaining the "Routing Logic"? How does the "branch_route" work and what
does it mean? Is this like a C/Python function/method which returns the
value?

Any guidance will be greatly appreciated.

Cheers,
Nitesh



On Mon, Oct 17, 2022 at 2:53 AM Bogdan-Andrei Iancu 
wrote:

> Hi Nitesh,
>
> Do uac_replace_from( , "$avp(furi)");
>
> Regards,
>
> Bogdan-Andrei Iancu
>
> OpenSIPS Founder and Developer
>   https://www.opensips-solutions.com
> OpenSIPS Summit 27-30 Sept 2022, Athens
>   https://www.opensips.org/events/Summit-2022Athens/
>
> On 10/14/22 5:55 PM, Nitesh Divecha wrote:
>
> Bogdan-Andrei,
>
> So I gave it a try and got error:
>
> Oct 14 14:42:22 ip-172-31-29-47 opensips[60994]: Oct 14 14:42:22 [61003]
>  0. /usr/local/etc/opensips/opensips_residential_2022-10-11.cfg
> Oct 14 14:42:22 ip-172-31-29-47 opensips[60994]: Oct 14 14:42:22 [61003]
> CRITICAL:core:yyerror: parse error in
> /usr/local/etc/opensips/opensips_residential_2022-10-11.cfg:456:22-23: too
> few param>
> Oct 14 14:42:22 ip-172-31-29-47 opensips[60994]: Oct 14 14:42:22 [61003]
>   xlog("new branch at change_from $ru to $avp(furi)
> Oct 14 14:42:22 ip-172-31-29-47 opensips[60994]: ");
> Oct 14 14:42:22 ip-172-31-29-47 opensips[60994]: Oct 14 14:42:22 [61003]
>   if ($avp(furi) != NULL) {
> Oct 14 14:42:22 ip-172-31-29-47 opensips[60994]: Oct 14 14:42:22 [61003]
>   uac_replace_from("$avp(furi)");
> Oct 14 14:42:22 ip-172-31-29-47 opensips[60994]: Oct 14 14:42:22 [61003]
>   ^~
> Oct 14 14:42:22 ip-172-31-29-47 opensips[60994]: Oct 14 14:42:22 [61003]
>   }
> Oct 14 14:42:22 ip-172-31-29-47 opensips[60994]: Oct 14 14:42:22 [61003] }
>
>
> Here is my code:
>
> ### uac_registrant module
> loadmodule "uac.so"
> modparam("uac","restore_mode", "auto")  #auto
>
>
> ### Routing Logic 
> # main request routing logic
> route{
> if (dp_translate(10 ,$rU ,$rU) ) {
> $avp(furi) = "sip:1xxx...@gothamcity.com";
> #strip(1);
>
> if (!do_routing(0)) {
> send_reply(500,"No PSTN Route found");
> exit;
> }
>
> t_on_branch("change_from");
> route(relay);
> exit;
> }
> }
>
> branch_route[change_from] {
> xlog("new branch at change_from $ru to $avp(furi)\n");
> if ($avp(furi) != NULL) {
> uac_replace_from("$avp(furi)");
> }
> }
>
>
> NOTE: This is my first time playing with C-style code... Trying to learn
> what branches do/return, etc...
>
> Rest of the code is default residential cfg.
>
> Cheers,
> Nitesh
>
>
>
>
> On Thu, Oct 13, 2022 at 10:19 AM Nitesh Divecha <
> aviator.nites...@gmail.com> wrote:
>
>> Bogdan-Andrei,
>>
>> Thanks for your feedback...
>>
>> Yes, the remote SIP server expects FROM HEADER (Calling Identity) in
>> order to authenticate the caller to make outbound calls.
>>
>> Where in cfg do I implement uac_replace_from() ? Is it in Routing Logic
>> or where modules are declared?
>>
>> Also what happens if multiple DID providers are implemented in future?
>> How will it affect the cfg file? Can we just implement via Control Panel?
>>
>> Cheers,
>> Nitesh
>>
>>
>>
>>
>>
>> On Mon, Oct 10, 2022 at 9:42 AM Bogdan-Andrei Iancu 
>> wrote:
>>
>>> Hi Nitesh,
>>>
>>> In SIP, registration is done for receiving calls, it does not impact
>>> sending calls. So, define the remote server as GW in Dynamic Route and
>>> simply route the calls to it.  Note that maybe the remote server will
>>> expect you to use the as FROM hdr (calling identity) the AOR (SIP address)
>>> you are registering with, so maybe you should be an uac_replace_from() in
>>> cfg when sending to the GW.
>>>
>>> Best regards,
>>>
>>> Bogdan-Andrei Iancu
>>>
>>> OpenSIPS Founder and Developer
>>>   https://www.opensips-solutions.com
>>> OpenSIPS Summit 27-30 Sept 2022, Athens
>>>   https://www.opensips.org/events/Summit-2022Athens/
>>>
>>> On 10/7/22 9:00 PM, Nitesh Divecha wrote:
>>>
>>> Hello All,
>>>
>>> Anyone using OpenSIPS CP 9.3.2? Need small help!
>>>
>>> I got OpenSIPS 3.3.1 running and I can make calls out to the gateway
>>> (SIP trunk) without any problems.
>>>
>>> My provider issued me a DID with user/pass and I was able to configure
>>> them under "UAC Registrant" and registered to a remote server.
>>>
>>> Question is - how can I route calls to "UAC Registrant"? From the
>>> "Dynamic Routing" menu I can only route calls to Gateway. How can I route
>>> calls to "UAC Registrant"?
>>>
>>> Any suggestions?
>>>
>>> Thank you in advance!
>>>
>>> Cheers,
>>> Nitesh
>>>
>>> ___
>>> Users mailing 
>>> listUsers@lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>>
>>>
>>>
>
___
Users mailing list

Re: [OpenSIPS-Users] OpenSIPS Control Panel

2022-10-17 Thread Bogdan-Andrei Iancu

Hi Nitesh,

Do uac_replace_from( , "$avp(furi)");

Regards,

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  https://www.opensips-solutions.com
OpenSIPS Summit 27-30 Sept 2022, Athens
  https://www.opensips.org/events/Summit-2022Athens/

On 10/14/22 5:55 PM, Nitesh Divecha wrote:

Bogdan-Andrei,

So I gave it a try and got error:

Oct 14 14:42:22 ip-172-31-29-47 opensips[60994]: Oct 14 14:42:22 
[61003]  0. /usr/local/etc/opensips/opensips_residential_2022-10-11.cfg
Oct 14 14:42:22 ip-172-31-29-47 opensips[60994]: Oct 14 14:42:22 
[61003] CRITICAL:core:yyerror: parse error in 
/usr/local/etc/opensips/opensips_residential_2022-10-11.cfg:456:22-23: 
too few param>
Oct 14 14:42:22 ip-172-31-29-47 opensips[60994]: Oct 14 14:42:22 
[61003]         xlog("new branch at change_from $ru to $avp(furi)

Oct 14 14:42:22 ip-172-31-29-47 opensips[60994]: ");
Oct 14 14:42:22 ip-172-31-29-47 opensips[60994]: Oct 14 14:42:22 
[61003]         if ($avp(furi) != NULL) {
Oct 14 14:42:22 ip-172-31-29-47 opensips[60994]: Oct 14 14:42:22 
[61003]                 uac_replace_from("$avp(furi)");
Oct 14 14:42:22 ip-172-31-29-47 opensips[60994]: Oct 14 14:42:22 
[61003]                 ^~
Oct 14 14:42:22 ip-172-31-29-47 opensips[60994]: Oct 14 14:42:22 
[61003]         }
Oct 14 14:42:22 ip-172-31-29-47 opensips[60994]: Oct 14 14:42:22 
[61003] }



Here is my code:

### uac_registrant module
loadmodule "uac.so"
modparam("uac","restore_mode", "auto")  #auto


### Routing Logic 
# main request routing logic
route{
if (dp_translate(10 ,$rU ,$rU) ) {
                $avp(furi) = "sip:1xxx...@gothamcity.com 
";

                #strip(1);

                if (!do_routing(0)) {
                        send_reply(500,"No PSTN Route found");
                        exit;
                }

                t_on_branch("change_from");
                route(relay);
                exit;
        }
}

branch_route[change_from] {
        xlog("new branch at change_from $ru to $avp(furi)\n");
        if ($avp(furi) != NULL) {
                uac_replace_from("$avp(furi)");
        }
}


NOTE: This is my first time playing with C-style code... Trying to 
learn what branches do/return, etc...


Rest of the code is default residential cfg.

Cheers,
Nitesh




On Thu, Oct 13, 2022 at 10:19 AM Nitesh Divecha 
mailto:aviator.nites...@gmail.com>> wrote:


Bogdan-Andrei,

Thanks for your feedback...

Yes, the remote SIP server expects FROM HEADER (Calling Identity)
in order to authenticate the caller to make outbound calls.

Where in cfg do I implement uac_replace_from() ? Is it in Routing
Logic or where modules are declared?

Also what happens if multiple DID providers are implemented in
future? How will it affect the cfg file? Can we just implement via
Control Panel?

Cheers,
Nitesh





On Mon, Oct 10, 2022 at 9:42 AM Bogdan-Andrei Iancu
mailto:bog...@opensips.org>> wrote:

Hi Nitesh,

In SIP, registration is done for receiving calls, it does not
impact sending calls. So, define the remote server as GW in
Dynamic Route and simply route the calls to it.  Note that
maybe the remote server will expect you to use the as FROM hdr
(calling identity) the AOR (SIP address) you are registering
with, so maybe you should be an uac_replace_from() in cfg when
sending to the GW.

Best regards,

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
   https://www.opensips-solutions.com  

OpenSIPS Summit 27-30 Sept 2022, Athens
   https://www.opensips.org/events/Summit-2022Athens/  


On 10/7/22 9:00 PM, Nitesh Divecha wrote:

Hello All,

Anyone using OpenSIPS CP 9.3.2? Need small help!

I got OpenSIPS 3.3.1 running and I can make calls out to the
gateway (SIP trunk) without any problems.

My provider issued me a DID with user/pass and I was able to
configure them under "UAC Registrant" and registered to a
remote server.

Question is - how can I route calls to "UAC Registrant"? From
the "Dynamic Routing" menu I can only route calls to Gateway.
How can I route calls to "UAC Registrant"?

Any suggestions?

Thank you in advance!

Cheers,
Nitesh

___
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] OpenSIPS Control Panel

2022-10-14 Thread Nitesh Divecha
Bogdan-Andrei,

So I gave it a try and got error:

Oct 14 14:42:22 ip-172-31-29-47 opensips[60994]: Oct 14 14:42:22 [61003]
 0. /usr/local/etc/opensips/opensips_residential_2022-10-11.cfg
Oct 14 14:42:22 ip-172-31-29-47 opensips[60994]: Oct 14 14:42:22 [61003]
CRITICAL:core:yyerror: parse error in
/usr/local/etc/opensips/opensips_residential_2022-10-11.cfg:456:22-23: too
few param>
Oct 14 14:42:22 ip-172-31-29-47 opensips[60994]: Oct 14 14:42:22 [61003]
  xlog("new branch at change_from $ru to $avp(furi)
Oct 14 14:42:22 ip-172-31-29-47 opensips[60994]: ");
Oct 14 14:42:22 ip-172-31-29-47 opensips[60994]: Oct 14 14:42:22 [61003]
  if ($avp(furi) != NULL) {
Oct 14 14:42:22 ip-172-31-29-47 opensips[60994]: Oct 14 14:42:22 [61003]
  uac_replace_from("$avp(furi)");
Oct 14 14:42:22 ip-172-31-29-47 opensips[60994]: Oct 14 14:42:22 [61003]
  ^~
Oct 14 14:42:22 ip-172-31-29-47 opensips[60994]: Oct 14 14:42:22 [61003]
  }
Oct 14 14:42:22 ip-172-31-29-47 opensips[60994]: Oct 14 14:42:22 [61003] }


Here is my code:

### uac_registrant module
loadmodule "uac.so"
modparam("uac","restore_mode", "auto")  #auto


### Routing Logic 
# main request routing logic
route{
if (dp_translate(10 ,$rU ,$rU) ) {
$avp(furi) = "sip:1xxx...@gothamcity.com";
#strip(1);

if (!do_routing(0)) {
send_reply(500,"No PSTN Route found");
exit;
}

t_on_branch("change_from");
route(relay);
exit;
}
}

branch_route[change_from] {
xlog("new branch at change_from $ru to $avp(furi)\n");
if ($avp(furi) != NULL) {
uac_replace_from("$avp(furi)");
}
}


NOTE: This is my first time playing with C-style code... Trying to learn
what branches do/return, etc...

Rest of the code is default residential cfg.

Cheers,
Nitesh




On Thu, Oct 13, 2022 at 10:19 AM Nitesh Divecha 
wrote:

> Bogdan-Andrei,
>
> Thanks for your feedback...
>
> Yes, the remote SIP server expects FROM HEADER (Calling Identity) in order
> to authenticate the caller to make outbound calls.
>
> Where in cfg do I implement uac_replace_from() ? Is it in Routing Logic
> or where modules are declared?
>
> Also what happens if multiple DID providers are implemented in future? How
> will it affect the cfg file? Can we just implement via Control Panel?
>
> Cheers,
> Nitesh
>
>
>
>
>
> On Mon, Oct 10, 2022 at 9:42 AM Bogdan-Andrei Iancu 
> wrote:
>
>> Hi Nitesh,
>>
>> In SIP, registration is done for receiving calls, it does not impact
>> sending calls. So, define the remote server as GW in Dynamic Route and
>> simply route the calls to it.  Note that maybe the remote server will
>> expect you to use the as FROM hdr (calling identity) the AOR (SIP address)
>> you are registering with, so maybe you should be an uac_replace_from() in
>> cfg when sending to the GW.
>>
>> Best regards,
>>
>> Bogdan-Andrei Iancu
>>
>> OpenSIPS Founder and Developer
>>   https://www.opensips-solutions.com
>> OpenSIPS Summit 27-30 Sept 2022, Athens
>>   https://www.opensips.org/events/Summit-2022Athens/
>>
>> On 10/7/22 9:00 PM, Nitesh Divecha wrote:
>>
>> Hello All,
>>
>> Anyone using OpenSIPS CP 9.3.2? Need small help!
>>
>> I got OpenSIPS 3.3.1 running and I can make calls out to the gateway (SIP
>> trunk) without any problems.
>>
>> My provider issued me a DID with user/pass and I was able to configure
>> them under "UAC Registrant" and registered to a remote server.
>>
>> Question is - how can I route calls to "UAC Registrant"? From the
>> "Dynamic Routing" menu I can only route calls to Gateway. How can I route
>> calls to "UAC Registrant"?
>>
>> Any suggestions?
>>
>> Thank you in advance!
>>
>> Cheers,
>> Nitesh
>>
>> ___
>> 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


Re: [OpenSIPS-Users] OpenSIPS Control Panel

2022-10-13 Thread Nitesh Divecha
Bogdan-Andrei,

Thanks for your feedback...

Yes, the remote SIP server expects FROM HEADER (Calling Identity) in order
to authenticate the caller to make outbound calls.

Where in cfg do I implement uac_replace_from() ? Is it in Routing Logic or
where modules are declared?

Also what happens if multiple DID providers are implemented in future? How
will it affect the cfg file? Can we just implement via Control Panel?

Cheers,
Nitesh





On Mon, Oct 10, 2022 at 9:42 AM Bogdan-Andrei Iancu 
wrote:

> Hi Nitesh,
>
> In SIP, registration is done for receiving calls, it does not impact
> sending calls. So, define the remote server as GW in Dynamic Route and
> simply route the calls to it.  Note that maybe the remote server will
> expect you to use the as FROM hdr (calling identity) the AOR (SIP address)
> you are registering with, so maybe you should be an uac_replace_from() in
> cfg when sending to the GW.
>
> Best regards,
>
> Bogdan-Andrei Iancu
>
> OpenSIPS Founder and Developer
>   https://www.opensips-solutions.com
> OpenSIPS Summit 27-30 Sept 2022, Athens
>   https://www.opensips.org/events/Summit-2022Athens/
>
> On 10/7/22 9:00 PM, Nitesh Divecha wrote:
>
> Hello All,
>
> Anyone using OpenSIPS CP 9.3.2? Need small help!
>
> I got OpenSIPS 3.3.1 running and I can make calls out to the gateway (SIP
> trunk) without any problems.
>
> My provider issued me a DID with user/pass and I was able to configure
> them under "UAC Registrant" and registered to a remote server.
>
> Question is - how can I route calls to "UAC Registrant"? From the "Dynamic
> Routing" menu I can only route calls to Gateway. How can I route calls to
> "UAC Registrant"?
>
> Any suggestions?
>
> Thank you in advance!
>
> Cheers,
> Nitesh
>
> ___
> 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


Re: [OpenSIPS-Users] OpenSIPS Control Panel

2022-10-10 Thread Bogdan-Andrei Iancu

Hi Nitesh,

In SIP, registration is done for receiving calls, it does not impact 
sending calls. So, define the remote server as GW in Dynamic Route and 
simply route the calls to it.  Note that maybe the remote server will 
expect you to use the as FROM hdr (calling identity) the AOR (SIP 
address) you are registering with, so maybe you should be an 
uac_replace_from() in cfg when sending to the GW.


Best regards,

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  https://www.opensips-solutions.com
OpenSIPS Summit 27-30 Sept 2022, Athens
  https://www.opensips.org/events/Summit-2022Athens/

On 10/7/22 9:00 PM, Nitesh Divecha wrote:

Hello All,

Anyone using OpenSIPS CP 9.3.2? Need small help!

I got OpenSIPS 3.3.1 running and I can make calls out to the gateway 
(SIP trunk) without any problems.


My provider issued me a DID with user/pass and I was able to configure 
them under "UAC Registrant" and registered to a remote server.


Question is - how can I route calls to "UAC Registrant"? From the 
"Dynamic Routing" menu I can only route calls to Gateway. How can I 
route calls to "UAC Registrant"?


Any suggestions?

Thank you in advance!

Cheers,
Nitesh

___
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] OpenSIPS Control Panel missing table?

2022-01-26 Thread Bogdan-Andrei Iancu

Hi Pedro,

For OpenSIPS 3.2 better use Control Panel 8.3.2 [1], not master. The 
master is under heavy devel (future 9.3.2).


[1] http://controlpanel.opensips.org/download.php

Regards,

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  https://www.opensips-solutions.com
OpenSIPS eBootcamp
  https://www.opensips.org/Training/Bootcamp

On 1/26/22 3:38 AM, Pedro Cabarga wrote:


Hello Friends, installed opensips 3.2, opnesips-cli, and opensips-cp 
all from master branch using git….. all seems to be working fine, but 
the Control Panel….after installing the DB schema (mysql) and 
configuring the database, I get this error on almost every module 
“Table 'opensips.tools_config' doesn't exist )”.


I checked all the documentation but can’t find this table 
anywhere……can someone point me in the right direction?


Also, generating the script for trunking, it looks like it creates it 
but can’t find it anywhere.


Thanks,


___
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] opensips control panel error connecting to rules, carrier group

2021-10-29 Thread Pavel Eremin
HI, add  require("../../../common/cfg_comm.php");
before "require("template/header.php");"

works for me. Maybe a little bug.

чт, 21 окт. 2021 г. в 22:12, Eamon Garland :

> Hi Bogdan
> i am using the following for the install
>
> wget https://github.com/OpenSIPS/opensips-cp/archive/master.zip
>
> Regards,
> Eamon
> On Thu, Oct 21, 2021 at 5:55 PM Bogdan-Andrei Iancu 
> wrote:
>
>> Hi Eamon,
>>
>> What version of CP do you use ?
>>
>> Regards,
>>
>> Bogdan-Andrei Iancu
>>
>> OpenSIPS Founder and Developer
>>   https://www.opensips-solutions.com
>> OpenSIPS eBootcamp 2021
>>   https://opensips.org/training/OpenSIPS_eBootcamp_2021/
>>
>> On 10/20/21 8:27 PM, Eamon Garland wrote:
>>
>> Hi
>> i have installed latest version on debian 10 and get the following error
>> when i try to add rules
>>
>>  PHP Fatal error:  Uncaught Error: Call t*o undefined function
>> get_group()* in
>> /var/www/html/opensips-cp/web/tools/system/drouting/template/header.php:33\nStack
>> trace:\n#0
>> /var/www/html/opensips-cp/web/tools/system/drouting/rules.php(24):
>> require()\n#1 {main}\n  thrown in
>> /var/www/html/opensips-cp/web/tools/system/drouting/template/header.php on
>> line 33, referer: http://x.x.x.x/cp/tools/system/drouting/gateways.php
>>
>> [image: cdca5e74-523d-4cc2-b56b-f598aed8535d]
>>
>> ___
>> 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
>>
> ___
> 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] opensips control panel error connecting to rules, carrier group

2021-10-21 Thread Eamon Garland
Hi Bogdan
i am using the following for the install

wget https://github.com/OpenSIPS/opensips-cp/archive/master.zip

Regards,
Eamon
On Thu, Oct 21, 2021 at 5:55 PM Bogdan-Andrei Iancu 
wrote:

> Hi Eamon,
>
> What version of CP do you use ?
>
> Regards,
>
> Bogdan-Andrei Iancu
>
> OpenSIPS Founder and Developer
>   https://www.opensips-solutions.com
> OpenSIPS eBootcamp 2021
>   https://opensips.org/training/OpenSIPS_eBootcamp_2021/
>
> On 10/20/21 8:27 PM, Eamon Garland wrote:
>
> Hi
> i have installed latest version on debian 10 and get the following error
> when i try to add rules
>
>  PHP Fatal error:  Uncaught Error: Call t*o undefined function
> get_group()* in
> /var/www/html/opensips-cp/web/tools/system/drouting/template/header.php:33\nStack
> trace:\n#0
> /var/www/html/opensips-cp/web/tools/system/drouting/rules.php(24):
> require()\n#1 {main}\n  thrown in
> /var/www/html/opensips-cp/web/tools/system/drouting/template/header.php on
> line 33, referer: http://x.x.x.x/cp/tools/system/drouting/gateways.php
>
> [image: cdca5e74-523d-4cc2-b56b-f598aed8535d]
>
> ___
> 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
>
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] opensips control panel error connecting to rules, carrier group

2021-10-21 Thread Bogdan-Andrei Iancu

Hi Eamon,

What version of CP do you use ?

Regards,

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  https://www.opensips-solutions.com
OpenSIPS eBootcamp 2021
  https://opensips.org/training/OpenSIPS_eBootcamp_2021/

On 10/20/21 8:27 PM, Eamon Garland wrote:

Hi
i have installed latest version on debian 10 and get the following 
error when i try to add rules


 PHP Fatal error:  Uncaught Error: Call t*o undefined function 
get_group()* in 
/var/www/html/opensips-cp/web/tools/system/drouting/template/header.php:33\nStack 
trace:\n#0 
/var/www/html/opensips-cp/web/tools/system/drouting/rules.php(24): 
require()\n#1 {main}\n  thrown in 
/var/www/html/opensips-cp/web/tools/system/drouting/template/header.php 
on line 33, referer: http://x.x.x.x/cp/tools/system/drouting/gateways.php


cdca5e74-523d-4cc2-b56b-f598aed8535d

___
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] OpenSIPS Control Panel 8.3.0 was released

2019-07-22 Thread johan de clercq
Thanks Bogdan, I will let you know my findings in a few days. 

-Original Message-
From: Users  On Behalf Of Bogdan-Andrei Iancu
Sent: Monday, July 22, 2019 6:33 PM
To: users@lists.opensips.org; developensips 
Subject: [OpenSIPS-Users] OpenSIPS Control Panel 8.3.0 was released

Hi all,

I know many of you were really axions, so here we have the release of OpenSIPS 
Control Panel 8.3.0, compatible with OpenSIPS 3.0 . So, at this point we have 
the full 3.0 suite in place :).

The OCP 8.3.0 has the same framework/engine as OCP 8.2.4, but it is aligned to 
the specifics of OpenSIPS 3.0 version:

* the MI backend wasaligned to the new MI interface in OpenSIPS (mi_http
module)

* the "TLS Management" tool was update to fit to the DB changed in the tls_mgm 
OpenSIPS module

* new tool "UAC Registrant" was added for provisioning the remote SIP Registrar 
servers

* new tool "SMPP Gateway" was added for provisioning the SMS Center records


Where to check for more or to download it?
 http://controlpanel.opensips.org


Download and enjoy it as it's freshly baked for you,

--
Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
   https://www.opensips-solutions.com
OpenSIPS Summit 2019
   https://www.opensips.org/events/Summit-2019Amsterdam/


___
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] OpenSIPS Control Panel 8.2.4 was released

2018-11-28 Thread Bogdan-Andrei Iancu

Hi John,

Thanks for the testing data, I managed to reproduce and fix it - the fix 
is a bit different from the original intention, but IMO it does a better 
job.


Best regards,

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  https://www.opensips-solutions.com
OpenSIPS Summit 2019
  https://www.opensips.org/events/Summit-2019Amsterdam/

On 11/27/2018 07:07 PM, John Quick wrote:

Please find an SQL dump attached for the acc and sip_trace tables.
When I view this using control panel, the call that is at the top of the CDR 
table is on page 6 of the sip trace table.
The link always sends you to page 1 in sip trace, not to page 6.

John Quick
Smartvox Limited
Tel:   01727-221221


-Original Message-
From: Bogdan-Andrei Iancu 
Sent: 27 November 2018 16:56
To: john.qu...@smartvox.co.uk; users@lists.opensips.org
Subject: Re: [OpenSIPS-Users] OpenSIPS Control Panel 8.2.4 was released

Hi John,

I'm not excluding the issue, as the jumping between the tools in combination 
with the paging is a bit of a complex process. I can dive into if you could 
help me with a data set - an mysql dump for cdrs and siptrace to show the issue 
- I can import the tables and debug it (it is a bit of time consuming to try to 
collect the date by myself) - of course you can send the data off list :)

Regards,

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
https://www.opensips-solutions.com
OpenSIPS Summit 2019
https://www.opensips.org/events/Summit-2019Amsterdam/

On 11/19/2018 03:59 PM, John Quick wrote:

Hello Bogdan,

The link works okay now, but (I think) only if the selected call is on
the first page of results in the siptrace tab.

John Quick
Smartvox Limited



Hi John,

I found a small typo that affected who the link was constructed . See


https://github.com/OpenSIPS/opensips-cp/commit/d50503123477f99b0079570
361407
7b685ca4579

In order to link siptrace to cdrviewer, you need to (a) be sure homer
tool is disabled and (b) siptrace tool is enabled.

Let me know if this fix does the trick for you.

Best regards,

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
 http://www.opensips-solutions.com



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


Re: [OpenSIPS-Users] OpenSIPS Control Panel 8.2.4 was released

2018-11-27 Thread Bogdan-Andrei Iancu

Hi John,

I'm not excluding the issue, as the jumping between the tools in 
combination with the paging is a bit of a complex process. I can dive 
into if you could help me with a data set - an mysql dump for cdrs and 
siptrace to show the issue - I can import the tables and debug it (it is 
a bit of time consuming to try to collect the date by myself) - of 
course you can send the data off list :)


Regards,

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  https://www.opensips-solutions.com
OpenSIPS Summit 2019
  https://www.opensips.org/events/Summit-2019Amsterdam/

On 11/19/2018 03:59 PM, John Quick wrote:

Hello Bogdan,

The link works okay now, but (I think) only if the selected call is on the
first page of results in the siptrace tab.

John Quick
Smartvox Limited



Hi John,

I found a small typo that affected who the link was constructed . See


https://github.com/OpenSIPS/opensips-cp/commit/d50503123477f99b0079570361407
7b685ca4579

In order to link siptrace to cdrviewer, you need to (a) be sure homer
tool is disabled and (b) siptrace tool is enabled.

Let me know if this fix does the trick for you.

Best regards,

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
http://www.opensips-solutions.com



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


Re: [OpenSIPS-Users] OpenSIPS Control Panel 8.2.4 was released

2018-11-19 Thread John Quick
Hello Bogdan,

The link works okay now, but (I think) only if the selected call is on the
first page of results in the siptrace tab.

John Quick
Smartvox Limited


> Hi John,
> 
> I found a small typo that affected who the link was constructed . See
>
https://github.com/OpenSIPS/opensips-cp/commit/d50503123477f99b0079570361407
7b685ca4579
>
> In order to link siptrace to cdrviewer, you need to (a) be sure homer 
> tool is disabled and (b) siptrace tool is enabled.
>
> Let me know if this fix does the trick for you.
>
> Best regards,
>
> Bogdan-Andrei Iancu
>
> OpenSIPS Founder and Developer
>http://www.opensips-solutions.com


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


Re: [OpenSIPS-Users] OpenSIPS Control Panel 8.2.4 was released

2018-11-09 Thread Bogdan-Andrei Iancu

Hi John,

I found a small typo that affected who the link was constructed . See
https://github.com/OpenSIPS/opensips-cp/commit/d50503123477f99b00795703614077b685ca4579

In order to link siptrace to cdrviewer, you need to (a) be sure homer 
tool is disabled and (b) siptrace tool is enabled.


Let me know if this fix does the trick for you.

Best regards,

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  http://www.opensips-solutions.com
OpenSIPS Bootcamp 2018
  http://opensips.org/training/OpenSIPS_Bootcamp_2018/

On 11/08/2018 11:46 AM, John Quick wrote:

Yes, the SIP Trace tab is enabled and can be used directly to view the 
requests/responses for a call.
The CDR Viewer tab is also enabled and it shows me the same call. However, if I 
click on the Sip Call ID for a given call, it acts as a link to a new blank 
page.
It does not open the SIP Trace view as I expected it to do.

This is the link URL. Perhaps "tracer=homer" is significant here - I'm not 
using Homer, just writing all data to MySQL tables:
http://abc.xyz.com:8080/cp/tools/system/cdrviewer/trace.php?tracer=homer=39e32b7a-5d45-1237-beb7-52540058cb88

John Quick
Smartvox Limited
Tel:   01727-221221


-Original Message-
From: Bogdan-Andrei Iancu 
Sent: 07 November 2018 20:57
To: john.qu...@smartvox.co.uk; users@lists.opensips.org
Subject: Re: [OpenSIPS-Users] OpenSIPS Control Panel 8.2.4 was released

Hi John,

So you have the siptrace tool enabled, right ? but the link is broken ?

Best regards,

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
http://www.opensips-solutions.com
OpenSIPS Bootcamp 2018
http://opensips.org/training/OpenSIPS_Bootcamp_2018/

On 11/07/2018 05:08 PM, John Quick wrote:

In the CDR Viewer tab, the Call-ID is shown as a link, but the link is not 
working.
If I click this link, it displays a blank page. I think this used to take you 
to the SIP Trace page and display the data for the selected call.
Data for this call is available if I go directly to the SIP Trace tab and click 
on the Call Info button for the same call.

I've checked the settings in
/config/tools/system/cdrviewer/local.inc.php and they look correct However, I 
have not set up the suggested cron job yet. I assume it not relevant here.

John Quick
Smartvox Limited




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


Re: [OpenSIPS-Users] OpenSIPS Control Panel 8.2.4 was released

2018-11-08 Thread John Quick
Yes, the SIP Trace tab is enabled and can be used directly to view the 
requests/responses for a call.
The CDR Viewer tab is also enabled and it shows me the same call. However, if I 
click on the Sip Call ID for a given call, it acts as a link to a new blank 
page.
It does not open the SIP Trace view as I expected it to do.

This is the link URL. Perhaps "tracer=homer" is significant here - I'm not 
using Homer, just writing all data to MySQL tables:
http://abc.xyz.com:8080/cp/tools/system/cdrviewer/trace.php?tracer=homer=39e32b7a-5d45-1237-beb7-52540058cb88

John Quick
Smartvox Limited
Tel:   01727-221221


-Original Message-
From: Bogdan-Andrei Iancu  
Sent: 07 November 2018 20:57
To: john.qu...@smartvox.co.uk; users@lists.opensips.org
Subject: Re: [OpenSIPS-Users] OpenSIPS Control Panel 8.2.4 was released

Hi John,

So you have the siptrace tool enabled, right ? but the link is broken ?

Best regards,

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
   http://www.opensips-solutions.com
OpenSIPS Bootcamp 2018
   http://opensips.org/training/OpenSIPS_Bootcamp_2018/

On 11/07/2018 05:08 PM, John Quick wrote:
> In the CDR Viewer tab, the Call-ID is shown as a link, but the link is not 
> working.
> If I click this link, it displays a blank page. I think this used to take you 
> to the SIP Trace page and display the data for the selected call.
> Data for this call is available if I go directly to the SIP Trace tab and 
> click on the Call Info button for the same call.
>
> I've checked the settings in 
> /config/tools/system/cdrviewer/local.inc.php and they look correct However, I 
> have not set up the suggested cron job yet. I assume it not relevant here.
>
> John Quick
> Smartvox Limited
>


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


Re: [OpenSIPS-Users] OpenSIPS Control Panel 8.2.4 was released

2018-11-07 Thread Bogdan-Andrei Iancu

Hi John,

So you have the siptrace tool enabled, right ? but the link is broken ?

Best regards,

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  http://www.opensips-solutions.com
OpenSIPS Bootcamp 2018
  http://opensips.org/training/OpenSIPS_Bootcamp_2018/

On 11/07/2018 05:08 PM, John Quick wrote:

In the CDR Viewer tab, the Call-ID is shown as a link, but the link is not 
working.
If I click this link, it displays a blank page. I think this used to take you 
to the SIP Trace page and display the data for the selected call.
Data for this call is available if I go directly to the SIP Trace tab and click 
on the Call Info button for the same call.

I've checked the settings in /config/tools/system/cdrviewer/local.inc.php and 
they look correct
However, I have not set up the suggested cron job yet. I assume it not relevant 
here.

John Quick
Smartvox Limited




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


Re: [OpenSIPS-Users] OpenSIPS Control Panel 8.2.4 was released

2018-11-07 Thread John Quick
In the CDR Viewer tab, the Call-ID is shown as a link, but the link is not 
working.
If I click this link, it displays a blank page. I think this used to take you 
to the SIP Trace page and display the data for the selected call.
Data for this call is available if I go directly to the SIP Trace tab and click 
on the Call Info button for the same call.

I've checked the settings in /config/tools/system/cdrviewer/local.inc.php and 
they look correct
However, I have not set up the suggested cron job yet. I assume it not relevant 
here.

John Quick
Smartvox Limited


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


Re: [OpenSIPS-Users] OpenSIPS Control Panel 8.2.4 was released

2018-11-07 Thread John Quick
Hi Bogdan,

On item 1: Sorry, my mistake. I was looking for the page to change and did not 
notice that the domain name is loaded in the existing text box at the top.

John Quick
Smartvox Limited


-Original Message-
From: Bogdan-Andrei Iancu  
Sent: 06 November 2018 21:12
To: john.qu...@smartvox.co.uk; users@lists.opensips.org
Subject: Re: [OpenSIPS-Users] OpenSIPS Control Panel 8.2.4 was released

HI John,

Thanks for the reports :)

1) I tried to reproduce, but no luck - When Edit button is clicked, the value 
is loaded in the upper text area, so you change it. Do you use the mighty 
"admin" user for this operation ? or an access user with custom permissions ?

2) Indeed, there was missing entry for the tls_mgm module in the 
modules.inc.php file, I fixed it in the git repo.

3) starting with 7.2.3 (las year), the mi_json became the only supported MI 
backend in OCP - the reason is that mi_json is the only one to offer a 
structured / encoded data output that can be easily and reliably parsed by OCP.

Best Regards,

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
   http://www.opensips-solutions.com



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


Re: [OpenSIPS-Users] OpenSIPS Control Panel 8.2.4 was released

2018-11-06 Thread Bogdan-Andrei Iancu

Hi Arto,

Indeed, there is an issue: a newly created access user can got receive 
permissions to manage the access users. Basically only the initial 
"admin" has the ability to create new access users.

We are working on a solution to this issue, thanks for the report.

Best regards,

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  http://www.opensips-solutions.com
OpenSIPS Bootcamp 2018
  http://opensips.org/training/OpenSIPS_Bootcamp_2018/

On 11/06/2018 01:29 PM, Arto Kuiri wrote:

Hi,

I think there is still something at control panel's user management. You cannot 
create another admin user from UI. Even
if you select read-write permission to all modules for new user, it cannot 
access to Users (at top panel).  If you change manually
permissions field at database from "read-write, read-wri" to "all" it will 
work.

I think there should be own permission settings for "Control Panel Users" ?

Best regards,
Arto Kuiri


Lähettäjä: Users  käyttäjän Bogdan-Andrei Iancu 
 puolesta
Lähetetty: maanantai 5. marraskuuta 2018 19.10
Vastaanottaja: john.qu...@smartvox.co.uk; users@lists.opensips.org
Aihe: Re: [OpenSIPS-Users] OpenSIPS Control Panel 8.2.4 was released

Hi John,

Thanks for all your testing - this is something that we so most
appreciate ;).

To help us even more, could you please split the report (you have in the
email) as individual issues and create corresponding tickets on github:
 
https://github.com/OpenSIPS/opensips-cp/issues

Best regards,

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
 http://www.opensips-solutions.com
OpenSIPS Bootcamp 2018
 http://opensips.org/training/OpenSIPS_Bootcamp_2018/

On 11/05/2018 04:59 PM, John Quick wrote:
 Hello Bogdan,

 Thanks for releasing a new version of the Control Panel. There are some
 great new features in this version that I want to try.

 I have been testing OCP v8 on a CentOS 6 server. I'm finding quite a lot of
 errors - it is possible some of these are associated with the operating
 system or the version of PHP I am using. PHP is v 5.3.3

 The most critical problem for me concerns administrator access: I am unable
 to change the password for the admin user.
 As a precaution, I created a new admin user with a different name and then
 tried to revoke the key privileges of the original admin user, but this 
made
 no difference until I edited the source code and changed the tool name
 passed to the get_priv() function as detailed below.

 Here are my full notes on the problems encountered so far and code
 adjustments I have made:
 In login.php: Warns me "It is not safe to rely on the systems timezone
 settings. You are required to use date.timezone or
 date_default_timezone_set() function". As a work-around, I 
added calls to
 date_default_timezone_set("Europe/London") in a couple of places to stop
 these warnings being written.

 Many of the tabs display a blank page. In the httpd log file; the httpd log
 files shows errors about "unexpected [". When I look up the file and 
line
 number shown in the httpd log message, it's always a line that calls the
 die() function to handle failure of an SQL request.
 I found it was due to the use of "errorInfo()[2]". If you remove the 
[2],
 it doesn't give an error and the page is rendered too.

 Used grep to find every case like this:
 # grep -rl "errorInfo()\[" .
 
./users/user_management/template/user_management.main.php
 
./users/acl_management/template/acl_management.main.php
 
./system/dialplan/template/dialplan.main.php
 ./system/dialplan/dialplan.php
 
./system/siptrace/template/tracer.main.php
 
./system/drouting/template/groups.main.php
 
./system/drouting/template/rules.main.php
 
./system/drouting/template/carriers.main.php
 
./system/drouting/template/gateways.main.php
 
./system/drouting/lib/carriers.test.inc.php
 
./system/drouting/lib/carriers.functions.inc.php
 
./system/tls_mgm/lib/data_loader.php
 
./system/loadbalancer/template/loadbalancer.main.php
 
./system/dispatcher/template/dispatcher.main.php
 
./system/dispatcher/template/dispatcher.form.php
 
./system/tviewer/lib/data_loader.php
 
./system/callcenter/lib/data_loader.php
 
./admin/list_admins/template/list_admins.main.php

 Admin Access Control
 I cannot find a way to change the admin password. It always accepts the
 password of "opensips" even after resetting it in the Admin User editing
 form and also deleting it from the field "password" in the
 ocp_admin_privileges table. On further testing, I then found that none of
 the changes I make to the admin user get saved to the DB - not just the
 password, but also the first name and last name fields.

 Access privileges were not working to restrict whether the logged-in user
 could change their own (and other people's) admin privileges.
 Found this was because the get_priv() function was being called with the
 argument set to "list_admins" and that th

Re: [OpenSIPS-Users] OpenSIPS Control Panel 8.2.4 was released

2018-11-06 Thread Bogdan-Andrei Iancu

HI John,

Thanks for the reports :)

1) I tried to reproduce, but no luck - When Edit button is clicked, the 
value is loaded in the upper text area, so you change it. Do you use the 
mighty "admin" user for this operation ? or an access user with custom 
permissions ?


2) Indeed, there was missing entry for the tls_mgm module in the 
modules.inc.php file, I fixed it in the git repo.


3) starting with 7.2.3 (las year), the mi_json became the only supported 
MI backend in OCP - the reason is that mi_json is the only one to offer 
a structured / encoded data output that can be easily and reliably 
parsed by OCP.


Best Regards,

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  http://www.opensips-solutions.com
OpenSIPS Bootcamp 2018
  http://opensips.org/training/OpenSIPS_Bootcamp_2018/

On 11/06/2018 07:14 PM, John Quick wrote:

Hi Bogdan,

Several issues previously mentioned were raised as issues. Thanks for the fixes 
so far.

I don't want to raise issues if it is just my testing at fault, so here are 
some new questions:
1. Should it be possible to edit a record in System>Domains?  When I click 
Edit, the page doesn’t change. I have read-write permission
2. How do you activate the TLS Management tab? I cannot see it
3. Why has support for MI using FIFO been dropped?  It seems you must use 
MI_JSON (which needs the HTTPD module)

John Quick
Smartvox Limited



-Original Message-
From: Bogdan-Andrei Iancu 
Sent: 05 November 2018 17:10
To: john.qu...@smartvox.co.uk; users@lists.opensips.org
Subject: Re: [OpenSIPS-Users] OpenSIPS Control Panel 8.2.4 was released

Hi John,

Thanks for all your testing - this is something that we so most appreciate ;).

To help us even more, could you please split the report (you have in the
email) as individual issues and create corresponding tickets on github:
 https://github.com/OpenSIPS/opensips-cp/issues

Best regards,

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer





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


Re: [OpenSIPS-Users] OpenSIPS Control Panel 8.2.4 was released

2018-11-06 Thread Johan De Clercq
3. This I can confirm mi_json only.

Outlook voor iOS<https://aka.ms/o0ukef> downloaden


Van: Users  namens John Quick 

Verzonden: dinsdag, november 6, 2018 6:16 PM
Aan: 'Bogdan-Andrei Iancu'; users@lists.opensips.org
Onderwerp: Re: [OpenSIPS-Users] OpenSIPS Control Panel 8.2.4 was released

Hi Bogdan,

Several issues previously mentioned were raised as issues. Thanks for the fixes 
so far.

I don't want to raise issues if it is just my testing at fault, so here are 
some new questions:
1. Should it be possible to edit a record in System>Domains? When I click Edit, 
the page doesn’t change. I have read-write permission
2. How do you activate the TLS Management tab? I cannot see it
3. Why has support for MI using FIFO been dropped? It seems you must use 
MI_JSON (which needs the HTTPD module)

John Quick
Smartvox Limited


> -Original Message-
> From: Bogdan-Andrei Iancu 
> Sent: 05 November 2018 17:10
> To: john.qu...@smartvox.co.uk; users@lists.opensips.org
> Subject: Re: [OpenSIPS-Users] OpenSIPS Control Panel 8.2.4 was released
>
> Hi John,
>
>Thanks for all your testing - this is something that we so most appreciate ;).
>
> To help us even more, could you please split the report (you have in the
> email) as individual issues and create corresponding tickets on github:
> https://github.com/OpenSIPS/opensips-cp/issues
>
> Best regards,
>
> Bogdan-Andrei Iancu
>
> OpenSIPS Founder and Developer



___
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] OpenSIPS Control Panel 8.2.4 was released

2018-11-06 Thread John Quick
Hi Bogdan,

Several issues previously mentioned were raised as issues. Thanks for the fixes 
so far.

I don't want to raise issues if it is just my testing at fault, so here are 
some new questions:
1. Should it be possible to edit a record in System>Domains?  When I click 
Edit, the page doesn’t change. I have read-write permission
2. How do you activate the TLS Management tab? I cannot see it
3. Why has support for MI using FIFO been dropped?  It seems you must use 
MI_JSON (which needs the HTTPD module)

John Quick
Smartvox Limited


> -Original Message-
> From: Bogdan-Andrei Iancu  
> Sent: 05 November 2018 17:10
> To: john.qu...@smartvox.co.uk; users@lists.opensips.org
> Subject: Re: [OpenSIPS-Users] OpenSIPS Control Panel 8.2.4 was released
>
> Hi John,
>
>Thanks for all your testing - this is something that we so most appreciate ;).
>
> To help us even more, could you please split the report (you have in the
> email) as individual issues and create corresponding tickets on github:
> https://github.com/OpenSIPS/opensips-cp/issues
>
> Best regards,
>
> Bogdan-Andrei Iancu
>
> OpenSIPS Founder and Developer



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


Re: [OpenSIPS-Users] OpenSIPS Control Panel 8.2.4 was released

2018-11-06 Thread Arto Kuiri
Hi,

I think there is still something at control panel's user management. You cannot 
create another admin user from UI. Even 
if you select read-write permission to all modules for new user, it cannot 
access to Users (at top panel).  If you change manually
permissions field at database from "read-write, read-wri" to "all" it will 
work.

I think there should be own permission settings for "Control Panel Users" ?

Best regards,
Arto Kuiri


Lähettäjä: Users  käyttäjän Bogdan-Andrei 
Iancu  puolesta
Lähetetty: maanantai 5. marraskuuta 2018 19.10
Vastaanottaja: john.qu...@smartvox.co.uk; users@lists.opensips.org
Aihe: Re: [OpenSIPS-Users] OpenSIPS Control Panel 8.2.4 was released

Hi John,

Thanks for all your testing - this is something that we so most
appreciate ;).

To help us even more, could you please split the report (you have in the
email) as individual issues and create corresponding tickets on github:
 
https://github.com/OpenSIPS/opensips-cp/issues

Best regards,

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
 http://www.opensips-solutions.com
OpenSIPS Bootcamp 2018
 http://opensips.org/training/OpenSIPS_Bootcamp_2018/

On 11/05/2018 04:59 PM, John Quick wrote:
 Hello Bogdan,

 Thanks for releasing a new version of the Control Panel. There are some
 great new features in this version that I want to try.

 I have been testing OCP v8 on a CentOS 6 server. I'm finding quite a lot of
 errors - it is possible some of these are associated with the operating
 system or the version of PHP I am using. PHP is v 5.3.3

 The most critical problem for me concerns administrator access: I am unable
 to change the password for the admin user.
 As a precaution, I created a new admin user with a different name and then
 tried to revoke the key privileges of the original admin user, but this 
made
 no difference until I edited the source code and changed the tool name
 passed to the get_priv() function as detailed below.

 Here are my full notes on the problems encountered so far and code
 adjustments I have made:
 In login.php: Warns me "It is not safe to rely on the systems timezone
 settings. You are required to use date.timezone or
 date_default_timezone_set() function". As a work-around, I 
added calls to
 date_default_timezone_set("Europe/London") in a couple of places to stop
 these warnings being written.

 Many of the tabs display a blank page. In the httpd log file; the httpd log
 files shows errors about "unexpected [". When I look up the file and 
line
 number shown in the httpd log message, it's always a line that calls the
 die() function to handle failure of an SQL request.
 I found it was due to the use of "errorInfo()[2]". If you remove the 
[2],
 it doesn't give an error and the page is rendered too.

 Used grep to find every case like this:
 # grep -rl "errorInfo()\[" .
 
./users/user_management/template/user_management.main.php
 
./users/acl_management/template/acl_management.main.php
 
./system/dialplan/template/dialplan.main.php
 ./system/dialplan/dialplan.php
 
./system/siptrace/template/tracer.main.php
 
./system/drouting/template/groups.main.php
 
./system/drouting/template/rules.main.php
 
./system/drouting/template/carriers.main.php
 
./system/drouting/template/gateways.main.php
 
./system/drouting/lib/carriers.test.inc.php
 
./system/drouting/lib/carriers.functions.inc.php
 
./system/tls_mgm/lib/data_loader.php
 
./system/loadbalancer/template/loadbalancer.main.php
 
./system/dispatcher/template/dispatcher.main.php
 
./system/dispatcher/template/dispatcher.form.php
 
./system/tviewer/lib/data_loader.php
 
./system/callcenter/lib/data_loader.php
 
./admin/list_admins/template/list_admins.main.php

 Admin Access Control
 I cannot find a way to change the admin password. It always accepts the
 password of "opensips" even after resetting it in the Admin User editing
 form and also deleting it from the field "password" in the
 ocp_admin_privileges table. On further testing, I then found that none of
 the changes I make to the admin user get saved to the DB - not just the
 password, but also the first name and last name fields.

 Access privileges were not working to restrict whether the logged-in user
 could change their own (and other people's) admin privileges.
 Found this was because the get_priv() function was being called with the
 argument set to "list_admins" and that the arrays used to store access
 privileges only have a key called "user_management" and do not have one for
 "list_admins". There are no lines of code to act as a "catch-all" in 
the
 get_priv() function so if the tool name passed to the function does not
 match any of the known tab names, then it fails to set the session variable
 read_only. The absence of any value is then treated as "grant full access"
 in the corresponding module so it is not very safe.
 As

Re: [OpenSIPS-Users] OpenSIPS Control Panel 8.2.4 was released

2018-11-05 Thread Bogdan-Andrei Iancu

Hi John,

Thanks for all your testing - this is something that we so most 
appreciate ;).


To help us even more, could you please split the report (you have in the 
email) as individual issues and create corresponding tickets on github:

https://github.com/OpenSIPS/opensips-cp/issues

Best regards,

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  http://www.opensips-solutions.com
OpenSIPS Bootcamp 2018
  http://opensips.org/training/OpenSIPS_Bootcamp_2018/

On 11/05/2018 04:59 PM, John Quick wrote:

Hello Bogdan,

Thanks for releasing a new version of the Control Panel. There are some
great new features in this version that I want to try.

I have been testing OCP v8 on a CentOS 6 server. I'm finding quite a lot of
errors - it is possible some of these are associated with the operating
system or the version of PHP I am using. PHP is v 5.3.3

The most critical problem for me concerns administrator access: I am unable
to change the password for the admin user.
As a precaution, I created a new admin user with a different name and then
tried to revoke the key privileges of the original admin user, but this made
no difference until I edited the source code and changed the tool name
passed to the get_priv() function as detailed below.

Here are my full notes on the problems encountered so far and code
adjustments I have made:
In login.php: Warns me "It is not safe to rely on the systems timezone
settings. You are required to use date.timezone or
date_default_timezone_set() function".   As a work-around, I added calls to
date_default_timezone_set("Europe/London") in a couple of places to stop
these warnings being written.

Many of the tabs display a blank page. In the httpd log file; the httpd log
files shows errors about "unexpected [".  When I look up the file and line
number shown in the httpd log message, it's always a line that calls the
die() function to handle failure of an SQL request.
I found it was due to the use of "errorInfo()[2]".  If you remove the [2],
it doesn't give an error and the page is rendered too.

Used grep to find every case like this:
# grep -rl "errorInfo()\[" .
./users/user_management/template/user_management.main.php
./users/acl_management/template/acl_management.main.php
./system/dialplan/template/dialplan.main.php
./system/dialplan/dialplan.php
./system/siptrace/template/tracer.main.php
./system/drouting/template/groups.main.php
./system/drouting/template/rules.main.php
./system/drouting/template/carriers.main.php
./system/drouting/template/gateways.main.php
./system/drouting/lib/carriers.test.inc.php
./system/drouting/lib/carriers.functions.inc.php
./system/tls_mgm/lib/data_loader.php
./system/loadbalancer/template/loadbalancer.main.php
./system/dispatcher/template/dispatcher.main.php
./system/dispatcher/template/dispatcher.form.php
./system/tviewer/lib/data_loader.php
./system/callcenter/lib/data_loader.php
./admin/list_admins/template/list_admins.main.php

Admin Access Control
I cannot find a way to change the admin password. It always accepts the
password of "opensips" even after resetting it in the Admin User editing
form and also deleting it from the field "password" in the
ocp_admin_privileges table. On further testing, I then found that none of
the changes I make to the admin user get saved to the DB - not just the
password, but also the first name and last name fields.

Access privileges were not working to restrict whether the logged-in user
could change their own (and other people's) admin privileges.
Found this was because the get_priv() function was being called with the
argument set to "list_admins" and that the arrays used to store access
privileges only have a key called "user_management" and do not have one for
"list_admins".  There are no lines of code to act as a "catch-all" in the
get_priv() function so if the tool name passed to the function does not
match any of the known tab names, then it fails to set the session variable
read_only. The absence of any value is then treated as "grant full access"
in the corresponding module so it is not very safe.
As a work-around, I edited web/tools/admin/list_admins/index.php and changed
the following line:
<< get_priv("list_admins");

get_priv("user_management");

John Quick
Smartvox Limited





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


Re: [OpenSIPS-Users] OpenSIPS Control Panel 8.2.4 was released

2018-11-05 Thread Bogdan-Andrei Iancu

Hi Yuriy,

Thanks for spotting that, I just pushed a fix:
https://github.com/OpenSIPS/opensips-cp/commit/9556483a80514509def862bd2c870f738adda29a

Best regards,

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  http://www.opensips-solutions.com
OpenSIPS Bootcamp 2018
  http://opensips.org/training/OpenSIPS_Bootcamp_2018/

On 11/05/2018 05:30 PM, zzz wrote:

Hi Bogdan,
Thanks for all you do.
Ive tried the new release on debian8, it works great.
Would you please change "domaini" to "domain" in the file acl_management.php
https://github.com/OpenSIPS/opensips-cp/blob/8.2.4/web/tools/users/acl_management/acl_management.php
lines 156 and 169.
Thanks,
Yuriy



-Original Message-
From: Users [mailto:users-boun...@lists.opensips.org] On Behalf Of 
Bogdan-Andrei Iancu
Sent: Thursday, November 1, 2018 2:12 PM
To: users@lists.opensips.org; developensips ; 
busin...@lists.opensips.org
Subject: [OpenSIPS-Users] OpenSIPS Control Panel 8.2.4 was released

Hi all,

We are proud and happy to announce the release of the OpenSIPS Control Panel 
8.2.4 . This OpenSIPS Control Panel is a provisioning (SIP users and OpenSIPS 
system) web interface design for and compatible with OpenSIPS 2.4 LTS - 
http://controlpanel.opensips.org .


The OCP 8.2.4 has new awesome additions :

* a new modern look by reworking the entire CSS and layout, see 
http://controlpanel.opensips.org/screenshots.php

* a new tool for handling the RTPEngine instances via database

* a new tool for provisioning TLS domains and certificates via database

* a more powerful Tviewer engine to allow more complex displaying, correlation 
and validation of the data types and to create inter-tool web links.


In the same time the OCP 8.2.4 brings great improvements under the hood:

* compatibility with PHP 7, by migrating from MDB2 to PDO database support

* better security of the DB operations by migrating to prepared statements, to 
avoid SQL injections

* improved security for the WEB sessions and page access to avoid illegitimate 
direct access to sub-pages

* extended tooltip and data validation support

* code refactoring for easy further development


This new OpenSIPS Control Panel release is a significant step forward for the 
project in terms of vision. All this happened thanks to the people and 
companies involved in the development of the project.

Special thanks to the Voicenter team - https://www.voicenter.com -  for its 
great contribution in re-styling and re-designing this web interface.


Download and enjoy it as it's freshly baked for you,




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


Re: [OpenSIPS-Users] OpenSIPS Control Panel 8.2.4 was released

2018-11-05 Thread zzz
Hi Bogdan,
Thanks for all you do.
Ive tried the new release on debian8, it works great.
Would you please change "domaini" to "domain" in the file acl_management.php
https://github.com/OpenSIPS/opensips-cp/blob/8.2.4/web/tools/users/acl_management/acl_management.php
lines 156 and 169.
Thanks,
Yuriy



-Original Message-
From: Users [mailto:users-boun...@lists.opensips.org] On Behalf Of 
Bogdan-Andrei Iancu
Sent: Thursday, November 1, 2018 2:12 PM
To: users@lists.opensips.org; developensips ; 
busin...@lists.opensips.org
Subject: [OpenSIPS-Users] OpenSIPS Control Panel 8.2.4 was released

Hi all,

We are proud and happy to announce the release of the OpenSIPS Control Panel 
8.2.4 . This OpenSIPS Control Panel is a provisioning (SIP users and OpenSIPS 
system) web interface design for and compatible with OpenSIPS 2.4 LTS - 
http://controlpanel.opensips.org .


The OCP 8.2.4 has new awesome additions :

* a new modern look by reworking the entire CSS and layout, see 
http://controlpanel.opensips.org/screenshots.php

* a new tool for handling the RTPEngine instances via database

* a new tool for provisioning TLS domains and certificates via database

* a more powerful Tviewer engine to allow more complex displaying, correlation 
and validation of the data types and to create inter-tool web links.


In the same time the OCP 8.2.4 brings great improvements under the hood:

* compatibility with PHP 7, by migrating from MDB2 to PDO database support

* better security of the DB operations by migrating to prepared statements, to 
avoid SQL injections

* improved security for the WEB sessions and page access to avoid illegitimate 
direct access to sub-pages

* extended tooltip and data validation support

* code refactoring for easy further development


This new OpenSIPS Control Panel release is a significant step forward for the 
project in terms of vision. All this happened thanks to the people and 
companies involved in the development of the project.

Special thanks to the Voicenter team - https://www.voicenter.com -  for its 
great contribution in re-styling and re-designing this web interface.


Download and enjoy it as it's freshly baked for you,

-- 
Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
   http://www.opensips-solutions.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] OpenSIPS Control Panel 8.2.4 was released

2018-11-05 Thread John Quick
Hello Bogdan,

Thanks for releasing a new version of the Control Panel. There are some
great new features in this version that I want to try.

I have been testing OCP v8 on a CentOS 6 server. I'm finding quite a lot of
errors - it is possible some of these are associated with the operating
system or the version of PHP I am using. PHP is v 5.3.3

The most critical problem for me concerns administrator access: I am unable
to change the password for the admin user.
As a precaution, I created a new admin user with a different name and then
tried to revoke the key privileges of the original admin user, but this made
no difference until I edited the source code and changed the tool name
passed to the get_priv() function as detailed below.

Here are my full notes on the problems encountered so far and code
adjustments I have made:
In login.php: Warns me "It is not safe to rely on the systems timezone
settings. You are required to use date.timezone or
date_default_timezone_set() function".   As a work-around, I added calls to
date_default_timezone_set("Europe/London") in a couple of places to stop
these warnings being written.

Many of the tabs display a blank page. In the httpd log file; the httpd log
files shows errors about "unexpected [".  When I look up the file and line
number shown in the httpd log message, it's always a line that calls the
die() function to handle failure of an SQL request.
I found it was due to the use of "errorInfo()[2]".  If you remove the [2],
it doesn't give an error and the page is rendered too.

Used grep to find every case like this:
# grep -rl "errorInfo()\[" .
./users/user_management/template/user_management.main.php
./users/acl_management/template/acl_management.main.php
./system/dialplan/template/dialplan.main.php
./system/dialplan/dialplan.php
./system/siptrace/template/tracer.main.php
./system/drouting/template/groups.main.php
./system/drouting/template/rules.main.php
./system/drouting/template/carriers.main.php
./system/drouting/template/gateways.main.php
./system/drouting/lib/carriers.test.inc.php
./system/drouting/lib/carriers.functions.inc.php
./system/tls_mgm/lib/data_loader.php
./system/loadbalancer/template/loadbalancer.main.php
./system/dispatcher/template/dispatcher.main.php
./system/dispatcher/template/dispatcher.form.php
./system/tviewer/lib/data_loader.php
./system/callcenter/lib/data_loader.php
./admin/list_admins/template/list_admins.main.php

Admin Access Control
I cannot find a way to change the admin password. It always accepts the
password of "opensips" even after resetting it in the Admin User editing
form and also deleting it from the field "password" in the
ocp_admin_privileges table. On further testing, I then found that none of
the changes I make to the admin user get saved to the DB - not just the
password, but also the first name and last name fields.

Access privileges were not working to restrict whether the logged-in user
could change their own (and other people's) admin privileges.
Found this was because the get_priv() function was being called with the
argument set to "list_admins" and that the arrays used to store access
privileges only have a key called "user_management" and do not have one for
"list_admins".  There are no lines of code to act as a "catch-all" in the
get_priv() function so if the tool name passed to the function does not
match any of the known tab names, then it fails to set the session variable
read_only. The absence of any value is then treated as "grant full access"
in the corresponding module so it is not very safe.
As a work-around, I edited web/tools/admin/list_admins/index.php and changed
the following line:
<< get_priv("list_admins");
>> get_priv("user_management");

John Quick
Smartvox Limited



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


Re: [OpenSIPS-Users] OpenSIPs Control Panel Homer Menu

2017-11-24 Thread Social Boh

Hello,

now, after working fine for a while, I have this error in the OpenSIPs 
Control Panel, Homer menu:


{
"sid": "ic8jmj4cmv8a9f1t04mrhs8if4",
"auth": "false",
"status": 403,
"message": "wrong session",
"data": [

]

}

Access to OCP is over IP.

/var/www/html/opensips-cp/config/tools/system/homer/local.inc.php

$homer_URL = "http://HomerIP;;

define('EXTERNAL_AUTH_URI', "http://OCP_IP/cp/tools/system/homer/auth.php;);

Regards

---
I'm SoCIaL, MayBe

El 03/11/2017 a las 10:22, Social Boh escribió:


The error was related with this semicolon (before the last parenthesis):

define('EXTERNAL_AUTH_URI', 
"http://5.6.7.8/cp/tools/system/homer/auth.php"*;*);


Thank you.

Regards

---
I'm SoCIaL, MayBe
El 03/11/2017 a las 07:15, Răzvan Crainea escribió:
This time there seems to be an issue on the homer side. Can you check 
the logs to see if homer is saying anything useful?


Best regards,

Răzvan Crainea
OpenSIPS Developer
www.opensips-solutions.com

On 11/03/2017 02:06 PM, Social Boh wrote:

Hello,

Now I have this error (homer side):

GET 
/api/v1/redirect?externalid=rx88kxQUs1DNT6es2ybwBvhevecJwjnY=http%3A%2F%2F1.2.3.4.0%2F 
HTTP/1.1.

Host: 104.236.105.0.
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:56.0) 
Gecko/20100101 Firefox/56.0.
Accept: 
text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8.

Accept-Language: es-ES,es;q=0.8,en-US;q=0.5,en;q=0.3.
Accept-Encoding: gzip, deflate.
Referer: http://5.6.7.8/cp/tools/system/homer/homer.php.
Connection: keep-alive.
Upgrade-Insecure-Requests: 1.

HTTP/1.0 500 Internal Server Error.
Date: Fri, 03 Nov 2017 11:47:36 GMT.
Server: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.4.16.
X-Powered-By: PHP/5.4.16.
Content-Length: 0.
Connection: close.
Content-Type: text/html; charset=UTF-8.

My homer configuration is:

define('AUTHENTICATION',"External");
define('EXTERNAL_AUTH_URI', 
"http://5.6.7.8/cp/tools/system/homer/auth.php;;);

define('EXTERNAL_AUTH_METHOD', "GET");
define('EXTERNAL_AUTH_PARAM', "param=KEY");
define('EXTERNAL_AUTH_REQUEST_TYPE', "get");
define('EXTERNAL_AUTH_REQUEST_KEY', "externalid");
define('EXTERNAL_AUTH_POSITIVE_REPLY', "200");
define('EXTERNAL_AUTH_REPLY_USER_INFO', "json");

1.2.3.4 is the Homer IP and 5.6.7.8 is the OpenSIPs Control Panel IP

Thank you

Regards

---
I'm SoCIaL, MayBe

El 03/11/2017 a las 04:47, Răzvan Crainea escribió:

Hello!

You should install the php apc library. On Ubuntu this is php-apcu.

Best regards,

Răzvan Crainea
OpenSIPS Developer
www.opensips-solutions.com

On 11/02/2017 10:09 PM, Social Boh wrote:

Hello,

each time I try to access Homer Menu on OpenSIPs Control Panel 
7.3.2, on the apache log:


Call to undefined function apc_store() in 
/var/www/html/opensips-cp/web/tools/system/homer/homer.php on line 5


Blank page

OpenSIPs Homer Configuration:

$homer_URL = "http://homer.mydomain.org;;

$homer_auth_method = "get";

Homer OpenSIPs configuration (preference.php)

define('AUTHENTICATION',"External");
define('EXTERNAL_AUTH_URI', 
"http://os.mydomain.org/cp/tools/system/homer/auth.php;;);

define('EXTERNAL_AUTH_METHOD', "GET");
define('EXTERNAL_AUTH_PARAM', "param=KEY");
define('EXTERNAL_AUTH_REQUEST_TYPE', "get");
define('EXTERNAL_AUTH_REQUEST_KEY', "externalid");
define('EXTERNAL_AUTH_POSITIVE_REPLY', "200");
define('EXTERNAL_AUTH_REPLY_USER_INFO', "json");

Any hint

Thank you in advance.

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



___
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] OpenSIPs Control Panel Homer Menu

2017-11-16 Thread Bogdan-Andrei Iancu

Hi,

in the home tool config file ( config/tools/system/homer/local.inc.php) 
, how the $homer_URL is defined ? with HTTP or HTTPS ?


Have you read the note from the file in regards to HTTP versus HTTPS  ??

Regards,

Bogdan-Andrei Iancu
  OpenSIPS Founder and Developer
  http://www.opensips-solutions.com

On 11/13/2017 06:19 PM, Social Boh wrote:


Hello,

if I access OpenSIPs Control Panel over https, with a Let's Encrypt 
Certificate, I can't see Homer page (blank page).


The only error/notice on the ssl_error.log is:

PHP Notice:  A session had already been started - ignoring 
session_start() in /var/www/html/opensips-cp/config/session.inc.php on 
line 23, referer: 
https://opensipscontrolpanel.org/cp/tools/system/homer/homer.php


If I use OpenSIPs Control Panel over httpd all working fine.

Regards

---
I'm SoCIaL, MayBe
El 03/11/2017 a las 10:22, Social Boh escribió:


The error was related with this semicolon (before the last parenthesis):

define('EXTERNAL_AUTH_URI', 
"http://5.6.7.8/cp/tools/system/homer/auth.php"*;*);


Thank you.

Regards

---
I'm SoCIaL, MayBe
El 03/11/2017 a las 07:15, Răzvan Crainea escribió:
This time there seems to be an issue on the homer side. Can you 
check the logs to see if homer is saying anything useful?


Best regards,

Răzvan Crainea
OpenSIPS Developer
www.opensips-solutions.com

On 11/03/2017 02:06 PM, Social Boh wrote:

Hello,

Now I have this error (homer side):

GET 
/api/v1/redirect?externalid=rx88kxQUs1DNT6es2ybwBvhevecJwjnY=http%3A%2F%2F1.2.3.4.0%2F 
HTTP/1.1.

Host: 104.236.105.0.
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:56.0) 
Gecko/20100101 Firefox/56.0.
Accept: 
text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8.

Accept-Language: es-ES,es;q=0.8,en-US;q=0.5,en;q=0.3.
Accept-Encoding: gzip, deflate.
Referer: http://5.6.7.8/cp/tools/system/homer/homer.php.
Connection: keep-alive.
Upgrade-Insecure-Requests: 1.

HTTP/1.0 500 Internal Server Error.
Date: Fri, 03 Nov 2017 11:47:36 GMT.
Server: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.4.16.
X-Powered-By: PHP/5.4.16.
Content-Length: 0.
Connection: close.
Content-Type: text/html; charset=UTF-8.

My homer configuration is:

define('AUTHENTICATION',"External");
define('EXTERNAL_AUTH_URI', 
"http://5.6.7.8/cp/tools/system/homer/auth.php;;);

define('EXTERNAL_AUTH_METHOD', "GET");
define('EXTERNAL_AUTH_PARAM', "param=KEY");
define('EXTERNAL_AUTH_REQUEST_TYPE', "get");
define('EXTERNAL_AUTH_REQUEST_KEY', "externalid");
define('EXTERNAL_AUTH_POSITIVE_REPLY', "200");
define('EXTERNAL_AUTH_REPLY_USER_INFO', "json");

1.2.3.4 is the Homer IP and 5.6.7.8 is the OpenSIPs Control Panel IP

Thank you

Regards

---
I'm SoCIaL, MayBe

El 03/11/2017 a las 04:47, Răzvan Crainea escribió:

Hello!

You should install the php apc library. On Ubuntu this is php-apcu.

Best regards,

Răzvan Crainea
OpenSIPS Developer
www.opensips-solutions.com

On 11/02/2017 10:09 PM, Social Boh wrote:

Hello,

each time I try to access Homer Menu on OpenSIPs Control Panel 
7.3.2, on the apache log:


Call to undefined function apc_store() in 
/var/www/html/opensips-cp/web/tools/system/homer/homer.php on line 5


Blank page

OpenSIPs Homer Configuration:

$homer_URL = "http://homer.mydomain.org;;

$homer_auth_method = "get";

Homer OpenSIPs configuration (preference.php)

define('AUTHENTICATION',"External");
define('EXTERNAL_AUTH_URI', 
"http://os.mydomain.org/cp/tools/system/homer/auth.php;;);

define('EXTERNAL_AUTH_METHOD', "GET");
define('EXTERNAL_AUTH_PARAM', "param=KEY");
define('EXTERNAL_AUTH_REQUEST_TYPE', "get");
define('EXTERNAL_AUTH_REQUEST_KEY', "externalid");
define('EXTERNAL_AUTH_POSITIVE_REPLY', "200");
define('EXTERNAL_AUTH_REPLY_USER_INFO', "json");

Any hint

Thank you in advance.

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



___
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


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


Re: [OpenSIPS-Users] OpenSIPs Control Panel Homer Menu

2017-11-13 Thread Social Boh

Hello,

if I access OpenSIPs Control Panel over https, with a Let's Encrypt 
Certificate, I can't see Homer page (blank page).


The only error/notice on the ssl_error.log is:

PHP Notice:  A session had already been started - ignoring 
session_start() in /var/www/html/opensips-cp/config/session.inc.php on 
line 23, referer: 
https://opensipscontrolpanel.org/cp/tools/system/homer/homer.php


If I use OpenSIPs Control Panel over httpd all working fine.

Regards

---
I'm SoCIaL, MayBe

El 03/11/2017 a las 10:22, Social Boh escribió:


The error was related with this semicolon (before the last parenthesis):

define('EXTERNAL_AUTH_URI', 
"http://5.6.7.8/cp/tools/system/homer/auth.php"*;*);


Thank you.

Regards

---
I'm SoCIaL, MayBe
El 03/11/2017 a las 07:15, Răzvan Crainea escribió:
This time there seems to be an issue on the homer side. Can you check 
the logs to see if homer is saying anything useful?


Best regards,

Răzvan Crainea
OpenSIPS Developer
www.opensips-solutions.com

On 11/03/2017 02:06 PM, Social Boh wrote:

Hello,

Now I have this error (homer side):

GET 
/api/v1/redirect?externalid=rx88kxQUs1DNT6es2ybwBvhevecJwjnY=http%3A%2F%2F1.2.3.4.0%2F 
HTTP/1.1.

Host: 104.236.105.0.
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:56.0) 
Gecko/20100101 Firefox/56.0.
Accept: 
text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8.

Accept-Language: es-ES,es;q=0.8,en-US;q=0.5,en;q=0.3.
Accept-Encoding: gzip, deflate.
Referer: http://5.6.7.8/cp/tools/system/homer/homer.php.
Connection: keep-alive.
Upgrade-Insecure-Requests: 1.

HTTP/1.0 500 Internal Server Error.
Date: Fri, 03 Nov 2017 11:47:36 GMT.
Server: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.4.16.
X-Powered-By: PHP/5.4.16.
Content-Length: 0.
Connection: close.
Content-Type: text/html; charset=UTF-8.

My homer configuration is:

define('AUTHENTICATION',"External");
define('EXTERNAL_AUTH_URI', 
"http://5.6.7.8/cp/tools/system/homer/auth.php;;);

define('EXTERNAL_AUTH_METHOD', "GET");
define('EXTERNAL_AUTH_PARAM', "param=KEY");
define('EXTERNAL_AUTH_REQUEST_TYPE', "get");
define('EXTERNAL_AUTH_REQUEST_KEY', "externalid");
define('EXTERNAL_AUTH_POSITIVE_REPLY', "200");
define('EXTERNAL_AUTH_REPLY_USER_INFO', "json");

1.2.3.4 is the Homer IP and 5.6.7.8 is the OpenSIPs Control Panel IP

Thank you

Regards

---
I'm SoCIaL, MayBe

El 03/11/2017 a las 04:47, Răzvan Crainea escribió:

Hello!

You should install the php apc library. On Ubuntu this is php-apcu.

Best regards,

Răzvan Crainea
OpenSIPS Developer
www.opensips-solutions.com

On 11/02/2017 10:09 PM, Social Boh wrote:

Hello,

each time I try to access Homer Menu on OpenSIPs Control Panel 
7.3.2, on the apache log:


Call to undefined function apc_store() in 
/var/www/html/opensips-cp/web/tools/system/homer/homer.php on line 5


Blank page

OpenSIPs Homer Configuration:

$homer_URL = "http://homer.mydomain.org;;

$homer_auth_method = "get";

Homer OpenSIPs configuration (preference.php)

define('AUTHENTICATION',"External");
define('EXTERNAL_AUTH_URI', 
"http://os.mydomain.org/cp/tools/system/homer/auth.php;;);

define('EXTERNAL_AUTH_METHOD', "GET");
define('EXTERNAL_AUTH_PARAM', "param=KEY");
define('EXTERNAL_AUTH_REQUEST_TYPE', "get");
define('EXTERNAL_AUTH_REQUEST_KEY', "externalid");
define('EXTERNAL_AUTH_POSITIVE_REPLY', "200");
define('EXTERNAL_AUTH_REPLY_USER_INFO', "json");

Any hint

Thank you in advance.

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



___
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] OpenSIPs Control Panel Homer Menu

2017-11-03 Thread Social Boh

The error was related with this semicolon (before the last parenthesis):

define('EXTERNAL_AUTH_URI', 
"http://5.6.7.8/cp/tools/system/homer/auth.php"*;*);


Thank you.

Regards

---
I'm SoCIaL, MayBe

El 03/11/2017 a las 07:15, Răzvan Crainea escribió:
This time there seems to be an issue on the homer side. Can you check 
the logs to see if homer is saying anything useful?


Best regards,

Răzvan Crainea
OpenSIPS Developer
www.opensips-solutions.com

On 11/03/2017 02:06 PM, Social Boh wrote:

Hello,

Now I have this error (homer side):

GET 
/api/v1/redirect?externalid=rx88kxQUs1DNT6es2ybwBvhevecJwjnY=http%3A%2F%2F1.2.3.4.0%2F 
HTTP/1.1.

Host: 104.236.105.0.
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:56.0) 
Gecko/20100101 Firefox/56.0.

Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8.
Accept-Language: es-ES,es;q=0.8,en-US;q=0.5,en;q=0.3.
Accept-Encoding: gzip, deflate.
Referer: http://5.6.7.8/cp/tools/system/homer/homer.php.
Connection: keep-alive.
Upgrade-Insecure-Requests: 1.

HTTP/1.0 500 Internal Server Error.
Date: Fri, 03 Nov 2017 11:47:36 GMT.
Server: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.4.16.
X-Powered-By: PHP/5.4.16.
Content-Length: 0.
Connection: close.
Content-Type: text/html; charset=UTF-8.

My homer configuration is:

define('AUTHENTICATION',"External");
define('EXTERNAL_AUTH_URI', 
"http://5.6.7.8/cp/tools/system/homer/auth.php;;);

define('EXTERNAL_AUTH_METHOD', "GET");
define('EXTERNAL_AUTH_PARAM', "param=KEY");
define('EXTERNAL_AUTH_REQUEST_TYPE', "get");
define('EXTERNAL_AUTH_REQUEST_KEY', "externalid");
define('EXTERNAL_AUTH_POSITIVE_REPLY', "200");
define('EXTERNAL_AUTH_REPLY_USER_INFO', "json");

1.2.3.4 is the Homer IP and 5.6.7.8 is the OpenSIPs Control Panel IP

Thank you

Regards

---
I'm SoCIaL, MayBe

El 03/11/2017 a las 04:47, Răzvan Crainea escribió:

Hello!

You should install the php apc library. On Ubuntu this is php-apcu.

Best regards,

Răzvan Crainea
OpenSIPS Developer
www.opensips-solutions.com

On 11/02/2017 10:09 PM, Social Boh wrote:

Hello,

each time I try to access Homer Menu on OpenSIPs Control Panel 
7.3.2, on the apache log:


Call to undefined function apc_store() in 
/var/www/html/opensips-cp/web/tools/system/homer/homer.php on line 5


Blank page

OpenSIPs Homer Configuration:

$homer_URL = "http://homer.mydomain.org;;

$homer_auth_method = "get";

Homer OpenSIPs configuration (preference.php)

define('AUTHENTICATION',"External");
define('EXTERNAL_AUTH_URI', 
"http://os.mydomain.org/cp/tools/system/homer/auth.php;;);

define('EXTERNAL_AUTH_METHOD', "GET");
define('EXTERNAL_AUTH_PARAM', "param=KEY");
define('EXTERNAL_AUTH_REQUEST_TYPE', "get");
define('EXTERNAL_AUTH_REQUEST_KEY', "externalid");
define('EXTERNAL_AUTH_POSITIVE_REPLY', "200");
define('EXTERNAL_AUTH_REPLY_USER_INFO', "json");

Any hint

Thank you in advance.

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



___
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] OpenSIPs Control Panel Homer Menu

2017-11-03 Thread Răzvan Crainea
This time there seems to be an issue on the homer side. Can you check 
the logs to see if homer is saying anything useful?


Best regards,

Răzvan Crainea
OpenSIPS Developer
www.opensips-solutions.com

On 11/03/2017 02:06 PM, Social Boh wrote:

Hello,

Now I have this error (homer side):

GET 
/api/v1/redirect?externalid=rx88kxQUs1DNT6es2ybwBvhevecJwjnY=http%3A%2F%2F1.2.3.4.0%2F 
HTTP/1.1.

Host: 104.236.105.0.
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:56.0) 
Gecko/20100101 Firefox/56.0.

Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8.
Accept-Language: es-ES,es;q=0.8,en-US;q=0.5,en;q=0.3.
Accept-Encoding: gzip, deflate.
Referer: http://5.6.7.8/cp/tools/system/homer/homer.php.
Connection: keep-alive.
Upgrade-Insecure-Requests: 1.

HTTP/1.0 500 Internal Server Error.
Date: Fri, 03 Nov 2017 11:47:36 GMT.
Server: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.4.16.
X-Powered-By: PHP/5.4.16.
Content-Length: 0.
Connection: close.
Content-Type: text/html; charset=UTF-8.

My homer configuration is:

define('AUTHENTICATION',"External");
define('EXTERNAL_AUTH_URI', 
"http://5.6.7.8/cp/tools/system/homer/auth.php;;);

define('EXTERNAL_AUTH_METHOD', "GET");
define('EXTERNAL_AUTH_PARAM', "param=KEY");
define('EXTERNAL_AUTH_REQUEST_TYPE', "get");
define('EXTERNAL_AUTH_REQUEST_KEY', "externalid");
define('EXTERNAL_AUTH_POSITIVE_REPLY', "200");
define('EXTERNAL_AUTH_REPLY_USER_INFO', "json");

1.2.3.4 is the Homer IP and 5.6.7.8 is the OpenSIPs Control Panel IP

Thank you

Regards

---
I'm SoCIaL, MayBe

El 03/11/2017 a las 04:47, Răzvan Crainea escribió:

Hello!

You should install the php apc library. On Ubuntu this is php-apcu.

Best regards,

Răzvan Crainea
OpenSIPS Developer
www.opensips-solutions.com

On 11/02/2017 10:09 PM, Social Boh wrote:

Hello,

each time I try to access Homer Menu on OpenSIPs Control Panel 
7.3.2, on the apache log:


Call to undefined function apc_store() in 
/var/www/html/opensips-cp/web/tools/system/homer/homer.php on line 5


Blank page

OpenSIPs Homer Configuration:

$homer_URL = "http://homer.mydomain.org;;

$homer_auth_method = "get";

Homer OpenSIPs configuration (preference.php)

define('AUTHENTICATION',"External");
define('EXTERNAL_AUTH_URI', 
"http://os.mydomain.org/cp/tools/system/homer/auth.php;;);

define('EXTERNAL_AUTH_METHOD', "GET");
define('EXTERNAL_AUTH_PARAM', "param=KEY");
define('EXTERNAL_AUTH_REQUEST_TYPE', "get");
define('EXTERNAL_AUTH_REQUEST_KEY', "externalid");
define('EXTERNAL_AUTH_POSITIVE_REPLY', "200");
define('EXTERNAL_AUTH_REPLY_USER_INFO', "json");

Any hint

Thank you in advance.

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



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


Re: [OpenSIPS-Users] OpenSIPs Control Panel Homer Menu

2017-11-03 Thread Social Boh

Hello,

Now I have this error (homer side):

GET 
/api/v1/redirect?externalid=rx88kxQUs1DNT6es2ybwBvhevecJwjnY=http%3A%2F%2F1.2.3.4.0%2F 
HTTP/1.1.

Host: 104.236.105.0.
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:56.0) 
Gecko/20100101 Firefox/56.0.

Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8.
Accept-Language: es-ES,es;q=0.8,en-US;q=0.5,en;q=0.3.
Accept-Encoding: gzip, deflate.
Referer: http://5.6.7.8/cp/tools/system/homer/homer.php.
Connection: keep-alive.
Upgrade-Insecure-Requests: 1.

HTTP/1.0 500 Internal Server Error.
Date: Fri, 03 Nov 2017 11:47:36 GMT.
Server: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.4.16.
X-Powered-By: PHP/5.4.16.
Content-Length: 0.
Connection: close.
Content-Type: text/html; charset=UTF-8.

My homer configuration is:

define('AUTHENTICATION',"External");
define('EXTERNAL_AUTH_URI', 
"http://5.6.7.8/cp/tools/system/homer/auth.php;;);

define('EXTERNAL_AUTH_METHOD', "GET");
define('EXTERNAL_AUTH_PARAM', "param=KEY");
define('EXTERNAL_AUTH_REQUEST_TYPE', "get");
define('EXTERNAL_AUTH_REQUEST_KEY', "externalid");
define('EXTERNAL_AUTH_POSITIVE_REPLY', "200");
define('EXTERNAL_AUTH_REPLY_USER_INFO', "json");

1.2.3.4 is the Homer IP and 5.6.7.8 is the OpenSIPs Control Panel IP

Thank you

Regards

---
I'm SoCIaL, MayBe

El 03/11/2017 a las 04:47, Răzvan Crainea escribió:

Hello!

You should install the php apc library. On Ubuntu this is php-apcu.

Best regards,

Răzvan Crainea
OpenSIPS Developer
www.opensips-solutions.com

On 11/02/2017 10:09 PM, Social Boh wrote:

Hello,

each time I try to access Homer Menu on OpenSIPs Control Panel 7.3.2, 
on the apache log:


Call to undefined function apc_store() in 
/var/www/html/opensips-cp/web/tools/system/homer/homer.php on line 5


Blank page

OpenSIPs Homer Configuration:

$homer_URL = "http://homer.mydomain.org;;

$homer_auth_method = "get";

Homer OpenSIPs configuration (preference.php)

define('AUTHENTICATION',"External");
define('EXTERNAL_AUTH_URI', 
"http://os.mydomain.org/cp/tools/system/homer/auth.php;;);

define('EXTERNAL_AUTH_METHOD', "GET");
define('EXTERNAL_AUTH_PARAM', "param=KEY");
define('EXTERNAL_AUTH_REQUEST_TYPE', "get");
define('EXTERNAL_AUTH_REQUEST_KEY', "externalid");
define('EXTERNAL_AUTH_POSITIVE_REPLY', "200");
define('EXTERNAL_AUTH_REPLY_USER_INFO', "json");

Any hint

Thank you in advance.

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] OpenSIPs Control Panel Homer Menu

2017-11-03 Thread Răzvan Crainea

Hello!

You should install the php apc library. On Ubuntu this is php-apcu.

Best regards,

Răzvan Crainea
OpenSIPS Developer
www.opensips-solutions.com

On 11/02/2017 10:09 PM, Social Boh wrote:

Hello,

each time I try to access Homer Menu on OpenSIPs Control Panel 7.3.2, 
on the apache log:


Call to undefined function apc_store() in 
/var/www/html/opensips-cp/web/tools/system/homer/homer.php on line 5


Blank page

OpenSIPs Homer Configuration:

$homer_URL = "http://homer.mydomain.org;;

$homer_auth_method = "get";

Homer OpenSIPs configuration (preference.php)

define('AUTHENTICATION',"External");
define('EXTERNAL_AUTH_URI', 
"http://os.mydomain.org/cp/tools/system/homer/auth.php;;);

define('EXTERNAL_AUTH_METHOD', "GET");
define('EXTERNAL_AUTH_PARAM', "param=KEY");
define('EXTERNAL_AUTH_REQUEST_TYPE', "get");
define('EXTERNAL_AUTH_REQUEST_KEY', "externalid");
define('EXTERNAL_AUTH_POSITIVE_REPLY', "200");
define('EXTERNAL_AUTH_REPLY_USER_INFO', "json");

Any hint

Thank you in advance.

Regards




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


Re: [OpenSIPS-Users] Opensips Control Panel - not using MDB2 for PHP

2017-08-11 Thread Laszlo
On Wed, Aug 9, 2017 at 3:35 PM,  wrote:

> Hi
>
>
>
> PHP 5.4.16 (cli) (built: Aug  5 2016 07:50:38)
>
> Copyright (c) 1997-2013 The PHP Group
>
> Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies
>

You might need to install php-pear-MDB2-Driver-mysql package (depending on
your distro).


>
>
>
>
> *BR*
>
> *Mahmoud alizadeh*
>
> Developer | EU DK Tech P Touchpoint,Telia Danmark, filial af Telia
> Nättjänster
>
>
>
> [image: cid:image001.jpg@01D22C09.04C346C0]
>
>
>
> Telia Company
>
> +4526100697
>
> mahmoud.aliza...@teliacompany.com
>
> www.teliacompany.com
>
> https://www.telia.dk
>
>
>
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Opensips Control Panel - not using MDB2 for PHP

2017-08-10 Thread mahmoud.alizadeh
Hi

PHP 5.4.16 (cli) (built: Aug  5 2016 07:50:38)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies


BR
Mahmoud alizadeh
Developer | EU DK Tech P Touchpoint,Telia Danmark, filial af Telia Nättjänster

[cid:image001.jpg@01D22C09.04C346C0]

Telia Company
+4526100697
mahmoud.aliza...@teliacompany.com<mailto:mahmoud.aliza...@teliacompany.com>
www.teliacompany.com
https://www.telia.dk

From: Bogdan-Andrei Iancu [mailto:bog...@opensips.org]
Sent: 9. august 2017 14:52
To: OpenSIPS users mailling list <users@lists.opensips.org>; Alizadeh, Mahmoud 
<mahmoud.aliza...@teliacompany.com>; de...@lists.opensips.org
Subject: Re: [OpenSIPS-Users] Opensips Control Panel - not using MDB2 for PHP

Hi,

No, all versions are requiring the MDB2 for the DB operations. What php version 
do you have ?

Regards,


Bogdan-Andrei Iancu

  OpenSIPS Founder and Developer

  http://www.opensips-solutions.com



OpenSIPS Bootcamp 2017, Houston, US

  http://opensips.org/training/OpenSIPS_Bootcamp_2017.html
On 08/09/2017 03:26 PM, 
mahmoud.aliza...@teliacompany.com<mailto:mahmoud.aliza...@teliacompany.com> 
wrote:
Hi Developers

Is there any Opensips Control Panel which does not use MDB2 driver? I am having 
a big problem installing on a private Linux server which does not have access 
to the internet for doing the below:

   pear install MDB2
   pear install MDB2#mysql //should you choose to go with the mysql 
database
   pear install log

pear try's to download via "pear.php.net" !

I have also tried to install the MDB2 manually and configure PHP. It just does 
not work.

Anyway, PHP do not need driver to connect to Mysql DB using mysqli.



BR
Mahmoud alizadeh
Developer | EU DK Tech P Touchpoint,Telia Danmark, filial af Telia Nättjänster

[cid:image001.jpg@01D22C09.04C346C0]

Telia Company
+4526100697
mahmoud.aliza...@teliacompany.com<mailto:mahmoud.aliza...@teliacompany.com>
www.teliacompany.com
https://www.telia.dk





___

Users mailing list

Users@lists.opensips.org<mailto: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] Opensips Control Panel - not using MDB2 for PHP

2017-08-09 Thread Bogdan-Andrei Iancu

Hi,

No, all versions are requiring the MDB2 for the DB operations. What php 
version do you have ?


Regards,

Bogdan-Andrei Iancu
  OpenSIPS Founder and Developer
  http://www.opensips-solutions.com

OpenSIPS Bootcamp 2017, Houston, US
  http://opensips.org/training/OpenSIPS_Bootcamp_2017.html

On 08/09/2017 03:26 PM, mahmoud.aliza...@teliacompany.com wrote:


Hi Developers

Is there any Opensips Control Panel which does not use MDB2 driver? I 
am having a big problem installing on a private Linux server which 
does not have access to the internet for doing the below:


   pear install MDB2

   pear install MDB2#mysql //should you choose to go with 
the mysql database


   pear install log

pear try’s to download via “pear.php.net” !

I have also tried to install the MDB2 manually and configure PHP. It 
just does not work.


Anyway, PHP do not need driver to connect to Mysql DB using mysqli.

*BR*

*Mahmoud alizadeh*

Developer | EU DK Tech P Touchpoint,Telia Danmark, filial af Telia 
Nättjänster


cid:image001.jpg@01D22C09.04C346C0

Telia Company

+4526100697

mahmoud.aliza...@teliacompany.com 



www.teliacompany.com

https://www.telia.dk



___
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] OpenSIPS Control Panel 7.2.3 is released (for OpenSIPS 2.3)

2017-07-05 Thread Bogdan-Andrei Iancu

Hi Serge,

Yes, for now it works with OpenSIPS trunk too. Still, in time, due the 
development progress, this compatibility with the may get lost.


Best regards,

Bogdan-Andrei Iancu
  OpenSIPS Founder and Developer
  http://www.opensips-solutions.com

OpenSIPS Bootcamp 2017, Houston, US
  http://opensips.org/training/OpenSIPS_Bootcamp_2017.html

On 07/05/2017 06:57 PM, Serge S. Yuriev wrote:

Hi,

Will it work with OpenSIPS trunk version?

On 05/07/17 18:24, Bogdan-Andrei Iancu wrote:

Hi all,

Proudly I announce the release of the OpenSIPS Control Panel 7.2.3 
(according to the new versioning schema) matching the OpenSIPS 2.3 
version.





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


Re: [OpenSIPS-Users] OpenSIPS Control Panel 7.2.3 is released (for OpenSIPS 2.3)

2017-07-05 Thread Serge S. Yuriev

Hi,

Will it work with OpenSIPS trunk version?

On 05/07/17 18:24, Bogdan-Andrei Iancu wrote:

Hi all,

Proudly I announce the release of the OpenSIPS Control Panel 7.2.3 
(according to the new versioning schema) matching the OpenSIPS 2.3 version.


--
Serge S. Yuriev
Lead VoIP engineer


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


Re: [OpenSIPS-Users] OpenSIPS Control Panel installation and use problems

2017-02-21 Thread Răzvan Crainea
Did you follow the install guide[1]? You need to install the 
php-mysql/php5-mysql package, as well as the pear MDB2 drivers.


[1] http://controlpanel.opensips.org/

Best regards,

Răzvan Crainea
OpenSIPS Solutions
www.opensips-solutions.com

On 02/22/2017 08:37 AM, 韩冰Sunny wrote:
OpenSIPS Control Panel how to install and use? I will now be directly 
copied to the web directory to the /var/www/html, the direct access to 
the browser, the login screen after entering the user name password to 
jump to login.php, but only a blank page. The file ("db_connect.php") 
notes can be displayed after. View the db_connect.php file and found 
that the file used in MDB2.php, but I did not find the MDB2.php file, 
I use the database is mysql. I'd like to ask what is wrong with my 
installation method How to solve?



___
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] OpenSIPS Control Panel 6.1

2015-08-31 Thread Alex Ionescu

Hi Bill,

Sorry for my late answer, I was on holiday. If you can attach a patch I 
can take a look over it and if it is good for the project I can submit 
the code.


Regards,
Alex

On 14.08.2015 10:32, Bill Shirley wrote:
Sorry Alex; I didn't mean to rile you.  Remember I DID say I was 
grateful for all
the work that has gone into free software development.  That includes 
OpenSIPS CP.


There are a few places where assumptions are made about the PHP 
configuration:
1) not all shops allow the shortcut code it 
http://php.net/manual/en/ini.core.php#ini.short-open-tag
2) not all shops run with "display_errors = Off"; there are a lot of 
uninitialized

variables

Set these in your php.ini and then run the CP:
short_open_tag = Off
display_errors = On

No, it's not hard for me to give a helping hand.  I have been editing 
the code extensively

and would like to share my changes.  Any suggestions on how to do this?

Bill

On 8/10/2015 1:35 AM, Alex Ionescu wrote:

Hi,

There are many using CP 6.1 with success. It may not be the best 
piece of software in the world but it does its job.


You say it's full of security holes and exposed to sql injection. I 
invite you to try making some sql injections and come back

here with the proof.

Also, there are lots of security holes everywhere. If you think 
you've spotted some big ones in CP please point them out so we
can fix them. That's the whole idea with open source software and the 
user community, right ?


It's easy to point fingers but hard to give a helping hand, right ?

Regards,
Alex Ionescu

On August 10, 2015 4:47:25 AM Bill Shirley 
 wrote:


Is anyone running the 6.1 CP?  It's full of bugs and security 
holes.  Whoever thought it wise to code:

extract($_POST);
Also, the input stored in the database is not sanitized plus a whole 
lot more errors.


https://xkcd.com/327/
We had a 'professional' company write a web portal for us that 
didn't sanitize their input.  I actually
did do a "'; DROP TABLE `customer`;" on the database.  I even 
emailed them before hand pointing out

the problem.

I don't want to sound harsh or ungrateful.  I run a lot of free 
software that enables me to earn a living.

I'm thankful for all the people that labored to produce the software.

I'm also guessing that CP 6.1 not meant to be run with the Fedora 22 
version of OpenSIPS:

[0:root@jabba lib]$ rpm -q php httpd opensips
php-5.5.20-2.fc19.x86_64
httpd-2.4.9-1.fc19.x86_64
opensips-1.10.1-1.fc19.x86_64

I'm trying to set up a SIP proxy to route calls from my network to 
Cisco CUCM on another network.

Any pointers are appreciated.

Bill

___
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] OpenSIPS Control Panel 6.1

2015-08-14 Thread Bill Shirley

Sorry Alex; I didn't mean to rile you.  Remember I DID say I was grateful for 
all
the work that has gone into free software development.  That includes OpenSIPS 
CP.

There are a few places where assumptions are made about the PHP configuration:
1) not all shops allow the shortcut ? to turn PHP on; why not just code it 
?php
http://php.net/manual/en/ini.core.php#ini.short-open-tag
2) not all shops run with display_errors = Off; there are a lot of 
uninitialized
variables

Set these in your php.ini and then run the CP:
short_open_tag = Off
display_errors = On

No, it's not hard for me to give a helping hand.  I have been editing the code 
extensively
and would like to share my changes.  Any suggestions on how to do this?

Bill

On 8/10/2015 1:35 AM, Alex Ionescu wrote:

Hi,

There are many using CP 6.1 with success. It may not be the best piece of 
software in the world but it does its job.

You say it's full of security holes and exposed to sql injection. I invite you 
to try making some sql injections and come back
here with the proof.

Also, there are lots of security holes everywhere. If you think you've spotted 
some big ones in CP please point them out so we
can fix them. That's the whole idea with open source software and the user 
community, right ?

It's easy to point fingers but hard to give a helping hand, right ?

Regards,
Alex Ionescu

On August 10, 2015 4:47:25 AM Bill Shirley b...@philly.polymerindustries.biz 
wrote:


Is anyone running the 6.1 CP?  It's full of bugs and security holes.  Whoever 
thought it wise to code:
extract($_POST);
Also, the input stored in the database is not sanitized plus a whole lot more 
errors.

https://xkcd.com/327/
We had a 'professional' company write a web portal for us that didn't sanitize 
their input.  I actually
did do a '; DROP TABLE `customer`; on the database.  I even emailed them 
before hand pointing out
the problem.

I don't want to sound harsh or ungrateful.  I run a lot of free software that 
enables me to earn a living.
I'm thankful for all the people that labored to produce the software.

I'm also guessing that CP 6.1 not meant to be run with the Fedora 22 version of 
OpenSIPS:
[0:root@jabba lib]$ rpm -q php httpd opensips
php-5.5.20-2.fc19.x86_64
httpd-2.4.9-1.fc19.x86_64
opensips-1.10.1-1.fc19.x86_64

I'm trying to set up a SIP proxy to route calls from my network to Cisco CUCM 
on another network.
Any pointers are appreciated.

Bill

___
Users mailing list
Users@lists.opensips.org mailto:Users%40lists.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] OpenSIPS Control Panel 6.1

2015-08-09 Thread Alex Ionescu

Hi,

There are many using CP 6.1 with success. It may not be the best piece of 
software in the world but it does its job.


You say it's full of security holes and exposed to sql injection. I invite 
you to try making some sql injections and come back here with the proof.


Also, there are lots of security holes everywhere. If you think you've 
spotted some big ones in CP please point them out so we can fix them. 
That's the whole idea with open source software and the user community, right ?


It's easy to point fingers but hard to give a helping hand, right ?

Regards,
Alex Ionescu



On August 10, 2015 4:47:25 AM Bill Shirley 
b...@philly.polymerindustries.biz wrote:


Is anyone running the 6.1 CP?  It's full of bugs and security holes.  
Whoever thought it wise to code:

 extract($_POST);
Also, the input stored in the database is not sanitized plus a whole lot 
more errors.


https://xkcd.com/327/
We had a 'professional' company write a web portal for us that didn't 
sanitize their input.  I actually
did do a '; DROP TABLE `customer`; on the database.  I even emailed them 
before hand pointing out

the problem.

I don't want to sound harsh or ungrateful.  I run a lot of free software 
that enables me to earn a living.

I'm thankful for all the people that labored to produce the software.

I'm also guessing that CP 6.1 not meant to be run with the Fedora 22 
version of OpenSIPS:

[0:root@jabba lib]$ rpm -q php httpd opensips
php-5.5.20-2.fc19.x86_64
httpd-2.4.9-1.fc19.x86_64
opensips-1.10.1-1.fc19.x86_64

I'm trying to set up a SIP proxy to route calls from my network to Cisco 
CUCM on another network.

Any pointers are appreciated.

Bill




--
___
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] [opensips] [control panel]: change of admin password irgnores by cp - and strange error messages

2015-01-15 Thread Markus Klaus Schäffauer
Hi,

when I change the password using the interface (Admin - List Admins -
Edit Info), nothing changes. The desired password still is correct in
the password field in the database, but when trying to login with it, it
doesn't work. I still have to put the official one  - and the secret one
is not working.

So I decided to create a new admin2 with the same secret password in the
interface (as described above, but in Add Admins). Voilà, now I can
enter with admin2 and the secret password.

But now comes the super strange thing: When looking in the database,
there is an admin2-user, but no (!) password in the password-field...
wow! What is this?

I am really confused...  It seems to be that the password is not stored
in the table of the new admin user, but in some other place. If it was
just vanishing in the air, the login would'nt work. There must be
another place where the system puts the password and reads it to grant
access to the interface.

Do you have some idea what might be gone wrong?

Regards,
Markus

Am 15.01.2015 um 15:30 schrieb Alex Ionescu:
 Hi,

 Why don't you try changing the password using the interface (Admin -
 List Admins - Edit Info).
 For the MI tool you need to configure the proper path to your fifo
 file - I guess the default one is not the good one.
 For the callcenter module you need to deploy the necessary DB tables
 but if you don't need that module you can always disable that module
 (or any module) in CP by editing
 /var/www/opensips-cp/config/modules.inc.php file - you will find out
 it is very intuitive.

 If you have any other questions please let me know.

 Regards,
 Alex

 On 01/15/2015 11:12 AM, Markus Klaus Schäffauer wrote:
 Hello,

 when I change the admin password (in the database), this is ignored
 completely by the control panel.

 But I cannot work seriously with a openly known password... so why my
 control panel is ignoring that in the database I made a password change?

 And another thing: In the control panel, section system, I get (for
 example) the following errors:

 Dialog:
 Array ( [0] = Cannot connect to OpenSIPS Server via Management
 Interface (/tmp/opensips_proxy_fifo) )

 Callcenter:
 Failed to issue query, error message : MDB2 Error: no such table[select
 id,agentid,location,logstate,skills from cc_agents where 1 = 1 order by
 id LIMIT 5 OFFSET 0]

 There seem to be still some errors, although I am able to register
 clients correctly.

 Sounds really strange.

 Regards,
 Markus


 ___
 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] [opensips] [control panel]: change of admin password irgnores by cp - and strange error messages

2015-01-15 Thread Alex Ionescu

Hi,

Why don't you try changing the password using the interface (Admin - 
List Admins - Edit Info).
For the MI tool you need to configure the proper path to your fifo file 
- I guess the default one is not the good one.
For the callcenter module you need to deploy the necessary DB tables but 
if you don't need that module you can always disable that module (or any 
module) in CP by editing /var/www/opensips-cp/config/modules.inc.php 
file - you will find out it is very intuitive.


If you have any other questions please let me know.

Regards,
Alex

On 01/15/2015 11:12 AM, Markus Klaus Schäffauer wrote:

Hello,

when I change the admin password (in the database), this is ignored
completely by the control panel.

But I cannot work seriously with a openly known password... so why my
control panel is ignoring that in the database I made a password change?

And another thing: In the control panel, section system, I get (for
example) the following errors:

Dialog:
Array ( [0] = Cannot connect to OpenSIPS Server via Management
Interface (/tmp/opensips_proxy_fifo) )

Callcenter:
Failed to issue query, error message : MDB2 Error: no such table[select
id,agentid,location,logstate,skills from cc_agents where 1 = 1 order by
id LIMIT 5 OFFSET 0]

There seem to be still some errors, although I am able to register
clients correctly.

Sounds really strange.

Regards,
Markus


___
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] opensips control panel

2013-08-08 Thread Mike Tesliuk
did you check apache log over some kind of error message ?


2013/8/8 Nandini madhu sermj2...@gmail.com

 Dear Mike,

 Greetings.

 Thanks for the reply. i have checked the procedure and it is working fine
 with bot acc and cdrs tables.

 I am trying to look for the online users in opensips-cp 5.0. it is not
 showing in user management while information is available by using
 opensipsctl online command in terminal

 Please help me

 Regards

 sermj

 Thanks a lot. Can


 On Wed, Aug 7, 2013 at 7:04 PM, Mike Tesliuk m...@ultra.net.br wrote:

 Nandini,

 If you have the INVITE and BYE on the acc table, the problem is just on
 the procedure, did you try to call the procedure manually as flavio suggest
 ? did you configure a cron job to run the procedure ?


 2013/8/7 Nandini madhu sermj2...@gmail.com

 Hi Flavio,
 Greetings.

 Hi Bodgan.
 Greetings.

 I have seen some INVITES and BYES in my acc table. I have enabled
 CDR_FLAG in my script and loaded the module too.

 But i am unable to get the data in cdrviewer.

 Please help me

 My script is as below:

 # main request routing logic

 route{
 if (!mf_process_maxfwd_header(10)) {
 sl_send_reply(483,Too Many Hops);
 exit;
 }

 if (has_totag()) {
 # sequential requests within a dialog should
 # take the path determined by record-routing
 if (loose_route()) {
 if (is_method(BYE)) {
 *setflag(CDR_FLAG); # ... even if the transaction fails
 create_dialog();
 setflag(TRACE_FLAG);
 setflag(DB_FLAG); # do accounting ...*
 } else if (is_method(INVITE)) {
 # even if in most of the cases is useless, do RR for
 # re-INVITEs alos, as some buggy clients do change route
 set
 # during the dialog.
 record_route();
 }

 # route it out to whatever destination was set by
 loose_route()
 # in $du (destination URI).
 route(relay);
 } else {
 if ( is_method(ACK) ) {
 if ( t_check_trans() ) {
 # non loose-route, but stateful ACK; must be an ACK
 after
 # a 487 or e.g. 404 from upstream server
 t_relay();
 exit;
 } else {
 # ACK without matching transaction -
 # ignore and discard
 exit;
 }
 }
 sl_send_reply(404,Not here);
 }
 exit;
 }

 # CANCEL processing
 if (is_method(CANCEL))
 {
 if (t_check_trans())
 t_relay();
 exit;
 }

 t_check_trans();

 if ( !(is_method(REGISTER)  ) ) {
 if (from_uri==myself)
 {
 } else {
 # if caller is not local, then called number must be local
 if (!uri==myself) {
 send_reply(403,Rely forbidden);
 exit;
 }
 }
 }

 # preloaded route checking
 if (loose_route()) {
 xlog(L_ERR,
 Attempt to route with preloaded Route's [$fu/$tu/$ru/$ci]);
 if (!is_method(ACK))
 sl_send_reply(403,Preload Route denied);
 exit;
 }

 # record routing
 if (!is_method(REGISTER|MESSAGE))
 record_route();

 # account only INVITEs
 if (is_method(INVITE)) {
 *setflag(CDR_FLAG);
 create_dialog();
 setflag(TRACE_FLAG);
 setflag(DB_FLAG); # do accounting ...
 *
 }


 if (!uri==myself) {
 append_hf(P-hint: outbound\r\n);
 route(relay);
 }

 # requests for my domain
 if (is_method(PUBLISH|SUBSCRIBE))
 {
 sl_send_reply(503, Service Unavailable);
 exit;
 }

 if (is_method(REGISTER))
 {
 if (   0 ) setflag(TCP_PERSISTENT);

 if (!save(location))
 sl_reply_error();

 exit;
 }

 if ($rU==NULL) {
 # request with no Username in RURI
 sl_send_reply(484,Address Incomplete);
 exit;
 }

 # do lookup with method filtering
 if (!lookup(location,m)) {
 t_newtran();

 t_reply(404, Not Found);
 exit;
 }

 # when routing via usrloc, log the missed calls also
 setflag(ACC_MISSED);
 route(relay);
 }


 route[relay] {
 # for INVITEs enable some additional helper routes
 if (is_method(INVITE)) {
 t_on_branch(per_branch_ops);
 t_on_reply(handle_nat);
 t_on_failure(missed_call);
 }

 if (!t_relay()) {
 send_reply(500,Internal Error);
 };
 exit;
 }


 branch_route[per_branch_ops] {
 xlog(new branch at $ru\n);
 }


 onreply_route[handle_nat] {

 xlog(incoming reply\n);
 }


 failure_route[missed_call] {
 if 

Re: [OpenSIPS-Users] opensips control panel

2013-08-07 Thread Nandini madhu
Hi Flavio,
Greetings.

Hi Bodgan.
Greetings.

I have seen some INVITES and BYES in my acc table. I have enabled CDR_FLAG
in my script and loaded the module too.

But i am unable to get the data in cdrviewer.

Please help me

My script is as below:

# main request routing logic

route{
if (!mf_process_maxfwd_header(10)) {
sl_send_reply(483,Too Many Hops);
exit;
}

if (has_totag()) {
# sequential requests within a dialog should
# take the path determined by record-routing
if (loose_route()) {
if (is_method(BYE)) {
*setflag(CDR_FLAG); # ... even if the transaction fails
create_dialog();
setflag(TRACE_FLAG);
setflag(DB_FLAG); # do accounting ...*
} else if (is_method(INVITE)) {
# even if in most of the cases is useless, do RR for
# re-INVITEs alos, as some buggy clients do change route set
# during the dialog.
record_route();
}

# route it out to whatever destination was set by loose_route()
# in $du (destination URI).
route(relay);
} else {
if ( is_method(ACK) ) {
if ( t_check_trans() ) {
# non loose-route, but stateful ACK; must be an ACK
after
# a 487 or e.g. 404 from upstream server
t_relay();
exit;
} else {
# ACK without matching transaction -
# ignore and discard
exit;
}
}
sl_send_reply(404,Not here);
}
exit;
}

# CANCEL processing
if (is_method(CANCEL))
{
if (t_check_trans())
t_relay();
exit;
}

t_check_trans();

if ( !(is_method(REGISTER)  ) ) {
if (from_uri==myself)
{
} else {
# if caller is not local, then called number must be local
if (!uri==myself) {
send_reply(403,Rely forbidden);
exit;
}
}
}

# preloaded route checking
if (loose_route()) {
xlog(L_ERR,
Attempt to route with preloaded Route's [$fu/$tu/$ru/$ci]);
if (!is_method(ACK))
sl_send_reply(403,Preload Route denied);
exit;
}

# record routing
if (!is_method(REGISTER|MESSAGE))
record_route();

# account only INVITEs
if (is_method(INVITE)) {
*setflag(CDR_FLAG);
create_dialog();
setflag(TRACE_FLAG);
setflag(DB_FLAG); # do accounting ...
*
}


if (!uri==myself) {
append_hf(P-hint: outbound\r\n);
route(relay);
}

# requests for my domain
if (is_method(PUBLISH|SUBSCRIBE))
{
sl_send_reply(503, Service Unavailable);
exit;
}

if (is_method(REGISTER))
{
if (   0 ) setflag(TCP_PERSISTENT);

if (!save(location))
sl_reply_error();

exit;
}

if ($rU==NULL) {
# request with no Username in RURI
sl_send_reply(484,Address Incomplete);
exit;
}

# do lookup with method filtering
if (!lookup(location,m)) {
t_newtran();

t_reply(404, Not Found);
exit;
}

# when routing via usrloc, log the missed calls also
setflag(ACC_MISSED);
route(relay);
}


route[relay] {
# for INVITEs enable some additional helper routes
if (is_method(INVITE)) {
t_on_branch(per_branch_ops);
t_on_reply(handle_nat);
t_on_failure(missed_call);
}

if (!t_relay()) {
send_reply(500,Internal Error);
};
exit;
}


branch_route[per_branch_ops] {
xlog(new branch at $ru\n);
}


onreply_route[handle_nat] {

xlog(incoming reply\n);
}


failure_route[missed_call] {
if (t_was_cancelled()) {
exit;
}

# uncomment the following lines if you want to block client
# redirect based on 3xx replies.
##if (t_check_status(3[0-9][0-9])) {
##t_reply(404,Not found);
##exit;
##}

}
Regards

sermj


On Fri, Jun 28, 2013 at 4:59 PM, Flavio Goncalves fla...@voffice.com.brwrote:

 Hi Nandini,

 Try the following steps:

 1. Make sure you have data in the ACC tables (select * from acc;). If you
 don't have data in your acc table you have problems in your opensips script.

 2. Try to run the proc manually in the database.  SQLcall
 opensips_cdrs_1_6();
 This proc should be run each 3 minutes from cron daemon.

 3. Check now if you have data in cdrs (select * from cdrs).

 If you still don't have any data in cdrs, please check the opensips logs
 for errors inserting data in the database.

 Best regards,

 Flavio E. Goncalves



 2013/6/28 Nandini madhu sermj2...@gmail.com

 Dear Flavio E. Goncalves,

 

Re: [OpenSIPS-Users] opensips control panel

2013-08-07 Thread Mike Tesliuk
Nandini,

If you have the INVITE and BYE on the acc table, the problem is just on the
procedure, did you try to call the procedure manually as flavio suggest ?
did you configure a cron job to run the procedure ?


2013/8/7 Nandini madhu sermj2...@gmail.com

 Hi Flavio,
 Greetings.

 Hi Bodgan.
 Greetings.

 I have seen some INVITES and BYES in my acc table. I have enabled CDR_FLAG
 in my script and loaded the module too.

 But i am unable to get the data in cdrviewer.

 Please help me

 My script is as below:

 # main request routing logic

 route{
 if (!mf_process_maxfwd_header(10)) {
 sl_send_reply(483,Too Many Hops);
 exit;
 }

 if (has_totag()) {
 # sequential requests within a dialog should
 # take the path determined by record-routing
 if (loose_route()) {
 if (is_method(BYE)) {
 *setflag(CDR_FLAG); # ... even if the transaction fails
 create_dialog();
 setflag(TRACE_FLAG);
 setflag(DB_FLAG); # do accounting ...*
 } else if (is_method(INVITE)) {
 # even if in most of the cases is useless, do RR for
 # re-INVITEs alos, as some buggy clients do change route
 set
 # during the dialog.
 record_route();
 }

 # route it out to whatever destination was set by loose_route()
 # in $du (destination URI).
 route(relay);
 } else {
 if ( is_method(ACK) ) {
 if ( t_check_trans() ) {
 # non loose-route, but stateful ACK; must be an ACK
 after
 # a 487 or e.g. 404 from upstream server
 t_relay();
 exit;
 } else {
 # ACK without matching transaction -
 # ignore and discard
 exit;
 }
 }
 sl_send_reply(404,Not here);
 }
 exit;
 }

 # CANCEL processing
 if (is_method(CANCEL))
 {
 if (t_check_trans())
 t_relay();
 exit;
 }

 t_check_trans();

 if ( !(is_method(REGISTER)  ) ) {
 if (from_uri==myself)
 {
 } else {
 # if caller is not local, then called number must be local
 if (!uri==myself) {
 send_reply(403,Rely forbidden);
 exit;
 }
 }
 }

 # preloaded route checking
 if (loose_route()) {
 xlog(L_ERR,
 Attempt to route with preloaded Route's [$fu/$tu/$ru/$ci]);
 if (!is_method(ACK))
 sl_send_reply(403,Preload Route denied);
 exit;
 }

 # record routing
 if (!is_method(REGISTER|MESSAGE))
 record_route();

 # account only INVITEs
 if (is_method(INVITE)) {
 *setflag(CDR_FLAG);
 create_dialog();
 setflag(TRACE_FLAG);
 setflag(DB_FLAG); # do accounting ...
 *
 }


 if (!uri==myself) {
 append_hf(P-hint: outbound\r\n);
 route(relay);
 }

 # requests for my domain
 if (is_method(PUBLISH|SUBSCRIBE))
 {
 sl_send_reply(503, Service Unavailable);
 exit;
 }

 if (is_method(REGISTER))
 {
 if (   0 ) setflag(TCP_PERSISTENT);

 if (!save(location))
 sl_reply_error();

 exit;
 }

 if ($rU==NULL) {
 # request with no Username in RURI
 sl_send_reply(484,Address Incomplete);
 exit;
 }

 # do lookup with method filtering
 if (!lookup(location,m)) {
 t_newtran();

 t_reply(404, Not Found);
 exit;
 }

 # when routing via usrloc, log the missed calls also
 setflag(ACC_MISSED);
 route(relay);
 }


 route[relay] {
 # for INVITEs enable some additional helper routes
 if (is_method(INVITE)) {
 t_on_branch(per_branch_ops);
 t_on_reply(handle_nat);
 t_on_failure(missed_call);
 }

 if (!t_relay()) {
 send_reply(500,Internal Error);
 };
 exit;
 }


 branch_route[per_branch_ops] {
 xlog(new branch at $ru\n);
 }


 onreply_route[handle_nat] {

 xlog(incoming reply\n);
 }


 failure_route[missed_call] {
 if (t_was_cancelled()) {
 exit;
 }

 # uncomment the following lines if you want to block client
 # redirect based on 3xx replies.
 ##if (t_check_status(3[0-9][0-9])) {
 ##t_reply(404,Not found);
 ##exit;
 ##}

 }
 Regards

 sermj


 On Fri, Jun 28, 2013 at 4:59 PM, Flavio Goncalves 
 fla...@voffice.com.brwrote:

 Hi Nandini,

 Try the following steps:

 1. Make sure you have data in the ACC tables (select * from acc;). If you
 don't have data in your acc table you have problems in your opensips script.

 2. Try to run the 

Re: [OpenSIPS-Users] opensips control panel

2013-08-07 Thread Nandini madhu
Dear Mike,

Greetings.

Thanks for the reply. i have checked the procedure and it is working fine
with bot acc and cdrs tables.

I am trying to look for the online users in opensips-cp 5.0. it is not
showing in user management while information is available by using
opensipsctl online command in terminal

Please help me

Regards

sermj

Thanks a lot. Can


On Wed, Aug 7, 2013 at 7:04 PM, Mike Tesliuk m...@ultra.net.br wrote:

 Nandini,

 If you have the INVITE and BYE on the acc table, the problem is just on
 the procedure, did you try to call the procedure manually as flavio suggest
 ? did you configure a cron job to run the procedure ?


 2013/8/7 Nandini madhu sermj2...@gmail.com

 Hi Flavio,
 Greetings.

 Hi Bodgan.
 Greetings.

 I have seen some INVITES and BYES in my acc table. I have enabled
 CDR_FLAG in my script and loaded the module too.

 But i am unable to get the data in cdrviewer.

 Please help me

 My script is as below:

 # main request routing logic

 route{
 if (!mf_process_maxfwd_header(10)) {
 sl_send_reply(483,Too Many Hops);
 exit;
 }

 if (has_totag()) {
 # sequential requests within a dialog should
 # take the path determined by record-routing
 if (loose_route()) {
 if (is_method(BYE)) {
 *setflag(CDR_FLAG); # ... even if the transaction fails
 create_dialog();
 setflag(TRACE_FLAG);
 setflag(DB_FLAG); # do accounting ...*
 } else if (is_method(INVITE)) {
 # even if in most of the cases is useless, do RR for
 # re-INVITEs alos, as some buggy clients do change route
 set
 # during the dialog.
 record_route();
 }

 # route it out to whatever destination was set by
 loose_route()
 # in $du (destination URI).
 route(relay);
 } else {
 if ( is_method(ACK) ) {
 if ( t_check_trans() ) {
 # non loose-route, but stateful ACK; must be an ACK
 after
 # a 487 or e.g. 404 from upstream server
 t_relay();
 exit;
 } else {
 # ACK without matching transaction -
 # ignore and discard
 exit;
 }
 }
 sl_send_reply(404,Not here);
 }
 exit;
 }

 # CANCEL processing
 if (is_method(CANCEL))
 {
 if (t_check_trans())
 t_relay();
 exit;
 }

 t_check_trans();

 if ( !(is_method(REGISTER)  ) ) {
 if (from_uri==myself)
 {
 } else {
 # if caller is not local, then called number must be local
 if (!uri==myself) {
 send_reply(403,Rely forbidden);
 exit;
 }
 }
 }

 # preloaded route checking
 if (loose_route()) {
 xlog(L_ERR,
 Attempt to route with preloaded Route's [$fu/$tu/$ru/$ci]);
 if (!is_method(ACK))
 sl_send_reply(403,Preload Route denied);
 exit;
 }

 # record routing
 if (!is_method(REGISTER|MESSAGE))
 record_route();

 # account only INVITEs
 if (is_method(INVITE)) {
 *setflag(CDR_FLAG);
 create_dialog();
 setflag(TRACE_FLAG);
 setflag(DB_FLAG); # do accounting ...
 *
 }


 if (!uri==myself) {
 append_hf(P-hint: outbound\r\n);
 route(relay);
 }

 # requests for my domain
 if (is_method(PUBLISH|SUBSCRIBE))
 {
 sl_send_reply(503, Service Unavailable);
 exit;
 }

 if (is_method(REGISTER))
 {
 if (   0 ) setflag(TCP_PERSISTENT);

 if (!save(location))
 sl_reply_error();

 exit;
 }

 if ($rU==NULL) {
 # request with no Username in RURI
 sl_send_reply(484,Address Incomplete);
 exit;
 }

 # do lookup with method filtering
 if (!lookup(location,m)) {
 t_newtran();

 t_reply(404, Not Found);
 exit;
 }

 # when routing via usrloc, log the missed calls also
 setflag(ACC_MISSED);
 route(relay);
 }


 route[relay] {
 # for INVITEs enable some additional helper routes
 if (is_method(INVITE)) {
 t_on_branch(per_branch_ops);
 t_on_reply(handle_nat);
 t_on_failure(missed_call);
 }

 if (!t_relay()) {
 send_reply(500,Internal Error);
 };
 exit;
 }


 branch_route[per_branch_ops] {
 xlog(new branch at $ru\n);
 }


 onreply_route[handle_nat] {

 xlog(incoming reply\n);
 }


 failure_route[missed_call] {
 if (t_was_cancelled()) {
 exit;
 }

 # uncomment the following lines if you want to block client
 # redirect based 

Re: [OpenSIPS-Users] opensips-control panel

2013-07-17 Thread Bogdan-Andrei Iancu
Hello,

Do you see any records at all in the acc table ?

Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com


On 07/03/2013 02:52 PM, Nandini madhu wrote:
 Dear all,

 i have installed opensips-cp 5.0 version.
 in cdrviewer i can see NoData Found.

 and also in monit, i can see
 primary sip server: 192.168.2.39:2812 http://192.168.2.39:2812
 i cant connect.
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] opensips control panel

2013-06-28 Thread Nandini madhu
Dear Flavio E. Goncalves,

I have loaded opensips_cdrs.mysql and cdrs.mysql into mysql database.
And i rechecked the installation instructions as per opensips control panel
documentation.
Please have a glance on the list available in opensips database:

mysql show tables; (in opensips database)
+--+
| Tables_in_opensips   |
+--+
| acc  |
| active_watchers  |
| address  |
| aliases  |
| carrierfailureroute  |
| carrierroute |
| cdrs |
| cpl  |
| dbaliases|
| dialog   |
| dialplan |
| dispatcher   |
| domain   |
| domainpolicy |
| dr_carriers  |
| dr_gateways  |
| dr_groups|
| dr_rules |
| globalblacklist  |
| grp  |
| imc_members  |
| imc_rooms|
| load_balancer|
| location |
| missed_calls |
| monitored_stats  |
| monitoring_stats |
| ocp_admin_privileges |
| pdt  |
| presentity   |
| pua  |
| re_grp   |
| registrant   |
| rls_presentity   |
| rls_watchers |
| route_tree   |
| rtpproxy_sockets |
| silo |
| sip_trace|
| speed_dial   |
| subscriber   |
| uri  |
| userblacklist|
| usr_preferences  |
| version  |
| watchers |
| xcap |
+--+
47 rows in set (0.00 sec)

Tables from cdrs table from opensips database;

mysql show columns from cdrs;
+-+--+--+-+-++
| Field   | Type | Null | Key | Default |
Extra  |
+-+--+--+-+-++
| cdr_id  | bigint(20)   | NO   | PRI | NULL|
auto_increment |
| call_start_time | datetime | NO   | | -00-00 00:00:00
||
| duration| int(10) unsigned | NO   | | 0
||
| sip_call_id | varchar(128) | NO   | |
||
| sip_from_tag| varchar(128) | NO   | |
||
| sip_to_tag  | varchar(128) | NO   | |
||
| created | datetime | NO   | | -00-00 00:00:00
||
+-+--+--+-+-++
7 rows in set (0.00 sec)

Kindly please help me.


On Thu, Jun 27, 2013 at 3:53 PM, Flavio Goncalves fla...@voffice.com.brwrote:

 Hi Nandini,

 There is a mysql stored procedure call to calculate the duration of the
 calls. There are some files at the tool subdirectory.
 /var/www/opensips=cp/config/tools/system/cdr (if I'm remembering
 correctly). There is a sql file with a procedure to import to mysql (or
 postgresql) and a shell script to call the procedure from cron. Please,
 check again the installation instructions.

 Flavio E. Goncalves



 2013/6/27 Nandini madhu sermj2...@gmail.com

 Dear all.

   i have installed opensips server and open-sips control panel on my pc
 successfully.
   In user management ,i can see the clients listed,but when the clients
 are registered,when we click on line users,its showing no data found.
 In CDRviewer also its showing no data.

 please help me,
 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


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


Re: [OpenSIPS-Users] opensips control panel

2013-06-28 Thread Flavio Goncalves
Hi Nandini,

Try the following steps:

1. Make sure you have data in the ACC tables (select * from acc;). If you
don't have data in your acc table you have problems in your opensips script.

2. Try to run the proc manually in the database.  SQLcall
opensips_cdrs_1_6();
This proc should be run each 3 minutes from cron daemon.

3. Check now if you have data in cdrs (select * from cdrs).

If you still don't have any data in cdrs, please check the opensips logs
for errors inserting data in the database.

Best regards,

Flavio E. Goncalves



2013/6/28 Nandini madhu sermj2...@gmail.com

 Dear Flavio E. Goncalves,

 I have loaded opensips_cdrs.mysql and cdrs.mysql into mysql database.
 And i rechecked the installation instructions as per opensips control
 panel documentation.
 Please have a glance on the list available in opensips database:

 mysql show tables; (in opensips database)
 +--+
 | Tables_in_opensips   |
 +--+
 | acc  |
 | active_watchers  |
 | address  |
 | aliases  |
 | carrierfailureroute  |
 | carrierroute |
 | cdrs |
 | cpl  |
 | dbaliases|
 | dialog   |
 | dialplan |
 | dispatcher   |
 | domain   |
 | domainpolicy |
 | dr_carriers  |
 | dr_gateways  |
 | dr_groups|
 | dr_rules |
 | globalblacklist  |
 | grp  |
 | imc_members  |
 | imc_rooms|
 | load_balancer|
 | location |
 | missed_calls |
 | monitored_stats  |
 | monitoring_stats |
 | ocp_admin_privileges |
 | pdt  |
 | presentity   |
 | pua  |
 | re_grp   |
 | registrant   |
 | rls_presentity   |
 | rls_watchers |
 | route_tree   |
 | rtpproxy_sockets |
 | silo |
 | sip_trace|
 | speed_dial   |
 | subscriber   |
 | uri  |
 | userblacklist|
 | usr_preferences  |
 | version  |
 | watchers |
 | xcap |
 +--+
 47 rows in set (0.00 sec)

 Tables from cdrs table from opensips database;

 mysql show columns from cdrs;

 +-+--+--+-+-++
 | Field   | Type | Null | Key | Default |
 Extra  |

 +-+--+--+-+-++
 | cdr_id  | bigint(20)   | NO   | PRI | NULL|
 auto_increment |
 | call_start_time | datetime | NO   | | -00-00 00:00:00
 ||
 | duration| int(10) unsigned | NO   | | 0
 ||
 | sip_call_id | varchar(128) | NO   | |
 ||
 | sip_from_tag| varchar(128) | NO   | |
 ||
 | sip_to_tag  | varchar(128) | NO   | |
 ||
 | created | datetime | NO   | | -00-00 00:00:00
 ||

 +-+--+--+-+-++
 7 rows in set (0.00 sec)

 Kindly please help me.


 On Thu, Jun 27, 2013 at 3:53 PM, Flavio Goncalves 
 fla...@voffice.com.brwrote:

 Hi Nandini,

 There is a mysql stored procedure call to calculate the duration of the
 calls. There are some files at the tool subdirectory.
 /var/www/opensips=cp/config/tools/system/cdr (if I'm remembering
 correctly). There is a sql file with a procedure to import to mysql (or
 postgresql) and a shell script to call the procedure from cron. Please,
 check again the installation instructions.

 Flavio E. Goncalves



 2013/6/27 Nandini madhu sermj2...@gmail.com

  Dear all.

   i have installed opensips server and open-sips control panel on my pc
 successfully.
   In user management ,i can see the clients listed,but when the clients
 are registered,when we click on line users,its showing no data found.
 In CDRviewer also its showing no data.

 please help me,
 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



 ___
 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] opensips control panel

2013-06-27 Thread pa...@eremina.net
Do you correctly set db_mode for usrloc?

1.3.20. db_mode (integer)

The usrloc module can utilize database for persistent contact storage. If
you use database, your contacts will survive machine restarts or SW
crashes. The disadvantage is that accessing database can be very time
consuming. Therefore, usrloc module implements four database accessing
modes:

   -

   0 - This disables database completely. Only memory will be used.
   Contacts will not survive restart. Use this value if you need a really fast
   usrloc and contact persistence is not necessary or is provided by other
   means.
   -

   1 - Write-Through scheme. All changes to usrloc are immediately
   reflected in database too. This is very slow, but very reliable. Use this
   scheme if speed is not your priority but need to make sure that no
   registered contacts will be lost during crash or reboot.
   -

   2 - Write-Back scheme. This is a combination of previous two schemes.
   All changes are made to memory and database synchronization is done in the
   timer. The timer deletes all expired contacts and flushes all modified or
   new contacts to database. Use this scheme if you encounter high-load peaks
   and want them to process as fast as possible. The mode will not help at all
   if the load is high all the time. Also, latency of this mode is much lower
   than latency of mode 1, but slightly higher than latency of mode 0.
   -

   3 - DB-Only scheme. No memory cache is kept, all operations being
   directly performed with the database. The timer deletes all expired
   contacts from database - cleans after clients that didn't un-register or
   re-register. The mode is useful if you configure more servers sharing the
   same DB without any replication at SIP level. The mode may be slower due
   the high number of DB operation. For example NAT pinging is a killer since
   during each ping cycle all nated contact are loaded from the DB; The lack
   of memory caching also disable the statistics exports.



2013/6/27 Nandini madhu sermj2...@gmail.com

 Dear all.

   i have installed opensips server and open-sips control panel on my pc
 successfully.
   In user management ,i can see the clients listed,but when the clients
 are registered,when we click on line users,its showing no data found.
 In CDRviewer also its showing no data.

 please help me,
 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


Re: [OpenSIPS-Users] opensips control panel

2013-06-27 Thread Flavio Goncalves
Hi Nandini,

There is a mysql stored procedure call to calculate the duration of the
calls. There are some files at the tool subdirectory.
/var/www/opensips=cp/config/tools/system/cdr (if I'm remembering
correctly). There is a sql file with a procedure to import to mysql (or
postgresql) and a shell script to call the procedure from cron. Please,
check again the installation instructions.

Flavio E. Goncalves



2013/6/27 Nandini madhu sermj2...@gmail.com

 Dear all.

   i have installed opensips server and open-sips control panel on my pc
 successfully.
   In user management ,i can see the clients listed,but when the clients
 are registered,when we click on line users,its showing no data found.
 In CDRviewer also its showing no data.

 please help me,
 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


Re: [OpenSIPS-Users] opensips control panel

2013-06-27 Thread Nandini madhu
thanks for your prompt response,

the db_mode set for usrloc is 2.

modparam(usrloc, db_mode, 2)

but i could not find the online users


On Thu, Jun 27, 2013 at 3:39 PM, pa...@eremina.net eremina@gmail.comwrote:

 Do you correctly set db_mode for usrloc?

 1.3.20. db_mode (integer)

 The usrloc module can utilize database for persistent contact storage. If
 you use database, your contacts will survive machine restarts or SW
 crashes. The disadvantage is that accessing database can be very time
 consuming. Therefore, usrloc module implements four database accessing
 modes:

-

0 - This disables database completely. Only memory will be used.
Contacts will not survive restart. Use this value if you need a really fast
usrloc and contact persistence is not necessary or is provided by other
means.
-

1 - Write-Through scheme. All changes to usrloc are immediately
reflected in database too. This is very slow, but very reliable. Use this
scheme if speed is not your priority but need to make sure that no
registered contacts will be lost during crash or reboot.
-

2 - Write-Back scheme. This is a combination of previous two schemes.
All changes are made to memory and database synchronization is done in the
timer. The timer deletes all expired contacts and flushes all modified or
new contacts to database. Use this scheme if you encounter high-load peaks
and want them to process as fast as possible. The mode will not help at all
if the load is high all the time. Also, latency of this mode is much lower
than latency of mode 1, but slightly higher than latency of mode 0.
-

3 - DB-Only scheme. No memory cache is kept, all operations being
directly performed with the database. The timer deletes all expired
contacts from database - cleans after clients that didn't un-register or
re-register. The mode is useful if you configure more servers sharing the
same DB without any replication at SIP level. The mode may be slower due
the high number of DB operation. For example NAT pinging is a killer since
during each ping cycle all nated contact are loaded from the DB; The lack
of memory caching also disable the statistics exports.



 2013/6/27 Nandini madhu sermj2...@gmail.com

 Dear all.

   i have installed opensips server and open-sips control panel on my pc
 successfully.
   In user management ,i can see the clients listed,but when the clients
 are registered,when we click on line users,its showing no data found.
 In CDRviewer also its showing no data.

 please help me,
 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


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


Re: [OpenSIPS-Users] opensips control panel

2013-06-19 Thread Flavio Goncalves
Hi,

Please, check your DB parameters in db.inc.php.

Flavio E. Goncalves




2013/6/19 Nandini madhu sermj2...@gmail.com

 Dear All,
 Greetings,

 i have got the mi_xmlrpc.so file. but in control panel the error is:-

 *Failed to issue query, error message : MDB2 Error: no such table*

 thanks in advance

 please help me.

 ___
 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] opensips control panel

2013-06-14 Thread Bogdan-Andrei Iancu
Please follow http://www.opensips.org/Documentation/Tutorials-GettingStarted

Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com


On 06/14/2013 09:17 AM, Nandini madhu wrote:
 Dear Bogdan,
 Greetings.

 I have re-compiled and re-installed opensips(opensips-1.9.1-tls). Our
 OS is Ubuntu 10.04 and libxmlrpc-c3, libxmlrpc-c3-dev is
 1.06.27-1ubuntu7.1 version.

 Still i didn't get the module mi_xmlrpc.so in /usr/lib/opensips/modules.

 kindly help me.

 regards


 On Thu, Jun 13, 2013 at 10:07 PM, Bogdan-Andrei Iancu
 bog...@opensips.org mailto:bog...@opensips.org wrote:

 Hi,

 Have you recompiled and re-installed OpenSIPS after the menuconfig
 changes ?

 Regards,

 Bogdan-Andrei Iancu
 OpenSIPS Founder and Developer
 http://www.opensips-solutions.com


 On 06/13/2013 01:37 PM, Nandini madhu wrote:
 Dear Bogdon,
 Greetings.

 As you suggested i selected mi_xmlrpc module in make menuconfig
 (configurecomlipe options - configure exclude modules). But i
 could not get the module mi_xmlrpc.so file in
 /usr/lib/opensips/modules.

 Kindly suggest how to go about this issue.


 On Wed, Jun 12, 2013 at 3:22 PM, Bogdan-Andrei Iancu
 bog...@opensips.org mailto:bog...@opensips.org wrote:

 Hello Nandini,

 The mi_xmlrpc module is not be default compiled - use make
 menuconfig (configurecompile options -configure exclude
 modules) to enable the compiling of that module (and
 recompile and re-install opensips of course)

 Regards,

 Bogdan-Andrei Iancu
 OpenSIPS Founder and Developer
 http://www.opensips-solutions.com


 On 06/12/2013 08:28 AM, Nandini madhu wrote:
 Thanks for your reply.


 iam using the latest version of opensips i.e 1.9.1-tls.i
 could not find the mi_xmlrpc.so file.
 in usr/local/lib/opensips/modules.

 acc.so cachedb_local.so  dialog.so 
 event_route.somediaproxy.so peering.so   
 rtpproxy.sosst.so uri.so
 alias_db.so   cachedb_sql.sodispatcher.so 
 event_xmlrpc.so   mi_datagram.sopermissions.so   
 seas.sostatistics.so  userblacklist.so
 auth_aaa.so   call_control.so   diversion.so  
 exec.so   mi_fifo.sopike.so  
 signaling.so   stun.sousrloc.so
 auth_db.socfgutils.so   dns_cache.so  
 gflags.so msilo.so  presence_callinfo.so 
 sipcapture.so  textops.so
 auth_diameter.so  closeddial.so domainpolicy.so   
 group.so  nathelper.so  presence_xcapdiff.so 
 sipmsgops.so   tm.so
 auth.so   db_flatstore.so   domain.so 
 imc.sonat_traversal.so  qos.so   
 siptrace.souac_auth.so
 avpops.so db_mysql.so   drouting.so   
 load_balancer.so  options.soratelimit.so 
 sl.so  uac_redirect.so
 b2b_entities.so   db_text.soenum.so   
 mangler.sopath.so   registrar.so 
 sms.so uac_registrant.so
 benchmark.so  db_virtual.so event_datagram.so 
 maxfwd.so pdt.sorr.so
 speeddial.so   uac.so


 by giving netstat -tlnp | grep opensips
 i could not find any output.

 please help me








 On Tue, Jun 11, 2013 at 8:57 PM, Bogdan-Andrei Iancu
 bog...@opensips.org mailto:bog...@opensips.org wrote:

 Hi,

 Are you using the mi_xmlrpc module in your opensips cfg
 ? That's the module responsible for listening on 8000
 port - btw check if the port in opensips  (mi_xmlrpc
 module) matches the one in CP. Do:
 netstat -tlnp | grep opensips

 Regards,

 Bogdan-Andrei Iancu
 OpenSIPS Founder and Developer
 http://www.opensips-solutions.com


 On 06/11/2013 10:53 AM, Nandini madhu wrote:
 Dear All,

 In the control panel I get these error messages:Cannot
 connect to OpenSIPS Server via Management Interface
 (192.168.2.40/8000 http://127.0.0.1/8000)

 my opensips server is running ,
 i installed opensips server and opensips control panel
 on same pc.

 please help me...


 On Mon, Jun 10, 2013 at 5:33 PM, Bogdan-Andrei Iancu
 bog...@opensips.org mailto:bog...@opensips.org wrote:

 That line has to be in config/boxes.global.inc.php

 Regards,

 Bogdan-Andrei Iancu
 OpenSIPS Founder and Developer

Re: [OpenSIPS-Users] opensips control panel

2013-06-13 Thread Bogdan-Andrei Iancu
Hi,

Have you recompiled and re-installed OpenSIPS after the menuconfig changes ?

Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com


On 06/13/2013 01:37 PM, Nandini madhu wrote:
 Dear Bogdon,
 Greetings.

 As you suggested i selected mi_xmlrpc module in make menuconfig
 (configurecomlipe options - configure exclude modules). But i could
 not get the module mi_xmlrpc.so file in /usr/lib/opensips/modules.

 Kindly suggest how to go about this issue.


 On Wed, Jun 12, 2013 at 3:22 PM, Bogdan-Andrei Iancu
 bog...@opensips.org mailto:bog...@opensips.org wrote:

 Hello Nandini,

 The mi_xmlrpc module is not be default compiled - use make
 menuconfig (configurecompile options -configure exclude
 modules) to enable the compiling of that module (and recompile and
 re-install opensips of course)

 Regards,

 Bogdan-Andrei Iancu
 OpenSIPS Founder and Developer
 http://www.opensips-solutions.com


 On 06/12/2013 08:28 AM, Nandini madhu wrote:
 Thanks for your reply.


 iam using the latest version of opensips i.e 1.9.1-tls.i could
 not find the mi_xmlrpc.so file.
 in usr/local/lib/opensips/modules.

 acc.so cachedb_local.so  dialog.so 
 event_route.somediaproxy.so peering.so   
 rtpproxy.sosst.so uri.so
 alias_db.so   cachedb_sql.sodispatcher.so 
 event_xmlrpc.so   mi_datagram.sopermissions.so   
 seas.sostatistics.so  userblacklist.so
 auth_aaa.so   call_control.so   diversion.so  
 exec.so   mi_fifo.sopike.so  
 signaling.so   stun.sousrloc.so
 auth_db.socfgutils.so   dns_cache.so  
 gflags.so msilo.so  presence_callinfo.so 
 sipcapture.so  textops.so
 auth_diameter.so  closeddial.so domainpolicy.so   
 group.so  nathelper.so  presence_xcapdiff.so 
 sipmsgops.so   tm.so
 auth.so   db_flatstore.so   domain.so 
 imc.sonat_traversal.so  qos.so   
 siptrace.souac_auth.so
 avpops.so db_mysql.so   drouting.so   
 load_balancer.so  options.soratelimit.so 
 sl.so  uac_redirect.so
 b2b_entities.so   db_text.soenum.so   
 mangler.sopath.so   registrar.so 
 sms.so uac_registrant.so
 benchmark.so  db_virtual.so event_datagram.so 
 maxfwd.so pdt.sorr.so
 speeddial.so   uac.so


 by giving netstat -tlnp | grep opensips
 i could not find any output.

 please help me








 On Tue, Jun 11, 2013 at 8:57 PM, Bogdan-Andrei Iancu
 bog...@opensips.org mailto:bog...@opensips.org wrote:

 Hi,

 Are you using the mi_xmlrpc module in your opensips cfg ?
 That's the module responsible for listening on 8000 port -
 btw check if the port in opensips  (mi_xmlrpc module) matches
 the one in CP. Do:
 netstat -tlnp | grep opensips

 Regards,

 Bogdan-Andrei Iancu
 OpenSIPS Founder and Developer
 http://www.opensips-solutions.com


 On 06/11/2013 10:53 AM, Nandini madhu wrote:
 Dear All,

 In the control panel I get these error messages:Cannot
 connect to OpenSIPS Server via Management Interface
 (192.168.2.40/8000 http://127.0.0.1/8000)

 my opensips server is running ,
 i installed opensips server and opensips control panel on
 same pc.

 please help me...


 On Mon, Jun 10, 2013 at 5:33 PM, Bogdan-Andrei Iancu
 bog...@opensips.org mailto:bog...@opensips.org wrote:

 That line has to be in config/boxes.global.inc.php

 Regards,

 Bogdan-Andrei Iancu
 OpenSIPS Founder and Developer
 http://www.opensips-solutions.com


 On 06/10/2013 02:37 PM, Nandini madhu wrote:
 Thanks for your response...

 in load balancer in local.inc.php

 i could not find this line..

 hange $box[1]['mi']['conn']=/tmp/opensips_fifo

 but i added the line in local.inc.php

 and i restarted the server,but the error is same.

 please help me.

 thank you





 On Mon, Jun 10, 2013 at 3:23 PM, Miha m...@softnet.si
 mailto:m...@softnet.si wrote:

 hi,

 in:
 opensips-cp/config/tools/system/dispatcher/local.inc.php

 change
 $box[1]['mi']['conn']=/tmp/opensips_proxy_fifo;
 to $box[1]['mi']['conn']=/tmp/opensips_fifo;


 br,
 miha

 Dne 6/10/2013 11:46 AM, piše Nandini madhu:
 Dear all.
 

Re: [OpenSIPS-Users] opensips control panel

2013-06-12 Thread Bogdan-Andrei Iancu
Hello Nandini,

The mi_xmlrpc module is not be default compiled - use make menuconfig
(configurecompile options -configure exclude modules) to enable the
compiling of that module (and recompile and re-install opensips of course)

Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com


On 06/12/2013 08:28 AM, Nandini madhu wrote:
 Thanks for your reply.


 iam using the latest version of opensips i.e 1.9.1-tls.i could not
 find the mi_xmlrpc.so file.
 in usr/local/lib/opensips/modules.

 acc.so cachedb_local.so  dialog.so 
 event_route.somediaproxy.so peering.so   
 rtpproxy.sosst.so uri.so
 alias_db.so   cachedb_sql.sodispatcher.so 
 event_xmlrpc.so   mi_datagram.sopermissions.so   
 seas.sostatistics.so  userblacklist.so
 auth_aaa.so   call_control.so   diversion.so  
 exec.so   mi_fifo.sopike.so  
 signaling.so   stun.sousrloc.so
 auth_db.socfgutils.so   dns_cache.so  
 gflags.so msilo.so  presence_callinfo.so 
 sipcapture.so  textops.so
 auth_diameter.so  closeddial.so domainpolicy.so   
 group.so  nathelper.so  presence_xcapdiff.so 
 sipmsgops.so   tm.so
 auth.so   db_flatstore.so   domain.so 
 imc.sonat_traversal.so  qos.so   
 siptrace.souac_auth.so
 avpops.so db_mysql.so   drouting.so   
 load_balancer.so  options.soratelimit.so 
 sl.so  uac_redirect.so
 b2b_entities.so   db_text.soenum.so   
 mangler.sopath.so   registrar.so 
 sms.so uac_registrant.so
 benchmark.so  db_virtual.so event_datagram.so 
 maxfwd.so pdt.sorr.so
 speeddial.so   uac.so


 by giving netstat -tlnp | grep opensips
 i could not find any output.

 please help me








 On Tue, Jun 11, 2013 at 8:57 PM, Bogdan-Andrei Iancu
 bog...@opensips.org mailto:bog...@opensips.org wrote:

 Hi,

 Are you using the mi_xmlrpc module in your opensips cfg ? That's
 the module responsible for listening on 8000 port - btw check if
 the port in opensips  (mi_xmlrpc module) matches the one in CP. Do:
 netstat -tlnp | grep opensips

 Regards,

 Bogdan-Andrei Iancu
 OpenSIPS Founder and Developer
 http://www.opensips-solutions.com


 On 06/11/2013 10:53 AM, Nandini madhu wrote:
 Dear All,

 In the control panel I get these error messages:Cannot connect to
 OpenSIPS Server via Management Interface (192.168.2.40/8000
 http://127.0.0.1/8000)

 my opensips server is running ,
 i installed opensips server and opensips control panel on same pc.

 please help me...


 On Mon, Jun 10, 2013 at 5:33 PM, Bogdan-Andrei Iancu
 bog...@opensips.org mailto:bog...@opensips.org wrote:

 That line has to be in config/boxes.global.inc.php

 Regards,

 Bogdan-Andrei Iancu
 OpenSIPS Founder and Developer
 http://www.opensips-solutions.com


 On 06/10/2013 02:37 PM, Nandini madhu wrote:
 Thanks for your response...

 in load balancer in local.inc.php

 i could not find this line..

 hange $box[1]['mi']['conn']=/tmp/opensips_fifo

 but i added the line in local.inc.php

 and i restarted the server,but the error is same.

 please help me.

 thank you





 On Mon, Jun 10, 2013 at 3:23 PM, Miha m...@softnet.si
 mailto:m...@softnet.si wrote:

 hi,

 in: opensips-cp/config/tools/system/dispatcher/local.inc.php

 change $box[1]['mi']['conn']=/tmp/opensips_proxy_fifo;
 to $box[1]['mi']['conn']=/tmp/opensips_fifo;


 br,
 miha

 Dne 6/10/2013 11:46 AM, piše Nandini madhu:
 Dear all.
 Greetings.

 I have resolved the issue.i can log in to web page.
 In *System / Dispatcher / Read-Write

 *iam getting error ;-
 *Array ( [0] = Cannot connect to OpenSIPS Server via
 Management Interface (/tmp/opensips_proxy_fifo) )

 *
 how to solve this problem.


 thank you*
 *


 On Mon, Jun 10, 2013 at 2:56 PM, Miha m...@softnet.si
 mailto:m...@softnet.si wrote:

 Dne 6/8/2013 1:26 PM, piše Nandini madhu:
 Dear All,

 iam installed opensips server.
 As the steps given in installation guide.
  
 i cant log in to the web page.

 when iam starting apache server:-

 opensips@opensips:~$ sudo /etc/init.d/apache2
 * Restarting web server apache2
  ...
 waiting   

Re: [OpenSIPS-Users] opensips control panel

2013-06-11 Thread Bogdan-Andrei Iancu
Hi,

Are you using the mi_xmlrpc module in your opensips cfg ? That's the
module responsible for listening on 8000 port - btw check if the port in
opensips  (mi_xmlrpc module) matches the one in CP. Do:
netstat -tlnp | grep opensips

Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com


On 06/11/2013 10:53 AM, Nandini madhu wrote:
 Dear All,

 In the control panel I get these error messages:Cannot connect to
 OpenSIPS Server via Management Interface (192.168.2.40/8000
 http://127.0.0.1/8000)

 my opensips server is running ,
 i installed opensips server and opensips control panel on same pc.

 please help me...


 On Mon, Jun 10, 2013 at 5:33 PM, Bogdan-Andrei Iancu
 bog...@opensips.org mailto:bog...@opensips.org wrote:

 That line has to be in config/boxes.global.inc.php

 Regards,

 Bogdan-Andrei Iancu
 OpenSIPS Founder and Developer
 http://www.opensips-solutions.com


 On 06/10/2013 02:37 PM, Nandini madhu wrote:
 Thanks for your response...

 in load balancer in local.inc.php

 i could not find this line..

 hange $box[1]['mi']['conn']=/tmp/opensips_fifo

 but i added the line in local.inc.php

 and i restarted the server,but the error is same.

 please help me.

 thank you





 On Mon, Jun 10, 2013 at 3:23 PM, Miha m...@softnet.si
 mailto:m...@softnet.si wrote:

 hi,

 in: opensips-cp/config/tools/system/dispatcher/local.inc.php

 change $box[1]['mi']['conn']=/tmp/opensips_proxy_fifo; to
 $box[1]['mi']['conn']=/tmp/opensips_fifo;


 br,
 miha

 Dne 6/10/2013 11:46 AM, piše Nandini madhu:
 Dear all.
 Greetings.

 I have resolved the issue.i can log in to web page.
 In *System / Dispatcher / Read-Write

 *iam getting error ;-
 *Array ( [0] = Cannot connect to OpenSIPS Server via
 Management Interface (/tmp/opensips_proxy_fifo) )

 *
 how to solve this problem.


 thank you*
 *


 On Mon, Jun 10, 2013 at 2:56 PM, Miha m...@softnet.si
 mailto:m...@softnet.si wrote:

 Dne 6/8/2013 1:26 PM, piše Nandini madhu:
 Dear All,

 iam installed opensips server.
 As the steps given in installation guide.
  
 i cant log in to the web page.

 when iam starting apache server:-

 opensips@opensips:~$ sudo /etc/init.d/apache2
 * Restarting web server apache2
  ...
 waiting   
 [ ok ]


 please help me

 Thanks in advance.




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

 what does apache/httpd log says?

 Is mysql running?

 miha

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




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


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



 ___
 Users mailing list
 Users@lists.opensips.org mailto: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] opensips control panel

2013-06-10 Thread Miha

Dne 6/8/2013 1:26 PM, pis(e Nandini madhu:

Dear All,

iam installed opensips server.
As the steps given in installation guide.

i cant log in to the web page.

when iam starting apache server:-

opensips@opensips:~$ sudo /etc/init.d/apache2
* Restarting web server apache2
 ... waiting[ ok ]


please help me

Thanks in advance.




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

hi,

what does apache/httpd log says?

Is mysql running?

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


Re: [OpenSIPS-Users] opensips control panel

2013-06-10 Thread Nandini madhu
Dear all.
Greetings.

I have resolved the issue.i can log in to web page.
In *System / Dispatcher / Read-Write

*iam getting error ;-
*Array ( [0] = Cannot connect to OpenSIPS Server via Management Interface
(/tmp/opensips_proxy_fifo) )

*
how to solve this problem.


thank you*
*


On Mon, Jun 10, 2013 at 2:56 PM, Miha m...@softnet.si wrote:

  Dne 6/8/2013 1:26 PM, piše Nandini madhu:

   Dear All,

  iam installed opensips server.
  As the steps given in installation guide.

  i cant log in to the web page.

  when iam starting apache server:-

 opensips@opensips:~$ sudo /etc/init.d/apache2
 * Restarting web server apache2
  ... waiting[ ok ]


  please help me

  Thanks in advance.




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

  hi,

 what does apache/httpd log says?

 Is mysql running?

 miha

 ___
 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] opensips control panel

2013-06-10 Thread Miha

hi,

in: opensips-cp/config/tools/system/dispatcher/local.inc.php

change $box[1]['mi']['conn']=/tmp/opensips_proxy_fifo; to 
$box[1]['mi']['conn']=/tmp/opensips_fifo;



br,
miha

Dne 6/10/2013 11:46 AM, pis(e Nandini madhu:

Dear all.
Greetings.

I have resolved the issue.i can log in to web page.
In *System / Dispatcher / Read-Write

*iam getting error ;-
*Array ( [0] = Cannot connect to OpenSIPS Server via Management 
Interface (/tmp/opensips_proxy_fifo) )


*
how to solve this problem.


thank you*
*


On Mon, Jun 10, 2013 at 2:56 PM, Miha m...@softnet.si 
mailto:m...@softnet.si wrote:


Dne 6/8/2013 1:26 PM, pis(e Nandini madhu:

Dear All,

iam installed opensips server.
As the steps given in installation guide.

i cant log in to the web page.

when iam starting apache server:-

opensips@opensips:~$ sudo /etc/init.d/apache2
* Restarting web server apache2
 ... waiting [ ok ]


please help me

Thanks in advance.




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

hi,

what does apache/httpd log says?

Is mysql running?

miha

___
Users mailing list
Users@lists.opensips.org mailto: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] opensips control panel

2013-06-10 Thread Nandini madhu
Dear all.

Thank you very much for your response.i have solved the errors,

but still in system,iam getting the errors has below:-

1.*System / Load Balancer / Read-Write*
  Cache List http://192.168.2.40/cp/tools/system/loadbalancer/lb_cache.php
Cannot connect to OpenSIPS Server via Management Interface (
192.168.2.40/8000)

2.*System / Load Balancer / Read-Write
*
*  cache list
*Cannot connect to OpenSIPS Server via Management Interface (
192.168.2.40/8000)

3.Monit

192.168.2.40:2812
I can't connect!
   *
*
4.*System / Nathelper / Read-Write
*
*  cache list   nat ping

*
Cannot connect to OpenSIPS Server via Management Interface (
192.168.2.40/8000)

5.*System / SIP Trace / Read-Write
   *Cannot connect to OpenSIPS Server via Management Interface (
192.168.2.40/8000)

6. *System / Statistics Monitor / Read-Write*
  real time statistics.

Cannot connect to OpenSIPS Server via Management Interface (
192.168.2.40/8000)

please help me from this errors.

thanks in advance



On Mon, Jun 10, 2013 at 3:23 PM, Miha m...@softnet.si wrote:

  hi,

 in: opensips-cp/config/tools/system/dispatcher/local.inc.php

 change $box[1]['mi']['conn']=/tmp/opensips_proxy_fifo; to
 $box[1]['mi']['conn']=/tmp/opensips_fifo;


 br,
 miha

 Dne 6/10/2013 11:46 AM, piše Nandini madhu:

   Dear all.
  Greetings.

  I have resolved the issue.i can log in to web page.
  In *System / Dispatcher / Read-Write

 *iam getting error ;-
 *Array ( [0] = Cannot connect to OpenSIPS Server via Management
 Interface (/tmp/opensips_proxy_fifo) )

 *
 how to solve this problem.


  thank you*
 *


 On Mon, Jun 10, 2013 at 2:56 PM, Miha m...@softnet.si wrote:

  Dne 6/8/2013 1:26 PM, piše Nandini madhu:

Dear All,

  iam installed opensips server.
  As the steps given in installation guide.

  i cant log in to the web page.

  when iam starting apache server:-

 opensips@opensips:~$ sudo /etc/init.d/apache2
 * Restarting web server apache2
  ... waiting[ ok ]


  please help me

  Thanks in advance.




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

  hi,

 what does apache/httpd log says?

 Is mysql running?

 miha

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




 ___
 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


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


Re: [OpenSIPS-Users] opensips control panel

2013-06-10 Thread Miha

hi,

same with load_balancer and etc as you did with dispacher.

miha



Dne 6/10/2013 12:12 PM, pis(e Nandini madhu:

Dear all.

Thank you very much for your response.i have solved the errors,

but still in system,iam getting the errors has below:-

1.*System / Load Balancer / Read-Write*
Cache List http://192.168.2.40/cp/tools/system/loadbalancer/lb_cache.php
Cannot connect to OpenSIPS Server via Management Interface 
(192.168.2.40/8000 http://192.168.2.40/8000)


2.*System / Load Balancer / Read-Write
*
*  cache list
*Cannot connect to OpenSIPS Server via Management Interface 
(192.168.2.40/8000 http://192.168.2.40/8000)


3.Monit


  192.168.2.40:2812 http://192.168.2.40:2812




I can't connect!
*
*
4.*System / Nathelper / Read-Write
*
*  cache list   nat ping

*
Cannot connect to OpenSIPS Server via Management Interface 
(192.168.2.40/8000 http://192.168.2.40/8000)


5.*System / SIP Trace / Read-Write
*Cannot connect to OpenSIPS Server via Management Interface 
(192.168.2.40/8000 http://192.168.2.40/8000)


6. *System / Statistics Monitor / Read-Write*
  real time statistics.

Cannot connect to OpenSIPS Server via Management Interface 
(192.168.2.40/8000 http://192.168.2.40/8000)


please help me from this errors.

thanks in advance



On Mon, Jun 10, 2013 at 3:23 PM, Miha m...@softnet.si 
mailto:m...@softnet.si wrote:


hi,

in: opensips-cp/config/tools/system/dispatcher/local.inc.php

change $box[1]['mi']['conn']=/tmp/opensips_proxy_fifo; to
$box[1]['mi']['conn']=/tmp/opensips_fifo;


br,
miha

Dne 6/10/2013 11:46 AM, pis(e Nandini madhu:

Dear all.
Greetings.

I have resolved the issue.i can log in to web page.
In *System / Dispatcher / Read-Write

*iam getting error ;-
*Array ( [0] = Cannot connect to OpenSIPS Server via Management
Interface (/tmp/opensips_proxy_fifo) )

*
how to solve this problem.


thank you*
*


On Mon, Jun 10, 2013 at 2:56 PM, Miha m...@softnet.si
mailto:m...@softnet.si wrote:

Dne 6/8/2013 1:26 PM, pis(e Nandini madhu:

Dear All,

iam installed opensips server.
As the steps given in installation guide.

i cant log in to the web page.

when iam starting apache server:-

opensips@opensips:~$ sudo /etc/init.d/apache2
* Restarting web server apache2
 ... waiting [ ok ]


please help me

Thanks in advance.




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

hi,

what does apache/httpd log says?

Is mysql running?

miha

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




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



___
Users mailing list
Users@lists.opensips.org mailto: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] opensips control panel

2013-06-10 Thread Nandini madhu
Thanks for your response...

in load balancer in local.inc.php

i could not find this line..

hange $box[1]['mi']['conn']=/tmp/opensips_fifo

but i added the line in local.inc.php

and i restarted the server,but the error is same.

please help me.

thank you





On Mon, Jun 10, 2013 at 3:23 PM, Miha m...@softnet.si wrote:

  hi,

 in: opensips-cp/config/tools/system/dispatcher/local.inc.php

 change $box[1]['mi']['conn']=/tmp/opensips_proxy_fifo; to
 $box[1]['mi']['conn']=/tmp/opensips_fifo;


 br,
 miha

 Dne 6/10/2013 11:46 AM, piše Nandini madhu:

   Dear all.
  Greetings.

  I have resolved the issue.i can log in to web page.
  In *System / Dispatcher / Read-Write

 *iam getting error ;-
 *Array ( [0] = Cannot connect to OpenSIPS Server via Management
 Interface (/tmp/opensips_proxy_fifo) )

 *
 how to solve this problem.


  thank you*
 *


 On Mon, Jun 10, 2013 at 2:56 PM, Miha m...@softnet.si wrote:

  Dne 6/8/2013 1:26 PM, piše Nandini madhu:

Dear All,

  iam installed opensips server.
  As the steps given in installation guide.

  i cant log in to the web page.

  when iam starting apache server:-

 opensips@opensips:~$ sudo /etc/init.d/apache2
 * Restarting web server apache2
  ... waiting[ ok ]


  please help me

  Thanks in advance.




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

  hi,

 what does apache/httpd log says?

 Is mysql running?

 miha

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




 ___
 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


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


Re: [OpenSIPS-Users] opensips control panel

2013-06-10 Thread Bogdan-Andrei Iancu
That line has to be in config/boxes.global.inc.php

Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com


On 06/10/2013 02:37 PM, Nandini madhu wrote:
 Thanks for your response...

 in load balancer in local.inc.php

 i could not find this line..

 hange $box[1]['mi']['conn']=/tmp/opensips_fifo

 but i added the line in local.inc.php

 and i restarted the server,but the error is same.

 please help me.

 thank you





 On Mon, Jun 10, 2013 at 3:23 PM, Miha m...@softnet.si
 mailto:m...@softnet.si wrote:

 hi,

 in: opensips-cp/config/tools/system/dispatcher/local.inc.php

 change $box[1]['mi']['conn']=/tmp/opensips_proxy_fifo; to
 $box[1]['mi']['conn']=/tmp/opensips_fifo;


 br,
 miha

 Dne 6/10/2013 11:46 AM, piše Nandini madhu:
 Dear all.
 Greetings.

 I have resolved the issue.i can log in to web page.
 In *System / Dispatcher / Read-Write

 *iam getting error ;-
 *Array ( [0] = Cannot connect to OpenSIPS Server via Management
 Interface (/tmp/opensips_proxy_fifo) )

 *
 how to solve this problem.


 thank you*
 *


 On Mon, Jun 10, 2013 at 2:56 PM, Miha m...@softnet.si
 mailto:m...@softnet.si wrote:

 Dne 6/8/2013 1:26 PM, piše Nandini madhu:
 Dear All,

 iam installed opensips server.
 As the steps given in installation guide.
  
 i cant log in to the web page.

 when iam starting apache server:-

 opensips@opensips:~$ sudo /etc/init.d/apache2
 * Restarting web server apache2
  ... waiting   
 [ ok ]


 please help me

 Thanks in advance.




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

 what does apache/httpd log says?

 Is mysql running?

 miha

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




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


 ___
 Users mailing list
 Users@lists.opensips.org mailto: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] OpenSIPS Control Panel

2013-05-03 Thread Ovidiu Sas
Yes, it is possible.  You need to make sure that your database accepts
connections from the laptop.

You mentioned that you want to use OpenSIPS on a light powered
machine.  One alternative for configuring and controlling OpenSIPS
would be to use the built in web provisioning and management
interface.  It has support for all databases (including dbtext if you
don't want to run a full database your light powered machine).

See more here:
http://www.opensips.org/html/docs/modules/1.9.x/pi_http.html
http://www.opensips.org/html/docs/modules/1.9.x/mi_http.html

Regards,
Ovidiu Sas

On Fri, May 3, 2013 at 10:11 AM, Pascal Rocq pascal.r...@c-s.fr wrote:
 Hello,

 I have subscribed to this mailing list a few minutes ago, and this is my
 first post.

 I intend to use OpenSIPS on a light powered machine and OpenSIPS Control
 Panel on laptop (for graphical OpenSIPS configuration).
 I would like to know if this configuration is possible.
 Is it possible to have OCP with PhP, Apache and MySql/PostGres not on the
 same machine as the OpenSIPS machine?

 Thanks

 BR

 Pascal Rocq

 --
 ---
 Pascal Rocq - Ing Système (system engineer) ACCS LOC1
 Tel.:+33.(0)1.41.28.98.69   Mob:+33.(0)6.30.06.10.42
 pascal.r...@c-s.fr


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




-- 
VoIP Embedded, Inc.
http://www.voipembedded.com

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


Re: [OpenSIPS-Users] OpenSips Control Panel error

2012-12-02 Thread Alex Ionescu

Hi,

First thing on the list : selinux - lower a bit the security.
Second thing: in your php.ini file (probably you'll find it somewhere in 
/etc/php ... ) you have to enable *short_open_tags*


That's it for now. Try these things and come back if CP still doesn't work.

Regards,
Alex


On 12/01/2012 04:17 PM, Mimi Cafe wrote:

I configured opensips control panel on centos, and when I login, the
page does not load completely. In Apache log, I can see that it throws
out loads of php related error.

Any ideas?


[Wed Nov 28 20:56:15 2012] [error] [client 192.168.18.94] PHP Notice:
Undefined variable: resultset1 in
/var/www/html/opensips-cp/web/login.php on line 80, referer:
http://192.168.18.88/opensips-cp/web/
[Wed Nov 28 20:56:15 2012] [error] [client 192.168.18.94] PHP Notice:
Undefined variable: resultset1 in
/var/www/html/opensips-cp/web/login.php on line 86, referer:
http://192.168.18.88/opensips-cp/web/
[Wed Nov 28 20:56:15 2012] [error] [client 192.168.18.94] PHP Warning:
date(): It is not safe to rely on the system's timezone settings. You
are *required* to use the date.timezone setting or the
date_default_timezone_set() function. In case you used any of those
methods and you are still getting this warning, you most likely
misspelled the timezone identifier. We selected 'UTC' for 'GMT/0.0/no
DST' instead in /var/www/html/opensips-cp/web/login.php on line 107,
referer: http://192.168.18.88/opensips-cp/web/
[Wed Nov 28 20:56:15 2012] [error] [client 192.168.18.94] PHP Warning:
date(): It is not safe to rely on the system's timezone settings. You
are *required* to use the date.timezone setting or the
date_default_timezone_set() function. In case you used any of those
methods and you are still getting this warning, you most likely
misspelled the timezone identifier. We selected 'UTC' for 'GMT/0.0/no
DST' instead in /var/www/html/opensips-cp/web/login.php on line 107,
referer: http://192.168.18.88/opensips-cp/web/
[Wed Nov 28 20:56:15 2012] [error] [client 192.168.18.94] File does not
exist: /var/www/html/opensips-cp/web/, referer:
http://192.168.18.88/opensips-cp/web/main.php
[Wed Nov 28 21:08:49 2012] [notice] caught SIGTERM, shutting down
[Wed Nov 28 21:08:49 2012] [notice] SELinux policy enabled; httpd
running as context unconfined_u:system_r:httpd_t:s0
[Wed Nov 28 21:08:49 2012] [notice] suEXEC mechanism enabled (wrapper:
/usr/sbin/suexec)
[Wed Nov 28 21:08:49 2012] [notice] Digest: generating secret for digest
authentication ...
[Wed Nov 28 21:08:49 2012] [notice] Digest: done
[Wed Nov 28 21:08:50 2012] [notice] Apache/2.2.15 (Unix) DAV/2
mod_nss/2.2.15 NSS/3.13.1.0 Basic ECC PHP/5.3.3 mod_ssl/2.2.15
OpenSSL/1.0.0-fips SVN/1.6.11 mod_perl/2.0.4 Perl/v5.10.1 configured --
resuming normal operations
[Wed Nov 28 21:09:01 2012] [error] [client 192.168.18.94] File does not
exist: /var/www/html/opensips-cp/web/, referer:
http://192.168.18.88/opensips-cp/web/main.php
[Wed Nov 28 21:09:09 2012] [error] [client 192.168.18.94] PHP Parse
error:  syntax error, unexpected '}' in
/var/www/html/opensips-cp/web/tools/admin/list_admins/template/list_admins.main.php 


on line 152, referer: http://192.168.18.88/opensips-cp/web/menu.php
[Wed Nov 28 21:09:14 2012] [error] [client 192.168.18.94] PHP Notice:
Undefined index: acl_username in
/var/www/html/opensips-cp/web/tools/users/acl_management/template/acl_management.main.php 


on line 28, referer: http://192.168.18.88/opensips-cp/web/menu.php
[Wed Nov 28 21:09:14 2012] [error] [client 192.168.18.94] PHP Notice:
Undefined index: acl_domain in
/var/www/html/opensips-cp/web/tools/users/acl_management/template/acl_management.main.php 


on line 29, referer: http://192.168.18.88/opensips-cp/web/menu.php
[Wed Nov 28 21:09:14 2012] [error] [client 192.168.18.94] PHP Notice:
Undefined index: acl_grp in
/var/www/html/opensips-cp/web/tools/users/acl_management/template/acl_management.main.php 


on line 30, referer: http://192.168.18.88/opensips-cp/web/menu.php
[Wed Nov 28 21:09:14 2012] [error] [client 192.168.18.94] PHP Notice:
Undefined variable: options in
/var/www/html/opensips-cp/web/tools/users/acl_management/lib/functions.inc.php 


on line 95, referer: http://192.168.18.88/opensips-cp/web/menu.php
[Wed Nov 28 21:09:14 2012] [error] [client 192.168.18.94] PHP Notice:
Undefined variable: errors in
/var/www/html/opensips-cp/web/tools/users/acl_management/acl_management.php 


on line 302, referer: http://192.168.18.88/opensips-cp/web/menu.php
[Wed Nov 28 21:09:14 2012] [error] [client 192.168.18.94] PHP Notice:
Undefined variable: errors in
/var/www/html/opensips-cp/web/tools/users/acl_management/acl_management.php 


on line 302, referer: http://192.168.18.88/opensips-cp/web/menu.php
[Wed Nov 28 21:09:22 2012] [error] [client 192.168.18.94] PHP Notice:
Undefined index: username in
/var/www/html/opensips-cp/web/tools/users/alias_management/template/alias_management.main.php 


on line 28, referer: http://192.168.18.88/opensips-cp/web/menu.php
[Wed Nov 28 21:09:22 

Re: [OpenSIPS-Users] OpenSIPS Control Panel limitation with table dialplan for more than 40k rows.

2012-11-25 Thread Ali Pey
I think this was fixed in opensips-cp last week (or the week before). Make
sure you get the latest fixes from trunk and try again.

Regards,
Ali Pey


2012/11/21 Muhammad Shahzad shaherya...@gmail.com

 Its most like your web server issue, you need to increase output buffer
 size. If using Apache check error_log file, it will tell you exactly what
 is happening.

 Thank you.


 2012/11/7 Miguel J. mjlo...@smartic.es

 **
 Dear Opensips lists:

 I've found a trouble with the OpenSips Control Panel tool when the
 dialplan table has more than 4 rows.

 If this table contains up to 40,000 rows, the content is provided in
 the web tool and everything works fine. If this table contains a record
 more, the tool leaves the panel empty, as I show in the attached document.

 Can I configure or adapt the tool to avoid this limitation?

 Thank you very much and best regards
   --



 -
 Sus datos de carácter personal (nombre, apellidos, dirección postal y de
 correo electrónico, etc.) son tratados para la gestión de su relación con
 la Entidad, así como para el envío de información sobre nuestra actividad y
 la de terceros relacionadas con la actividad de Consulting Smartic
 Solutions, S.L., CIF: B85130037, C/Pº de la Castellana, 135, 7ª planta,
 28046 Madrid. Usted puede ejercer sus derechos de acceso, rectificación,
 cancelación y oposición dirigiéndose por escrito, con copia de un documento
 que acredite su identidad, a la dirección info (arroba) smartic.es.
 Este mensaje puede contener información confidencial. Si usted no es su
 destinatario, no debe leerlo, copiarlo, distribuirlo, ni hacer uso de la
 información que contiene. En este caso, por favor, llámenos o
 comuníquenoslo por escrito y borre este mensaje de su sistema.
 -


 ___
 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


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


Re: [OpenSIPS-Users] OpenSIPS Control Panel limitation with table dialplan for more than 40k rows.

2012-11-21 Thread Muhammad Shahzad
Its most like your web server issue, you need to increase output buffer
size. If using Apache check error_log file, it will tell you exactly what
is happening.

Thank you.


2012/11/7 Miguel J. mjlo...@smartic.es

 **
 Dear Opensips lists:

 I've found a trouble with the OpenSips Control Panel tool when the
 dialplan table has more than 4 rows.

 If this table contains up to 40,000 rows, the content is provided in
 the web tool and everything works fine. If this table contains a record
 more, the tool leaves the panel empty, as I show in the attached document.

 Can I configure or adapt the tool to avoid this limitation?

 Thank you very much and best regards
   --



 -
 Sus datos de carácter personal (nombre, apellidos, dirección postal y de
 correo electrónico, etc.) son tratados para la gestión de su relación con
 la Entidad, así como para el envío de información sobre nuestra actividad y
 la de terceros relacionadas con la actividad de Consulting Smartic
 Solutions, S.L., CIF: B85130037, C/Pº de la Castellana, 135, 7ª planta,
 28046 Madrid. Usted puede ejercer sus derechos de acceso, rectificación,
 cancelación y oposición dirigiéndose por escrito, con copia de un documento
 que acredite su identidad, a la dirección info (arroba) smartic.es.
 Este mensaje puede contener información confidencial. Si usted no es su
 destinatario, no debe leerlo, copiarlo, distribuirlo, ni hacer uso de la
 información que contiene. En este caso, por favor, llámenos o
 comuníquenoslo por escrito y borre este mensaje de su sistema.
 -


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


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


Re: [OpenSIPS-Users] Opensips Control Panel - User

2010-04-21 Thread Erick Chinchilla Berrocal
Alex 

I explain the situation with more detail. But don’t is working the opensips
control-panel

With the opensips

I can register phones (X-Lite), make calls, add, remove with the application
“opensipsctl”

opensipsctl monitor

[cycle #: 4; if constant make sure server lives]

Server:: OpenSIPS (1.6.2-notls (i386/linux))

Now:: Thu Apr 15 09:35:01 2010

Up since:: Thu Apr 15 09:21:31 2010

Up time:: 810 [sec]

Transaction Statistics: 

tm:UAS_transactions = 3

tm:UAC_transactions = 0

tm:inuse_transactions = 0

 

Stateless Server Statistics: 

sl:sent_replies = 524

sl:sent_err_replies = 0

sl:received_ACKs = 0

 

UsrLoc Stats: 

usrloc:registered_users = 2

usrloc:location-users = 2

usrloc:location-contacts = 2

usrloc:location-expires = 0

 

 

 

With the Opensips Control Panel

Module USER

-  I can register phones (X-Lite), add, remove

-  “USER Management

o   Can see all user, with the options “All User”

o   When search the “Online USER” and put the boton ‘Search” , don't look
any register

-  System 

o   CDRViewer

§  don't look any register

o   Dialog

§  don't look any calls in progress

-  MySql

o   The user opensips work well with the default password

o   We can see the user in ./subscriber/username

o   Table in Opensips

§  +--+

§  | Tables_in_opensips   |

§  +--+

§  | acc  | 

§  | active_watchers  | 

§  | address  | 

§  | aliases  | 

§  | carrierfailureroute  | 

§  | carrierroute | 

§  | cdrs | 

§  | cpl  | 

§  | dbaliases| 

§  | dialog   | 

§  | dialplan | 

§  | dispatcher   | 

§  | domain   | 

§  | domainpolicy | 

§  | dr_gateways  | 

§  | dr_groups| 

§  | dr_gw_lists  | 

§  | dr_rules | 

§  | globalblacklist  | 

§  | grp  | 

§  | gw   | 

§  | imc_members  | 

§  | imc_rooms| 

§  | lcr  | 

§  | load_balancer| 

§  | location | 

§  | missed_calls | 

§  | monitored_stats  | 

§  | monitoring_stats | 

§  | nh_sockets   | 

§  | ocp_admin_privileges | 

§  | pdt  | 

§  | presentity   | 

§  | pua  | 

§  | re_grp   | 

§  | rls_presentity   | 

§  | rls_watchers | 

§  | route_tree   | 

§  | silo | 

§  | sip_trace| 

§  | speed_dial   | 

§  | subscriber   | 

§  | uri  | 

§  | userblacklist| 

§  | usr_preferences  | 

§  | version  | 

§  | watchers | 

§  | xcap | 

§  +--+

§  48 rows in set (0.00 sec)

 

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


Re: [OpenSIPS-Users] Opensips Control Panel - User

2010-04-16 Thread Bogdan-Andrei Iancu
Hi Erick,

Erick Chinchilla Berrocal wrote:

 Alex

 I explain the situation with more detail. But don’t is working the 
 opensips control-panel

 With the opensips

 I can register phones (X-Lite), make calls, add, remove with the 
 application “opensipsctl”

 opensipsctl monitor

 [cycle #: 4; if constant make sure server lives]

 Server:: OpenSIPS (1.6.2-notls (i386/linux))

 Now:: Thu Apr 15 09:35:01 2010

 Up since:: Thu Apr 15 09:21:31 2010

 Up time:: 810 [sec]

 Transaction Statistics:

 tm:UAS_transactions = 3

 tm:UAC_transactions = 0

 tm:inuse_transactions = 0

 Stateless Server Statistics:

 sl:sent_replies = 524

 sl:sent_err_replies = 0

 sl:received_ACKs = 0

 UsrLoc Stats:

 usrloc:registered_users = 2

 usrloc:location-users = 2

 usrloc:location-contacts = 2

 usrloc:location-expires = 0

 With the Opensips Control Panel

 Module USER

 - I can register phones (X-Lite), add, remove

 - “USER Management

 o Can see all user, with the options “All User”

 o When search the “Online USER” and put the boton ‘Search” , don't 
 look any register


What db_mode are you using for USRLOC module 
(http://www.opensips.org/html/docs/modules/1.6.x/usrloc.html#id271279) - 
if USRLOC does not write the registrations in DB, the CP will not see them.

 - System

 o CDRViewer

 § don't look any register

Have you properly installed the cdr mysql procedure to generate CDRS ? 
also, do you have any ACC data (in acc table) - maybe you are not doing 
acc in your opensips script.

 o Dialog

 § don't look any calls in progress

have you loaded and triggered the dialog module - 
http://www.opensips.org/html/docs/modules/1.6.x/dialog.html#id226120

Regards,
Bogdan

 - MySql

 o The user opensips work well with the default password

 o We can see the user in ./subscriber/username



 __ Information from ESET NOD32 Antivirus, version of virus 
 signature database 3997 (20090409) __

 The message was checked by ESET NOD32 Antivirus.

 http://www.eset.com
 

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


-- 
Bogdan-Andrei Iancu
www.voice-system.ro


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


Re: [OpenSIPS-Users] Opensips Control Panel - User

2010-04-16 Thread Erick Chinchilla Berrocal
Hi
This is my current setup
In the attachment can you see the setup.

This module are working
# - usrloc params -
/* uncomment the following lines if you want to enable DB persistency
   for location entries */
modparam(usrloc, db_mode,   2)
modparam(usrloc, db_url,
mysql://opensips:opensip...@localhost/opensips)

_
The module dialog don't work
loadmodule tm.so
loadmodule rr.so

# - dialog params -
#modparam(dialog, enable_stats, 1)
#modparam(dialog, dlg_flag, 4)
#modparam(dialog, db_mode, 1)
#modparam(dialog, db_url,
#mysql://opensips:opensip...@localhost/opensips)
_

Thanks


-Original Message-
From: users-boun...@lists.opensips.org
[mailto:users-boun...@lists.opensips.org] On Behalf Of Bogdan-Andrei Iancu
Sent: Friday, April 16, 2010 5:29 AM
To: OpenSIPS users mailling list
Subject: Re: [OpenSIPS-Users] Opensips Control Panel - User

Hi Erick,

Erick Chinchilla Berrocal wrote:

 Alex

 I explain the situation with more detail. But don’t is working the 
 opensips control-panel

 With the opensips

 I can register phones (X-Lite), make calls, add, remove with the 
 application “opensipsctl”

 opensipsctl monitor

 [cycle #: 4; if constant make sure server lives]

 Server:: OpenSIPS (1.6.2-notls (i386/linux))

 Now:: Thu Apr 15 09:35:01 2010

 Up since:: Thu Apr 15 09:21:31 2010

 Up time:: 810 [sec]

 Transaction Statistics:

 tm:UAS_transactions = 3

 tm:UAC_transactions = 0

 tm:inuse_transactions = 0

 Stateless Server Statistics:

 sl:sent_replies = 524

 sl:sent_err_replies = 0

 sl:received_ACKs = 0

 UsrLoc Stats:

 usrloc:registered_users = 2

 usrloc:location-users = 2

 usrloc:location-contacts = 2

 usrloc:location-expires = 0

 With the Opensips Control Panel

 Module USER

 - I can register phones (X-Lite), add, remove

 - “USER Management

 o Can see all user, with the options “All User”

 o When search the “Online USER” and put the boton ‘Search” , don't 
 look any register


What db_mode are you using for USRLOC module 
(http://www.opensips.org/html/docs/modules/1.6.x/usrloc.html#id271279) - 
if USRLOC does not write the registrations in DB, the CP will not see them.

 - System

 o CDRViewer

 § don't look any register

Have you properly installed the cdr mysql procedure to generate CDRS ? 
also, do you have any ACC data (in acc table) - maybe you are not doing 
acc in your opensips script.

 o Dialog

 § don't look any calls in progress

have you loaded and triggered the dialog module - 
http://www.opensips.org/html/docs/modules/1.6.x/dialog.html#id226120

Regards,
Bogdan

 - MySql

 o The user opensips work well with the default password

 o We can see the user in ./subscriber/username



 __ Information from ESET NOD32 Antivirus, version of virus 
 signature database 3997 (20090409) __

 The message was checked by ESET NOD32 Antivirus.

 http://www.eset.com
 

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


-- 
Bogdan-Andrei Iancu
www.voice-system.ro


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

__ Information from ESET NOD32 Antivirus, version of virus signature
database 3997 (20090409) __

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com
 
 

__ Information from ESET NOD32 Antivirus, version of virus signature
database 3997 (20090409) __

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com
 


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


Re: [OpenSIPS-Users] Opensips Control Panel - Statistics Monitor - Statistics Charts

2010-04-15 Thread Alex Ionescu

Hi Erick,

I think I have a solution for you problem.
You need to give apache/httpd write permissions on the folder 
../opensips-cp/web/tools/system/smonitor/generated

This is because apache is trying to create a png file in that folder.
Let me know if you succeeded.

Regards,
Alex
On 4/14/2010 22:46, Erick Chinchilla Berrocal wrote:


agepng($this-img, $fileName);

/var/www/opensips-cp/web/tools/system/smonitor/lib/libchart/classes/view/plot# 
vim Plot.php


please let me know what is the procedure for fix the problem

Thanks




--
Alex Ionescu
www.voice-system.ro

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


Re: [OpenSIPS-Users] Opensips Control Panel - User

2010-04-15 Thread Alex Ionescu

 Hi Erick,

So, I understand that you have OCP installed.

On 4/15/2010 00:56, Erick Chinchilla Berrocal wrote:


FYI

I installed the opensips-cp

Now we have the following issue

Opensips Control Panel -- Module User

- We can add, remove users with the control panel and with opensipsctl

- We used two ip softphone X-Lite , the register is ok , make calls 
between the phones ( 1001 to 1002) ( 1002 a 1001)


- With the commands

opensipsctl ul show

opensipsctl monitor

the informations are ok

With the control panel with the control panel, I can see the user, add 
o remove


now we don't see the users if are online or no

I think that you should be able to see the online user by checking the 
Online Users radio button in the Search box under the User Management tab


We don't look any call in the control panel , module CDRViewer o Dialog

Well, to see calls in the CDR Viewer you have to make some configs (see 
the INSTALL file - see the three steps there - tables, stored procedure 
and a script to be put in cron)
To see the dialogs in Dialog module you have to load  configure the 
module *dialog* into the OpenSIPS config. - that is why you get errors 
like *ERROR:mi_fifo:mi_fifo_server: command dlg_list is not 
available*. (I can see that you have other NOT loaded modules - like 
dispatcher ... )


Edit this file, but I have the same problem, according this link 
http://opensips-cp.sourceforge.net/


*opensips-cp/config/tools/admin/list_admins/db.inc.php*

This is the log/opensips

Apr 14 15:30:04 net /sbin/opensips[2750]: 
ERROR:mi_fifo:mi_fifo_server: command dlg_list is not available


Apr 14 15:30:06 net /sbin/opensips[2750]: 
ERROR:mi_fifo:mi_fifo_server: command ds_list is not available


Apr 14 15:30:06 net /sbin/opensips[2750]: 
ERROR:mi_fifo:mi_fifo_server: command ds_reload is not available


Apr 14 15:30:16 net /sbin/opensips[2750]: 
ERROR:mi_fifo:mi_fifo_server: command sip_trace is not available


Apr 14 15:30:22 net /sbin/opensips[2750]: 
ERROR:mi_fifo:mi_fifo_server: command sip_trace is not available


Apr 14 15:30:23 net /sbin/opensips[2750]: 
ERROR:mi_fifo:mi_fifo_server: command sip_trace is not available


Apr 14 15:30:36 net /sbin/opensips[2750]: 
ERROR:mi_fifo:mi_fifo_server: command dlg_list is not available


Apr 14 15:30:38 net /sbin/opensips[2750]: 
ERROR:mi_fifo:mi_fifo_server: command ds_list is not available


Apr 14 15:30:38 net /sbin/opensips[2750]: 
ERROR:mi_fifo:mi_fifo_server: command ds_reload is not available


Apr 14 15:37:39 net /sbin/opensips[2750]: INFO:core:sig_usr: signal 15 
received


Apr 14 15:37:39 net /sbin/opensips[2737]: INFO:core:sig_usr: signal 15 
received


Apr 14 15:37:39 net /sbin/opensips[2735]: INFO:core:sig_usr: signal 15 
received


Apr 14 15:37:39 net /sbin/opensips[2734]: INFO:core:sig_usr: signal 15 
received


Apr 14 15:37:39 net /sbin/opensips[2738]: INFO:core:sig_usr: signal 15 
received


Apr 14 15:37:39 net /sbin/opensips[2748]: INFO:core:sig_usr: signal 15 
received


Apr 14 15:37:39 net /sbin/opensips[2733]: INFO:core:sig_usr: signal 15 
received


Apr 14 15:37:39 net /sbin/opensips[2752]: INFO:core:sig_usr: signal 15 
received


Apr 14 15:37:39 net /sbin/opensips[2741]: INFO:core:sig_usr: signal 15 
received


Apr 14 15:37:39 net /sbin/opensips[2760]: INFO:core:sig_usr: signal 15 
received


Apr 14 15:37:39 net /sbin/opensips[2736]: INFO:core:sig_usr: signal 15 
received


Apr 14 15:37:39 net /sbin/opensips[2758]: INFO:core:sig_usr: signal 15 
received


Apr 14 15:37:39 net /sbin/opensips[2743]: INFO:core:sig_usr: signal 15 
received


Apr 14 15:37:39 net /sbin/opensips[2754]: INFO:core:sig_usr: signal 15 
received


Apr 14 15:37:39 net /sbin/opensips[2744]: INFO:core:sig_usr: signal 15 
received


Apr 14 15:37:39 net /sbin/opensips[2755]: INFO:core:sig_usr: signal 15 
received


Apr 14 15:37:40 net opensips: INFO:core:init_tcp: using epoll_lt as 
the TCP io watch method (auto detected)


Apr 14 15:37:40 net /sbin/opensips[5466]: NOTICE:core:main: version: 
opensips 1.6.2-notls (i386/linux)


Apr 14 15:37:40 net /sbin/opensips[5466]: INFO:core:main: using 128 Mb 
shared memory


Apr 14 15:37:40 net /sbin/opensips[5466]: INFO:core:main: using 1 Mb 
private memory per process


Apr 14 15:37:40 net /sbin/opensips[5466]: NOTICE:signaling:mod_init: 
initializing module ...


Apr 14 15:37:40 net /sbin/opensips[5466]: INFO:sl:mod_init: 
Initializing StateLess engine


Apr 14 15:37:40 net /sbin/opensips[5466]: INFO:tm:mod_init: TM - 
initializing...


Apr 14 15:37:40 net /sbin/opensips[5466]: INFO:maxfwd:mod_init: 
initializing...


Apr 14 15:37:40 net /sbin/opensips[5466]: INFO:usrloc:ul_init_locks: 
locks array size 512


Apr 14 15:37:40 net /sbin/opensips[5466]: INFO:registrar:mod_init: 
initializing...


Apr 14 15:37:40 net /sbin/opensips[5466]: INFO:textops:mod_init: 
initializing...


Apr 14 15:37:40 net /sbin/opensips[5466]: INFO:xlog:mod_init: 
initializing...


Apr 14 15:37:40 net /sbin/opensips[5466]: INFO:acc:mod_init: 

Re: [OpenSIPS-Users] Opensips Control Panel - Statistics Monitor - Statistics Charts

2010-04-15 Thread Erick Chinchilla Berrocal
Alex

I can fix this issue

Thanks for your help 

 

I made the following change according your recommendation

chown www-data:www-data
/var/www/opensips-cp/web/tools/system/smonitor/generated -R

 

/var/www/opensips-cp/web/tools/system/smonitor/generated# ls -al

total 32

drwxr-xr-x 2 www-data www-data 4096 2010-04-15 08:40 .

drwxr-xr-x 7 root root 4096 2010-03-08 12:54 ..

-rw-r--r-- 1 www-data www-data 5664 2010-04-15 08:40 core:bad_msg_hdr.png

-rw-r--r-- 1 www-data www-data 5700 2010-04-15 08:40 core:bad_URIs_rcvd.png

-rw-r--r-- 1 www-data www-data 5312 2010-04-15 08:40 core:drop_replies.png

 

Thanks

Erick Ch.

From: users-boun...@lists.opensips.org
[mailto:users-boun...@lists.opensips.org] On Behalf Of Alex Ionescu
Sent: Thursday, April 15, 2010 3:01 AM
To: OpenSIPS users mailling list
Subject: Re: [OpenSIPS-Users] Opensips Control Panel - Statistics Monitor -
Statistics Charts

 

Hi Erick,

I think I have a solution for you problem.
You need to give apache/httpd write permissions on the folder
../opensips-cp/web/tools/system/smonitor/generated 
This is because apache is trying to create a png file in that folder. 
Let me know if you succeeded.

Regards,
Alex
On 4/14/2010 22:46, Erick Chinchilla Berrocal wrote: 

agepng($this-img, $fileName);

 

/var/www/opensips-cp/web/tools/system/smonitor/lib/libchart/classes/view/plo
t# vim Plot.php

 

please let me know what is the procedure for fix the problem

 

Thanks






-- 
Alex Ionescu
www.voice-system.ro 



__ Information from ESET NOD32 Antivirus, version of virus signature
database 3997 (20090409) __

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

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


Re: [OpenSIPS-Users] OpenSIPS Control Panel Installation Confusion

2010-03-26 Thread brianpocock

ok cool, i had already inserted the column so changed it from int to bigint
and removed the alter table statement from the script.

Cheers
-- 
View this message in context: 
http://n2.nabble.com/OpenSIPS-Control-Panel-Installation-Confusion-tp4803441p4803697.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 Control Panel

2009-10-05 Thread marcher

Hi,

I loaded the dialplan module in opensips, still get the same error from
opensips-cp

write2xmlrpc(): some error occured ErrorCode: -506 Requested command
(dr_reload) is not available! 

From opensips log:

Oct  5 14:54:46 [12120] DBG:mi_xmlrpc:default_method: starting up.
Oct  5 14:54:46 [12120] ERROR:mi_xmlrpc:default_method: command dr_reload is
not available!

From opensips.cfg

loadmodule mi_xmlrpc.so
loadmodule dialplan.so

Any ideas?

Cheers,

Marc


Bogdan-Andrei Iancu wrote:
 
 Hi Michael,
 
 You need to load the dialplan module in opensips  - this module exports 
 the dp_reload command.
 
 Regards,
 Bogdan
 
 Michael Ciupka wrote:
  Original-Nachricht 
 Datum: Fri, 24 Apr 2009 19:59:09 +0200
 Von: Michael Ciupka m...@michael-ciupka.de
 An: users@lists.opensips.org
 Betreff: 

 Hello,

 it works. i have resolve the problem now i get this error in a textbox in
 the Webinterface when i click f.e. on apply to server..
 write2xmlrpc(): some error occured ErrorCode: -506 Requested command
 (dp_reload) is not available! 

 AND
 in the console i get this error:
 ERROR:mi_xmlrpc:default_method: command sip_trace is not available!

 somebody know why?

 Regards
 Michael
 

-- 
View this message in context: 
http://n2.nabble.com/OpenSIPS-Control-Panel-tp2694271p3770898.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 Control Panel

2009-10-05 Thread Bogdan-Andrei Iancu
Hi Marc,

The dr_reload command requires the drouting module. See
   
http://www.opensips.org/html/docs/modules/1.5.x/drouting.html#id272746

Regards,
Bogdan

marcher wrote:
 Hi,

 I loaded the dialplan module in opensips, still get the same error from
 opensips-cp

 write2xmlrpc(): some error occured ErrorCode: -506 Requested command
 (dr_reload) is not available! 

 From opensips log:

 Oct  5 14:54:46 [12120] DBG:mi_xmlrpc:default_method: starting up.
 Oct  5 14:54:46 [12120] ERROR:mi_xmlrpc:default_method: command dr_reload is
 not available!

 From opensips.cfg

 loadmodule mi_xmlrpc.so
 loadmodule dialplan.so

 Any ideas?

 Cheers,

 Marc


 Bogdan-Andrei Iancu wrote:
   
 Hi Michael,

 You need to load the dialplan module in opensips  - this module exports 
 the dp_reload command.

 Regards,
 Bogdan

 Michael Ciupka wrote:
 
  Original-Nachricht 
 Datum: Fri, 24 Apr 2009 19:59:09 +0200
 Von: Michael Ciupka m...@michael-ciupka.de
 An: users@lists.opensips.org
 Betreff: 

 Hello,

 it works. i have resolve the problem now i get this error in a textbox in
 the Webinterface when i click f.e. on apply to server..
 write2xmlrpc(): some error occured ErrorCode: -506 Requested command
 (dp_reload) is not available! 

 AND
 in the console i get this error:
 ERROR:mi_xmlrpc:default_method: command sip_trace is not available!

 somebody know why?

 Regards
 Michael
   

   


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


Re: [OpenSIPS-Users] OpenSIPS Control Panel

2009-10-05 Thread marcher

Hi Bogdan,

Great, thanks so much.

When I loaded the module and added the DB URL, dr_reload is now working.

Thanks again.

Cheers,

Marc


Bogdan-Andrei Iancu wrote:
 
 Hi Marc,
 
 The dr_reload command requires the drouting module. See

 http://www.opensips.org/html/docs/modules/1.5.x/drouting.html#id272746
 
 Regards,
 Bogdan
 
 marcher wrote:
 Hi,

 I loaded the dialplan module in opensips, still get the same error from
 opensips-cp

 write2xmlrpc(): some error occured ErrorCode: -506 Requested command
 (dr_reload) is not available! 

 From opensips log:

 Oct  5 14:54:46 [12120] DBG:mi_xmlrpc:default_method: starting up.
 Oct  5 14:54:46 [12120] ERROR:mi_xmlrpc:default_method: command dr_reload
 is
 not available!

 From opensips.cfg

 loadmodule mi_xmlrpc.so
 loadmodule dialplan.so

 Any ideas?

 Cheers,

 Marc


 Bogdan-Andrei Iancu wrote:
   
 Hi Michael,

 You need to load the dialplan module in opensips  - this module exports 
 the dp_reload command.

 Regards,
 Bogdan

 Michael Ciupka wrote:
 
  Original-Nachricht 
 Datum: Fri, 24 Apr 2009 19:59:09 +0200
 Von: Michael Ciupka m...@michael-ciupka.de
 An: users@lists.opensips.org
 Betreff: 

 Hello,

 it works. i have resolve the problem now i get this error in a textbox
 in
 the Webinterface when i click f.e. on apply to server..
 write2xmlrpc(): some error occured ErrorCode: -506 Requested command
 (dp_reload) is not available! 

 AND
 in the console i get this error:
 ERROR:mi_xmlrpc:default_method: command sip_trace is not available!

 somebody know why?

 Regards
 Michael
   

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

-- 
View this message in context: 
http://n2.nabble.com/OpenSIPS-Control-Panel-tp2694271p3771382.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 Control Panel

2009-04-25 Thread Bogdan-Andrei Iancu
Hi Michael,

You need to load the dialplan module in opensips  - this module exports 
the dp_reload command.

Regards,
Bogdan

Michael Ciupka wrote:
  Original-Nachricht 
 Datum: Fri, 24 Apr 2009 19:59:09 +0200
 Von: Michael Ciupka m...@michael-ciupka.de
 An: users@lists.opensips.org
 Betreff: 

 Hello,

 it works. i have resolve the problem now i get this error in a textbox in the 
 Webinterface when i click f.e. on apply to server..
 write2xmlrpc(): some error occured ErrorCode: -506 Requested command 
 (dp_reload) is not available! 

 AND
 in the console i get this error:
 ERROR:mi_xmlrpc:default_method: command sip_trace is not available!

 somebody know why?

 Regards
 Michael

 ___
 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] OpenSIPS Control Panel

2009-04-25 Thread Bogdan-Andrei Iancu
Hi Michael,

The error you mentioned is not generated by SIPTRACE tool, but the 
DIALPLAN one (see my previous email). If you check the online docs at 
http://opensips-cp.sourceforge.net/index.php?req=documentation, you will 
find out what module are required to be loaded in opensips for each tool 
from opensips-cp.

Regards,
Bogdan

Michael Ciupka wrote:
 Hello,

 nobody have an idea why i get this error by clicking sip trace in the 
 webinterface from OpenSIPS Control Panel?
 ERROR:mi_xmlrpc:default_method: command dp_reload is not available!


 Regards
 Michael

 ___
 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] OpenSIPS Control Panel

2009-04-25 Thread Bogdan-Andrei Iancu
... OK :)I should have read all the email before replying :)

Regards,
Bogdan

Michael Ciupka wrote:
 Hello,

 i have resolve the problem. :)

 ___
 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] OpenSIPS Control Panel

2009-04-24 Thread Iulia Bublea


Michael Ciupka wrote:
 Hello,

 Can somebody please help me to configure the boxes.global.inc.php correctly.
 I have read the documentation but by this part i dont know what i must write: 
 can you help me to set the variables correctly? because when i click on some 
 buttons in der WI i get an endless loop and i think it must be the problem 
 that my boxes.global.inc doesnt work correct.
 $box_id=0;
   
$boxes[$box_id]['mi']['conn']=192.168.2.6:8080;
You should put here the IP of the server you want to monitor and the 
port should be the same as the one set in the opensips.cfg for the mi 
modules that you use.
For example:
* in opensips-cp the  x.y.z.w:8000
* in opensips.cfg modparam(mi_xmlrpc,port,8000)
 // mi host:port pair || fifo_file
 $boxes[$box_id]['mi']['conn']=192.168.2.6:8080;

   
For the monit config use the same IP as for the mi
 // monit host:port
 $boxes[$box_id]['monit']['conn']=192.168.2.6:2812;
   
user and password should be the same as the ones set in monit, if you 
have this utility installed.
 $boxes[$box_id]['monit']['user']=RPC2;
 $boxes[$box_id]['monit']['pass']=;
 $boxes[$box_id]['monit']['has_ssl']=1;

   
$boxes[$box_id]['desc']=Primary Sip Server;
Just a description of what the server's main function is.
 // description (appears in mi , monit )
 $boxes[$box_id]['desc']=192.168.2.6;
  
 $boxes[$box_id]['assoc_id']=1;

 // enable local smonitor charts on this box : 0=disabled 1=enabled
 $boxes[$box_id]['smonitor']['charts']=1;
 ---
 my opensips-mi-proxy:
 socket = /var/run/opensips/socket
 listen_url = http://192.168.2.6:8080
 xmlrpc_root = RPC2
 trusted = any
 reply_option = string

 Regards
 Michael

 ___
 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] OpenSIPS Control Panel

2009-04-23 Thread Bogdan-Andrei Iancu
Hi Michael,

check this http://opensips-cp.sourceforge.net/htmldoc/dialplan.html . 
You need to set the proper DB info in 
opensips-cp/config/tools/dialplan/db.inc.php

Regards,
Bogdan*
*

Michael Ciupka wrote:
 Hello,

 i have a problem with the OpenSIPS Control Panel. When i start the 
 webinterface and click into the menue dialplan there shows Could not 
 connect to MySQL Server: Access denied for user 'root'@'localhost' (using 
 password: YES)

 but i never configure the mysql file from opensips control panel. where i can 
 confure the mysql login and passwort?

 When I click apply to the server i get this error: sorry -- cannot connect 
 to xmlrpc server
 where i find the configuration file to resolve this problem?

 Regards
 Michael

 ___
 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] OpenSIPS Control Panel

2009-04-23 Thread Bogdan-Andrei Iancu
Hi Michael,

This because the SIPTRACE tool requires the XMLRPC interfacing with 
opensips . So be sure the mi_xmlrpc module is connected and in 
boxes.global.inc.php (see 
http://opensips-cp.sourceforge.net/htmldoc/Configuration.html#1) you 
have correctly set $boxes[$box_id]['mi']['conn'] to point to the 
mi_xmlrpc module.

Regards,
Bogdan

Michael Ciupka wrote:
 Hello,

 i have resolve my problem. Now I habe an new. When I click f.e. on SIP 
 TRACE i get an endless loop... wait of localhost.

 somebody an idea how i can resolve this problem?

 Regards 
 Michael

 ___
 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] Opensips Control Panel

2008-12-03 Thread mmarzuola

HiYou have found a bug, which I just fixed in the svn.For some reason , the config file for the mi tool (local.inc.php)was not included in mi.php .Thanks !DragosHi. I had already solved the problem with Mi Command tool by inserting in the mi.php the local.inc.php of mi tool.Anyway thank you.Matteo Marzuola 

Vuoi essere presente online? Vuoi dare voce alla tua attivita`? Acquista un dominio su domini.interfree.it.A partire da 18,59 euro

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


Re: [OpenSIPS-Users] Opensips Control Panel

2008-11-27 Thread mmarzuola

Hi all.I have updated the file on the procedural and cdrs table. To make the tool CDRViewer I had to change the type of the column cdr_id in the acc table, that must be a bigint (20), not a varchar.  Now changing the opensips.cfg I can see the records. I have another problem which affects the MI Command tool: in the boxes.global.inc.php configuration file I set  $ boxes [$ box_id] [ 'me'] [ 'conn']="/ tmp / opensips_fifo "; and I have loaded the module mi_fifo in opensips.cfg add added the line  modparam ( "mi_fifo", "fifo_name", "/ tmp / opensips_fifo")  If I run "opensipsctl fifo" from the command line everything works, but by entering commands in the tool I get the following error:  12:40:41 | ps | / tmp / opensips_fifo  sorry - reply fifo opening error  I have tried to change the permissions to read and write the file /tmp/opensips_fifo but nothing changes.  Have you any suggestion to give me?ThanksMatteo Marzuola

Vuoi essere presente online? Vuoi dare voce alla tua attivita`? Acquista un dominio su domini.interfree.it.A partire da 18,59 euro

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


Re: [OpenSIPS-Users] Opensips Control Panel

2008-11-27 Thread mmarzuola

Hi.The parameter in boxes.global.inc.php was correct.I have checked the permissions of /tmp/ directory. They were drwxrwxrwt and I have changed them in drwxrwxrwx.I have also added in opensips.cfg the line modparam("mi_fifo", "fifo_mode", 0666) and the permissions of the /tmp/opensips_fifo are correct (prw-rw-rw-).In the php.ini the Safe_mode lines seem all disabled but I am not sure.I have attached my php.ini.In the syslog I have the error:opensips-lab /usr/local/sbin/opensips[3047]: ERROR:mi_fifo:mi_fifo_server: cannot open reply pipe (null)I think that the fifo reply it was not created.How can I determine if the system() command is executable?Thanks a lot for your support.Marzuola Matteo. 

Vuoi essere presente online? Vuoi dare voce alla tua attivita`? Acquista un dominio su domini.interfree.it.A partire da 18,59 euro


php.ini.gz
Description: GNU Zip compressed data
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] Opensips Control Panel

2008-11-26 Thread mmarzuola

Thanks for the help. Now the opensips-cp opens.In CDRViewer tool I can display information only in certain areas of the columns in the table cdrs.  I have noticed that some fields such as Username Source, Domain Source and Destination does not exist between the columns of cdrs.  My cdrs table has the following columns:cdr_id | call_start_time | duration | src_uri | dst_uri | leg_status | sip_call_id | sip_from_tag | sip_to_tag | cdr_rated | created | leg_type | leg_transition | caller_id | callee_id | in_gw | cdr_cost | cdr_type |There is some sql file that creates these fields?Also in table acc I have added the extra columns that the opensips_cdrs_1_4.sql procedure required:src_leg | dst_leg | caller_id | callee_id | leg_type | leg_transition | in_gw | leg_status | cdr_id |Thanks again for your help.Matteo Marzuola

Vuoi essere presente online? Vuoi dare voce alla tua attivita`? Acquista un dominio su domini.interfree.it.A partire da 18,59 euro

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


Re: [OpenSIPS-Users] Opensips Control Panel

2008-11-26 Thread Dragos Oancea
Hi

I just made some changes in the trunk to fix this issue.
I decided to change some columns.

Note you can play with what info to land in what column from opensips's
configuration file. Check out the acc module. 
(http://www.opensips.org/html/docs/modules/1.4.x/acc.html)


Cheers,
Dragos


[EMAIL PROTECTED] wrote:
 Thanks for the help. Now the opensips-cp opens.
 In CDRViewer tool I can display information only in certain areas of the 
 columns in the table cdrs.
 I have noticed that some fields such as Username Source, Domain Source 
 and Destination does not exist between the columns of cdrs.
 My cdrs table has the following columns:
 
 cdr_id  | call_start_time | duration | src_uri | dst_uri | leg_status | 
 sip_call_id   |   sip_from_tag| sip_to_tag  | cdr_rated | created  | 
 leg_type | leg_transition | caller_id | callee_id | in_gw | cdr_cost | 
 cdr_type |
 
 There is some sql file that creates these fields?
 
 Also in table acc I have added the extra columns that the 
 opensips_cdrs_1_4.sql procedure required:
 
 src_leg | dst_leg | caller_id | callee_id | leg_type | leg_transition | 
 in_gw | leg_status | cdr_id |
 
 Thanks again for your help.
 
 Matteo Marzuola
 
 Vuoi essere presente online?
 Vuoi dare voce alla tua attivita`?
 Acquista un dominio su domini.interfree.it.
 A partire da 18,59 euro
 

-- 


Dragos Oancea
VOIP Developer
Voice System
www.voice-system.ro
+40 21 637 2407




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


  1   2   >