[OpenSIPS-Users] Problem with CDRTool and ubuntu 14.04 and apache 2.4.7

2014-10-30 Thread Venkatesh Macha
Hi,

I am trying to install *CDRTool on Ubuntu 14.0*4, i have *apache
2.4.7* is installed on it.  I installed CDRTool from Debian package from
ag-projects repository. Created New database everything is OK,. But when i
move to next section that is* PHP and Apache setu*p i am facing these
problem.
*I am unable to setup a Virtual host for cdrtool, 403 Forbidden*. i got this
error in apache error log :

* Cannot serve directory /var/www/CDRTool/: No matching DirectoryIndex
(index.html,index.cgi,index.pl,index.php,index.xhtml,index.htm) found, 
and server-generated directory index forbidden by Options directive,
referer: http://*.*.*.*:8080/*

Then i realized apache is unable to identify the .pthml files(as our CDRTool
have .phtml file). then i added* .phtml to DIrectoryIndex* of apache. 
Now 403 forbidden error is gone. But it is showing a text file Instead of
CDRTool Login Page here is the partial part of that page.

*CDRTool_Session, auth = CDRTool_Auth, perm = CDRTool_Perm) );
$loginname=$auth-auth[uname]; $title=Legal notice; $db = new
DB_CDRTool(); $query=sprintf(select * from settings where billing_party =
'%s' and var_module= 'login' and var_name =
'I_agree_with_license',addslashes($loginname)); if ($db-query($query)) {
if ($db-num_rows()) { $refreshURL='callsearch.phtml'; $refreshTime=0; } }
if (is_readable(/etc/cdrtool/local/header.phtml)) {
include_once(/etc/cdrtool/local/header.phtml); } else {
include_once(header.phtml); } $layout = new pageLayoutLocal();
$layout-showHeader(); $layout-showLegalNotice(); $layout-showFooter();
page_close(); } else { $Setup = new SETUP (); $Setup-showIntro(); } class
SETUP { function showIntro() { print 
*

I thinks apache2 is unable to render PHP files. if not,  what is the
problem, why i am getting text page instead of Log-in page.

I also made few changes like added .conf at the end of virtual host file
name.
*cdrtool.com to cdrtool.com.conf*

also added *Require all granted* in directory section of virtual host file.

Can anyone help me. Thank you in Advance.

Venkatesh macha,
Junior VOIP Engineer,
@C Programming http://sillycodes.com  


 



--
View this message in context: 
http://opensips-open-sip-server.1449251.n2.nabble.com/Problem-with-CDRTool-and-ubuntu-14-04-and-apache-2-4-7-tp7594275.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


[OpenSIPS-Users] Content-Type Paramter issue

2014-10-30 Thread zhouxiaoqiang.mst...@gmail.com
Hi:
have a strange issue。
I sent message use t_uac_dlg by mi Interface.   In this message,  when set 
Content-type header like  as:  Content-Type: Multipart/related;boundary=---
but the table of silo in opensips DB,  the column of ctype that value is 
Multipart/related, not Multipart/related;boundary=---. Content-Type header 
parameter lost?

the flowing command that I use: 
opensipsctl fifo t_uac_dlg MESSAGE sip:+96279000@192.168.61.166 . . 
\From: sip:+962796638484@192.168.61.166\r\nTo: 
sip:+96279000@192.168.61.166\r\nContent-Type: 
Multipart/related;boundary=---\r\n\ 123456\r\n---\r\n123123\r\n




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


Re: [OpenSIPS-Users] YNT: Re: YNT: Re: YNT: Re: YNT: Re: RFC3261 transaction matching failed error for the second 401 Unauthorized - Challenging the UE

2014-10-30 Thread Kaan Dandin
Hi Bogdan,

With the below workaround,  I have managed to make load balancing with Opensips 
dispather module . I am using record_route for INVITE message. 
Thanks a lot for your support.
Kind regards,
Kaan


Related part of Opensips script

...

else if (is_method(INVITE)) {
#load_balance(1,pstn);
xlog(xlog_initialinvite);
if($si==192.168.2.11) {

ds_select_dst(1,1);
}
record_route();
if(!t_relay()) {
sl_reply_error();
xlog(xlog_invitereplyerror);
}
exit;


...

if (loose_route()) {
xlog(xlog_loose_route);
if($si==192.168.2.11) {
t_relay();
exit;
}
else if($si==192.168.2.3 or $si==192.168.2.5 ) {
$du = sip:192.168.2.11:4060;
append_branch();
t_relay();
exit;
}
.
ims_bench output

 1-   ims_uac-0-   Scenario Screen- [1-9]: Change Screen - 6663
  Call-rate(length) Port   Total-time  Total-calls  Remote-host
   0.0(0 ms)/1.000s   5060  65.32 s   65  192.168.2.141:4060(UDP)
 
  0 new calls during 0.287 s period  1 ms scheduler resolution
  0 calls (limit 0)  Peak was 32 calls, after 45 s
  0 Running, 1 Paused, 1 Woken up, 0 Sync
  0 out-of-call msg (discarded)
  0 open sockets
 
 Messages  Retrans   Timeout   Unexpected-Msg
 0[ NOP ]   
 1[ SENDRMT ] 11   
 2[ RECVRMT ] 11  0
 3[ SYNC ]11   
 
 4 INVITE -- B1,2,4  110 0
 5100 -- 110   0
 6180 -- 110   0
 7183 -- 0 0   0
 8200 -- 110   0
 9ACK -- 110
10180 -- 0 0   0
11  Pause [Exp(2:00)] 110
12BYE -- B3  110 0
13180 -- 0 0   0
14200 -- E3,4110   0
 
15[ RECVRMT ] 11  0
-- Test Terminated 
 
 1-   ims_uac-0-  Statistics Screen   - [1-9]: Change Screen - 6663
  Start Time | 2014-10-20 11:17:42  
  Last Reset Time| 2014-10-20 11:18:34  
  Current Time   | 2014-10-20 11:18:34  
-+---+--
  Counter Name   | Periodic value| Cumulative value
-+---+--
  Elapsed Time   | 00:00:00:290  | 00:00:51:987 
  Call Rate  |0.000 cps  |0.212 cps 
-+---+--
  Incoming call created  |0  |0 
  OutGoing call created  |0  |   11 
  Total Call created |   |   11 
  Current Call   |0  |  
-+---+--
  Successful call|3  |   11 
  Failed call|0  |0 
-+---+--
  Response Time 1| 00:00:00:000  | 00:00:00:000 
  Response Time 2| 00:00:44:121  | 00:00:55:011 
  Response Time 3| 00:00:00:000  | 00:01:07:341 
  Response Time 4| 00:00:00:000  | 04:08:44:054 
  Response Time 5| 01:14:06:022  | 01:09:59:415 
  Response Time 7| 00:01:01:869  | 00:01:10:633 
  Response Time 8| 00:00:00:000  | 00:01:35:927 
  Response Time 9| 00:00:00:000  | 04:31:24:539 
  Response Time 10   | 01:16:07:446  | 01:15:34:687 
  Response Time 12   | 00:00:00:000  | 00:00:00:000 

Re: [OpenSIPS-Users] Load balancer setup

2014-10-30 Thread Kenny Watson
Hi Matt,

The SDP is being generated by freeswitch and you would need to make it think 
that when its sending to kamailio, that kamailio  is an external host so 
freeswitch uses its public IP address in the SDP  that it is then forwarded on 
directly to the carrier.

I've never used freeswitch but thats roughly what you'd do with asterisk.

Thanks
Kenny Watson



From: users-boun...@lists.opensips.org [users-boun...@lists.opensips.org] on 
behalf of matt [m...@supportedbusiness.com]
Sent: 22 October 2014 08:42
To: users@lists.opensips.org
Subject: [OpenSIPS-Users] Load balancer setup

Hi,


I was looking for some guidance on using the load balancer in a NAT environment.

I have the following setup (the IP addresses are made up but should give an 
indication):

1 x opensips server with load balancer module - IP 192.168.0.1
2 x freeswitch servers - IP 192.168.0.2  192.168.0.3

All 3 servers have seperate external IP address routing to their internal IP 
via our firewall:
217.0.0.1 routed to 192.168.0.1 (Opensips)
217.0.0.2 routed to 192.168.0.2 (FS1)
217.0.0.3 routed to 192.168.0.3 (FS2)

I have the load_balancer table with the following details:

id,  | group_id, |  dst_uri,| resources,  | 
probe_mode, | description
'1',  |  '1', |  'sip:192.168.0.2:5080http://192.168.0.2:5080',  |   
'pstn=10', |  '2',   |  'FS1'
'2',  |  '1', |  'sip:192.168.0.3:5080http://192.168.0.3:5080',  |   
'vm=1', | '2',   |  'FS2'


The call flow is:

SIP Provider -- 217.0.0.1 Opensips -- 192.168.0.2/3http://192.168.0.2/3

The issue is, that when the 200 ok response is sent to the SIP provider, the 
Freeswitch server's internal IP is being sent in the SDP connection information 
(c).  This causes the ACK response from the SIP Provider to fail to be sent 
correctly.

With the calls routed directly to the FS servers (removing opensips from the 
flow), the calls work fine.

Any help would be much appreciated :)


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


Re: [OpenSIPS-Users] Problem with CDRTool and ubuntu 14.04 and apache 2.4.7 and PHP 5.5

2014-10-30 Thread Venkatesh Macha
I think problem with *PHP*. I am using php 5.5,   Is CDRTool  is compatible
with PHP 5.5 ??

I saw one post on this topic it was few months back one you can see here -
http://lists.opensips.org/pipermail/users/2013-February/024453.html
http://lists.opensips.org/pipermail/users/2013-February/024453.html  

If i use php 5.3 it is working fine on ubuntu 12.04 but it is not working
with ubuntu* 14.04 and php 5.5.*

is CDRTool is Compatible with PHP 5.5 ???

Venkatesh macha,
Junior VOIP Engineer,
@ C programming http://sillycodes.com  



--
View this message in context: 
http://opensips-open-sip-server.1449251.n2.nabble.com/Problem-with-CDRTool-and-ubuntu-14-04-and-apache-2-4-7-tp7594275p7594280.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


[OpenSIPS-Users] opensips installation error

2014-10-30 Thread Snabel Kabiya
Hi,

I'm trying to install opensips following the instructions here:

http://www.opensips.org/Documentation/Tutorials-OpenSIPSFreeSwitchIntegration#toc4

i got to this step:
2.3  Compile and install OpenSIPS

- make menuconfig

i got the following error:

In file included from evi/../locking.h:68:0,
 from evi/event_interface.h:31,
 from evi/evi_modules.h:30,
 from ut.h:42,
 from dset.c:34:
evi/../lock_alloc.h:60:2: error: #error locking requires shared memory support
 #error locking requires shared memory support


Details:
VM on Hyper-V
OS: 3.16.0-24-generic #32-Ubuntu SMP Tue Oct 28 13:07:32 UTC 2014
x86_64 x86_64 x86_64 GNU/Linux
RAM 2GB

Thanks,

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


Re: [OpenSIPS-Users] BLF and PRESENCE

2014-10-30 Thread Răzvan Crainea

Hi, Michele!

Check the tutorial and description of the pua_dialoginfo module[1]. You 
can find some config examples over there.


[1] 
http://www.opensips.org/Documentation/Tutorials-PUAExtensions#pua_dialoginfo


Best regards,

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

On 10/29/2014 12:49 PM, Michele Pinassi wrote:

Hi all,

on our opensips system i'm trying to implement PRESENCE-BLF
funcionality, where the boss phone (Snom 760) subscribe the workers
line and see when they are busy/free.

As i see, here's my opensips.cfg relevant parts:

[...]
 PRESENCE modules
loadmodule presence.so
loadmodule presence_xml.so
loadmodule presence_mwi.so
loadmodule presence_callinfo.so
loadmodule xcap.so

modparam(presence, server_address, sip:sa@172.20.1.2:5060)
modparam(presence_xml, force_active, 1)

modparam(xcap,db_url,mysql://voip:4lagjzck8c6pp...@mysql.unisi.it/opensips)
modparam(xcap, integrated_xcap_server, 1)

[...]

and simply add a route for presence:

[...]
 if( is_method(PUBLISH|SUBSCRIBE))
 route(handle_presence);

[...]
# Presence route

route[handle_presence] {
 xlog(L_INFO,Route PRESENCE [$fd/$fu/$rd/$ru/$si/]\n);
 if(!t_newtran()){
 sl_reply_error();
 exit;
 }

 if (is_method(PUBLISH)) {
 handle_publish();
 }

 if (is_method(SUBSCRIBE)) {

 handle_subscribe();
 }
 exit;
}
[...]

on the boss phone (5002) i set up BLF for 5009 but BLF simply don't work.

On Opensips logs i have:

Oct 29 11:47:05 proxy-voip01 /usr/sbin/opensips[5494]: Route PRESENCE
[voip.unisi.it/sip:5...@voip.unisi.it:5060/voip.unisi.it/sip:5...@voip.unisi.it:5060;user=phone/172.20.1.10/]
Oct 29 11:47:05 proxy-voip01 /usr/sbin/opensips[5494]:
INFO:presence:handle_subscribe: Missing or unsupported event header
field value
Oct 29 11:47:05 proxy-voip01 /usr/sbin/opensips[5494]:
INFO:presence:handle_subscribe: #011event= dialog
[...]
Oct 29 11:47:32 proxy-voip01 /usr/sbin/opensips[5496]: Route PRESENCE
[voip.unisi.it/sip:5...@voip.unisi.it:5060/voip.unisi.it/sip:*9...@voip.unisi.it:5060;user=phone/172.20.2.12/]
Oct 29 11:47:32 proxy-voip01 /usr/sbin/opensips[5496]:
INFO:presence:update_subscription: notify
Oct 29 11:47:32 proxy-voip01 /usr/sbin/opensips[5496]:
INFO:presence:send_notify_request: NOTIFY sip:5...@voip.unisi.it via
sip:5022@172.20.2.12:32768 on behalf of sip:*9...@voip.unisi.it for event
message-summary, to_tag=f315b2d58ae8829149b784764c5a40e3-c2fb, cseq=1


Moreover, i've tried to see how watchers/presentity works but i'm not
able to find any tutorialhints ? Suggestions ?

Thanks, Michele



___
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 installation error

2014-10-30 Thread Liviu Chircu

Hi Snabel,

What is your OpenSIPS version? 1.8 like in the tutorial?
Could you also please paste the output of 'cat Makefile.conf | tail -n35' ?

Best regards,

Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.com

On 10/30/2014 01:10 PM, Snabel Kabiya wrote:

Hi,

I'm trying to install opensips following the instructions here:

http://www.opensips.org/Documentation/Tutorials-OpenSIPSFreeSwitchIntegration#toc4

i got to this step:


2.3  Compile and install OpenSIPS

- make menuconfig

i got the following error:
   
In file included from evi/../locking.h:68:0,

  from evi/event_interface.h:31,
  from evi/evi_modules.h:30,
  from ut.h:42,
  from dset.c:34:
evi/../lock_alloc.h:60:2: error: #error locking requires shared memory support
  #error locking requires shared memory support


Details:
VM on Hyper-V
OS: 3.16.0-24-generic #32-Ubuntu SMP Tue Oct 28 13:07:32 UTC 2014 x86_64 x86_64 
x86_64 GNU/Linux
RAM 2GB

Thanks,
Snabel


___
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