Re: [OpenSIPS-Users] Presence and Linksys phones - not working 1.6.1

2010-04-05 Thread Angel Marin
On 03/04/10 01:40, James Lamanna wrote:
 On Fri, Apr 2, 2010 at 4:52 AM, Anca Vamanu a...@opensips.org wrote:
 Hi James,

 I think that the problem is with those Notifies without a body sent by
 OpenSIPS when the phone was started. This is normal behavior, correct
 and conform RFC - when the presence server does not have any record for
 that presentity - it includes no body. But since you say that Linksys
 does not like this and since it was not that difficult to change, I just
 committed a patch that sends a Notify with an empty dialoginfo tuple as
 body when no published record is found. Please upgrade from svn and test
 this case again.
 
 Hi Anca,
 I saw your patch and upgraded to the SVN 1.6 branch.
 However, I do not believe I ever hit that code path.
 In my debug logs I see No record exists in hash table (notify.c:853).
 I'm not sure if fallback2db is true, but I don't think it is, so I
 never make it to that codepath.


Give the attached patch a shot, it should do what you're looking for.

Though I'm not sure generating an empty dialog without a presence entry
is the correct approach, I mean, the monitored extension is not there,
so why not hint it as a blinking light? In a cold start scenario, it'll
go green once your re-subscribe time comes, so set it to a couple
minutes or lower in the phone and you'll be good to go.

-- 
Angel Marin
http://anmar.eu.org/
Index: notify_body.c
===
--- notify_body.c   (revision 6758)
+++ notify_body.c   (working copy)
@@ -340,7 +340,6 @@
xmlNodePtr state_node = NULL;
 
str *body= NULL;
-   str *pres_uri= NULL;
char buf[MAX_URI_SIZE+1];
 
if ( (pres_user-len + pres_domain-len + 1)  MAX_URI_SIZE) {
@@ -353,23 +352,6 @@
memcpy(buf + pres_user-len + 5, pres_domain-s, pres_domain-len);
buf[pres_user-len + 5 + pres_domain-len]= '\0';
 
-   pres_uri = (str*)pkg_malloc(sizeof(str));
-   if(pres_uri == NULL)
-   {
-   LM_ERR(while allocating memory\n);
-   return NULL;
-   }
-   memset(pres_uri, 0, sizeof(str));
-   pres_uri-s = buf;
-   pres_uri-len = pres_user-len + 5 + pres_domain-len;
-
-   LM_DBG([pres_uri] %.*s\n, pres_uri-len, pres_uri-s);
-
-   if ( pres_contains_presence(pres_uri)0 ) {
-   LM_DBG(No record exists in hash_table\n);
-   goto error;
-   }
-
/* create the Publish body  */
doc = xmlNewDoc(BAD_CAST 1.0);
if(doc==0)
@@ -427,10 +409,6 @@
xmlCleanupParser();
return body;
 error:
-   if ( pres_uri )
-   {
-   pkg_free(pres_uri);
-   }
if(body)
{
if(body-s)
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] When do I need MediaProxy?

2010-04-05 Thread Saúl Ibarra Corretgé
Hi,

On 3/4/10 9:31 PM, James Lamanna wrote:
 Hi,
 I'm trying to use OpenSips as a registration server for Asterisk
 (assuming we can get presence working ok).
 Do I need to setup and use MediaProxy (or similar)? Or is the
 nathelper stuff good enough?
 I've made test calls from phones behind NAT to opensips to asterisk
 and I haven't experienced any
 one-way audio problems.
 Also, the phones are not allowed to reinvite, because I need to keep
 Asterisk in the media path.

If you want Asterisk to stay in the media path then you don't need 
MediaProxy. By setting nat=yes for a SIP peer Asterisk uses the so 
called COMEDIA mode, that is, it waits to receive RTP and sends RTP to 
where it received it from, not trusting the SDP.


Regards,

-- 
Saúl Ibarra Corretgé
AG Projects

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


[OpenSIPS-Users] 0800 free call

2010-04-05 Thread Philipp Hoffmann
Hi list,

we want route our costumers 0800 free call numbers with OpenSIPS. Here need to 
pay the called party, not the caller.

A example CDR for this:

To: 49800123456
From: 49208123456
Location: u...@example.de

My idea:

if ($rU =~ ^49800) {

  dp_translate(1, $rU/$rU);

  $avp(s:billing_party) = $rU;

  $avp(s:can_uri) = $fn; # From

  # billing_profile = 0800freecalls

};

How can I fix a profile for billing in my opensips.cfg?

Thanks,
Philipp

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


Re: [OpenSIPS-Users] 0800 free call

2010-04-05 Thread Zahid Mehmood
Philipp,
The accounting (acc) module can be used to log extra values.   You can 
configure the module to save the billing party in acc records and generate cdr 
using that information.

(http://www.opensips.org/html/docs/modules/1.6.x/acc.html#id271945 )

-- 
Zahid



On Apr 5, 2010, at 7:23 AM, Philipp Hoffmann wrote:

 Hi list,
 
 we want route our costumers 0800 free call numbers with OpenSIPS. Here need 
 to pay the called party, not the caller.
 
 A example CDR for this:
 
 To: 49800123456
 From: 49208123456
 Location: u...@example.de
 
 My idea:
 
 if ($rU =~ ^49800) {
 
  dp_translate(1, $rU/$rU);
 
  $avp(s:billing_party) = $rU;
 
  $avp(s:can_uri) = $fn; # From
 
  # billing_profile = 0800freecalls
 
 };
 
 How can I fix a profile for billing in my opensips.cfg?
 
 Thanks,
 Philipp
 
 ___
 Users mailing list
 Users@lists.opensips.org
 http://lists.opensips.org/cgi-bin/mailman/listinfo/users


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


[OpenSIPS-Users] Opensips-cp 4.0

2010-04-05 Thread Andy Thomas
 

Im trying to install opensips-cp 4 according to the install document.

 

Everything is fine until I reach this point-

 

 

  * For the add_user module : you must add one table to the OpenSIPS
database .

Follow these steps:

1.  Install the table.mysql or table.pgsql.

You will find them them :

 opensips-cp/config/tools/admin/add_admin/table.mysql

or

opensips-cp/config/tools/admin/add_admin/table.pgsql

This is where the admins are being stored data.

 

I have looked everywhere for the file,

opensips-cp/config/tools/admin/add_admin/table.mysql  doesn't exist in the
tarball!

 

 

 

Regards

Andy T

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


Re: [OpenSIPS-Users] Opensips-cp 4.0

2010-04-05 Thread Alex Ionescu

Hi,

I think you've read an old documentation. This is what you must do :

* For the admin tool you must add a table.

Follow these steps:

1. install the ocp_admin_privileges table schema 
ocp_admin_privileges.mysql/ocp_admin_privileges.pgsql


(config/tools/admin/add_admin/ocp_admin_privileges.mysql)

mysql -Dopensips -p  ocp_admin_privileges.mysql

or

psql -h host_name -U postgres_username -d opensips  
ocp_admin_privileges.pgsql


2. For being able to login create an admin account with the 
following username and password: admin/admin. Add it into the database:


INSERT INTO ocp_admin_privileges 
(username,password,ha1,available_tools,permissions) values 
('admin','admin',md5('admin:admin'),'all','all');



This is from http://opensips-cp.sourceforge.net (see Documentation - 
Install Guide)


Regards,
Alex
On 4/5/2010 16:30, Andy Thomas wrote:


Im trying to install opensips-cp 4 according to the install document.

Everything is fine until I reach this point-

  * For the add_user module : you must add one table to the OpenSIPS 
database .


Follow these steps:

1. Install the table.mysql or table.pgsql.

You will find them them :

 opensips-cp/config/tools/admin/add_admin/table.mysql

or

opensips-cp/config/tools/admin/add_admin/table.pgsql

This is where the admins are being stored data.

I have looked everywhere for the file,

opensips-cp/config/tools/admin/add_admin/table.mysql  doesn't exist in 
the tarball!


Regards

Andy T


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



--
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-cp 4.0

2010-04-05 Thread Karl Harris
I ran into this same problem following the INSTALL file which was included
with the opensips-cp 4.0 tar file.

I believe this INSTALL file needs to be updated.  I am currently making
notes of all of the areas that need correction and will submit it here when
I am done.

Karl

On Mon, Apr 5, 2010 at 10:36 AM, Alex Ionescu a...@opensips.org wrote:

  Hi,

 I think you've read an old documentation. This is what you must do :

 * For the admin tool you must add a table.



 Follow these steps:



 1. install the ocp_admin_privileges table schema
 ocp_admin_privileges.mysql/ocp_admin_privileges.pgsql

 (config/tools/admin/add_admin/ocp_admin_privileges.mysql)

 mysql -Dopensips -p  ocp_admin_privileges.mysql

 or

 psql -h host_name -U postgres_username -d opensips 
 ocp_admin_privileges.pgsql



 2. For being able to login create an admin account with the
 following username and password: admin/admin. Add it into the database:

 INSERT INTO ocp_admin_privileges
 (username,password,ha1,available_tools,permissions) values
 ('admin','admin',md5('admin:admin'),'all','all');

 This is from http://opensips-cp.sourceforge.net (see Documentation -
 Install Guide)

 Regards,
 Alex

 On 4/5/2010 16:30, Andy Thomas wrote:



 Im trying to install opensips-cp 4 according to the install document.



 Everything is fine until I reach this point-





   * For the add_user module : you must add one table to the OpenSIPS
 database .

 Follow these steps:

 1.  Install the table.mysql or table.pgsql.

 You will find them them :

  opensips-cp/config/tools/admin/add_admin/table.mysql

 or

 opensips-cp/config/tools/admin/add_admin/table.pgsql

 This is where the admins are being stored data.



 I have looked everywhere for the file,

 opensips-cp/config/tools/admin/add_admin/table.mysql  doesn’t exist in the
 tarball!







 Regards

 Andy T


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



 --
 Alex Ionescuwww.voice-system.ro


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




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


Re: [OpenSIPS-Users] Opensips-cp 4.0

2010-04-05 Thread Andy Thomas
Ive already done that step for admin access

It's the user's table which needs to be configured so that opensips-cp can
then add users

 

 

 

From: Alex Ionescu [mailto:a...@opensips.org] 
Sent: 05 April 2010 3:37 PM
To: OpenSIPS users mailling list
Subject: Re: [OpenSIPS-Users] Opensips-cp 4.0

 

Hi,

I think you've read an old documentation. This is what you must do :

* For the admin tool you must add a table. 

 

Follow these steps:



1. install the ocp_admin_privileges table schema
ocp_admin_privileges.mysql/ocp_admin_privileges.pgsql

(config/tools/admin/add_admin/ocp_admin_privileges.mysql)

mysql -Dopensips -p  ocp_admin_privileges.mysql

or

psql -h host_name -U postgres_username -d opensips 
ocp_admin_privileges.pgsql



2. For being able to login create an admin account with the
following username and password: admin/admin. Add it into the database:

INSERT INTO ocp_admin_privileges
(username,password,ha1,available_tools,permissions) values
('admin','admin',md5('admin:admin'),'all','all'); 


This is from http://opensips-cp.sourceforge.net (see Documentation -
Install Guide)

Regards,
Alex
On 4/5/2010 16:30, Andy Thomas wrote: 

 

Im trying to install opensips-cp 4 according to the install document.

 

Everything is fine until I reach this point-

 

 

  * For the add_user module : you must add one table to the OpenSIPS
database .

Follow these steps:

Install the table.mysql or table.pgsql.

You will find them them :

 opensips-cp/config/tools/admin/add_admin/table.mysql

or

opensips-cp/config/tools/admin/add_admin/table.pgsql

This is where the admins are being stored data.

 

I have looked everywhere for the file,

opensips-cp/config/tools/admin/add_admin/table.mysql  doesn't exist in the
tarball!

 

 

 

Regards

Andy T

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






-- 
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-cp 4.0

2010-04-05 Thread Karl Harris
Are you getting an error  when you try to access the cp - users ?

The last time I installed the CP 4.0 I was getting the following error:

---
*Warning*: array_unshift() [function.array-unshift]: The first argument
should be an array in *
/var/www/opensips-cp/web/tools/users/user_management/lib/functions.inc.php*on
line *231*
---

Which was fixed by adding a domain in the control panel under system

On Mon, Apr 5, 2010 at 12:36 PM, Andy Thomas a...@andythomas.co.uk wrote:

  Ive already done that step for admin access

 It’s the user’s table which needs to be configured so that opensips-cp can
 then add users







 *From:* Alex Ionescu [mailto:a...@opensips.org]
 *Sent:* 05 April 2010 3:37 PM
 *To:* OpenSIPS users mailling list
 *Subject:* Re: [OpenSIPS-Users] Opensips-cp 4.0



 Hi,

 I think you've read an old documentation. This is what you must do :

 * For the admin tool you must add a table.



 Follow these steps:



 1. install the ocp_admin_privileges table schema
 ocp_admin_privileges.mysql/ocp_admin_privileges.pgsql

 (config/tools/admin/add_admin/ocp_admin_privileges.mysql)

 mysql -Dopensips -p  ocp_admin_privileges.mysql

 or

 psql -h host_name -U postgres_username -d opensips 
 ocp_admin_privileges.pgsql



 2. For being able to login create an admin account with the
 following username and password: admin/admin. Add it into the database:

 INSERT INTO ocp_admin_privileges
 (username,password,ha1,available_tools,permissions) values
 ('admin','admin',md5('admin:admin'),'all','all');


 This is from http://opensips-cp.sourceforge.net (see Documentation -
 Install Guide)

 Regards,
 Alex
 On 4/5/2010 16:30, Andy Thomas wrote:



 Im trying to install opensips-cp 4 according to the install document.



 Everything is fine until I reach this point-





   * For the add_user module : you must add one table to the OpenSIPS
 database .

 Follow these steps:

 Install the table.mysql or table.pgsql.

 You will find them them :

  opensips-cp/config/tools/admin/add_admin/table.mysql

 or

 opensips-cp/config/tools/admin/add_admin/table.pgsql

 This is where the admins are being stored data.



 I have looked everywhere for the file,

 opensips-cp/config/tools/admin/add_admin/table.mysql  doesn’t exist in the
 tarball!







 Regards

 Andy T





 ___

 Users mailing list

 Users@lists.opensips.org

 http://lists.opensips.org/cgi-bin/mailman/listinfo/users






  --

 Alex Ionescu

 www.voice-system.ro


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




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


[OpenSIPS-Users] cdrtool rate engine on centos 4

2010-04-05 Thread David Adade
Hi,
 
Can anyone point me in the right direction. 
 
I have two centos 4 servers. the cdrtool rate engine starts on one
server but not the other. I get the following on the non starting
server.
 
Apr  5 20:40:43 th-db02 cdrtool[10497]: Starting CDRTool Rating
Engine...
Apr  5 20:40:43 th-db02 cdrtool[10497]: Error in connect(): pconnect as
radius to localhost failed
Apr  5 20:40:43 th-db02 cdrtool[10497]: Error: failed to connect to the
primary CDR database DB_radius
Apr  5 20:40:43 th-db02 cdrtool[10497]: Memory usage: 4.47MB, memory
limit: 16MB
Apr  5 20:40:43 th-db02 cdrtool[10497]: Loaded 1 profiles into memory
Apr  5 20:40:43 th-db02 cdrtool[10497]: Loaded 0 ratesHistory into
memory
Apr  5 20:40:43 th-db02 cdrtool[10497]: Loaded 0 holidays into memory
Apr  5 20:40:43 th-db02 cdrtool[10497]: Loaded 1 enumTlds into memory
Apr  5 20:40:43 th-db02 cdrtool[10497]: Memory usage: 4.47MB, memory
limit: 16MB
Apr  5 20:40:43 th-db02 cdrtool[10497]: Error: No database defined for
SIP accounts
Apr  5 20:40:43 th-db02 cdrtool[10497]: Error: Cannot start Rating
Engine, fix the errors and try again
~

and from the starting server
Apr  5 20:43:46 th-db01 cdrtool[18062]: Received signal 15
Apr  5 20:43:46 th-db01 cdrtool[18062]: Exiting ...
Apr  5 20:43:49 th-db01 cdrtool[18627]: Error in connect(): pconnect as
radius to sipdb failed
Apr  5 20:43:49 th-db01 cdrtool[18627]: Error: failed to connect to the
primary CDR database DB_radius
Apr  5 20:43:49 th-db01 cdrtool[18627]: Memory usage: 4.33MB, memory
limit: 8MB
Apr  5 20:43:49 th-db01 cdrtool[18627]: Loaded 1 profiles into memory
Apr  5 20:43:49 th-db01 cdrtool[18627]: Loaded 0 ratesHistory into
memory
Apr  5 20:43:49 th-db01 cdrtool[18627]: Loaded 0 holidays into memory
Apr  5 20:43:49 th-db01 cdrtool[18627]: Loaded 1 enumTlds into memory
Apr  5 20:43:49 th-db01 cdrtool[18627]: Memory usage: 4.33MB, memory
limit: 8MB
Apr  5 20:43:49 th-db01 cdrtool[18627]: Error: No database defined for
SIP accounts
Apr  5 20:43:49 th-db01 cdrtool[18630]: Listening on 10.10.1.100:9024

both servers has same global.inc and rpms
 
 
 
 
Thanks
 
 
 
 
___
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


Re: [OpenSIPS-Users] mediaproxy

2010-04-05 Thread Richard Revels
Here is the process I used with an up to date CentOS 5.4 server

wget http://download.ag-projects.com/MediaProxy/mediaproxy-2.4.2.tar.gz
tar -xzf mediaproxy-2.4.2.tar.gz 
cd mediaproxy-2.4.2
yum install python-tools.x86_64 python-twisted-core.x86_64 
python-zope-interface.x86_64 python.x86_64 python-ctypes.x86_64
easy_install -U setuptools
easy_install 
http://pypi.python.org/packages/source/p/python-application/python-application-1.1.5.tar.gz
easy_install python-cjson
cd ../
wget http://ftp.gnu.org/pub/gnu/gnutls/gnutls-2.8.6.tar.bz2
bunzip2 gnutls-2.8.6.tar.bz2 
tar -xf gnutls-2.8.6.tar 
cd gnutls-2.8.6
yum install libgcrypt
./configure
make install
cd ../mediaproxy-2.4.2
easy_install python-gnutls==1.1.8
yum install libnetfilter_conntrack-devel.x86_64
./build_inplace 


And unfortunately, here is the latest error I am getting when trying to run the 
media-dispatcher:

Apr  5 18:32:31 ip-30 media-dispatcher[22909]: Log opened.
Apr  5 18:32:31 ip-30 media-dispatcher[22909]: Starting MediaProxy Dispatcher 
2.4.2
Apr  5 18:32:31 ip-30 media-dispatcher[22909]: Twisted is using selectreactor
Apr  5 18:32:31 ip-30 media-dispatcher[22909]: fatal error: failed to create 
MediaProxy Dispatcher: Objects/dictobject.c:533: bad argument to internal 
function
Apr  5 18:32:31 ip-30 media-dispatcher[22909]: Traceback (most recent call 
last):
Apr  5 18:32:31 ip-30 media-dispatcher[22909]: --- exception caught here ---
Apr  5 18:32:31 ip-30 media-dispatcher[22909]:   File ./media-dispatcher, 
line 62, in ?
Apr  5 18:32:31 ip-30 media-dispatcher[22909]: dispatcher = Dispatcher()
Apr  5 18:32:31 ip-30 media-dispatcher[22909]:   File 
/usr/local/src/mediaproxy-2.4.2/mediaproxy/dispatcher.py, line 527, in 
__init__
Apr  5 18:32:31 ip-30 media-dispatcher[22909]: self.cred = 
X509Credentials(cert_name='dispatcher')
Apr  5 18:32:31 ip-30 media-dispatcher[22909]:   File 
/usr/local/src/mediaproxy-2.4.2/mediaproxy/tls.py, line 132, in __init__
Apr  5 18:32:31 ip-30 media-dispatcher[22909]: 
twisted.X509Credentials.__init__(self, self.X509cert, self.X509key, 
[self.X509ca], [self.X509crl])
Apr  5 18:32:31 ip-30 media-dispatcher[22909]:   File 
/usr/local/src/mediaproxy-2.4.2/mediaproxy/tls.py, line 99, in __get__
Apr  5 18:32:31 ip-30 media-dispatcher[22909]: return descriptor.get()
Apr  5 18:32:31 ip-30 media-dispatcher[22909]:   File 
/usr/local/src/mediaproxy-2.4.2/mediaproxy/tls.py, line 82, in get
Apr  5 18:32:31 ip-30 media-dispatcher[22909]: self.object = 
self.klass(f.read())
Apr  5 18:32:31 ip-30 media-dispatcher[22909]:   File string, line 1, in 
__init__
Apr  5 18:32:31 ip-30 media-dispatcher[22909]: 
Apr  5 18:32:31 ip-30 media-dispatcher[22909]:   File 
build/bdist.linux-x86_64/egg/gnutls/validators.py, line 273, in check_args
Apr  5 18:32:31 ip-30 media-dispatcher[22909]: 
Apr  5 18:32:31 ip-30 media-dispatcher[22909]:   File 
build/bdist.linux-x86_64/egg/gnutls/crypto.py, line 83, in __init__
Apr  5 18:32:31 ip-30 media-dispatcher[22909]: 
Apr  5 18:32:31 ip-30 media-dispatcher[22909]:   File 
/usr/lib64/python2.4/site-packages/ctypes/__init__.py, line 453, in cast
Apr  5 18:32:31 ip-30 media-dispatcher[22909]: return _cast(obj, obj, typ)
Apr  5 18:32:31 ip-30 media-dispatcher[22909]: exceptions.SystemError: 
Objects/dictobject.c:533: bad argument to internal function

Any guidance you can give to resolve this (outside of stop using Cent) would 
be appreciated.

Richard


On Mar 23, 2010, at 4:02 AM, Saúl Ibarra Corretgé wrote:

 Hi,
 
 On 22/3/10 8:40 PM, Julien Chavanton wrote:
 Hi, I have some problem with installing / running mediaproxy on FC7
 I have also tried mediaproxy-2.4.2, but then I revert to the latest
 working version I have deployed
 /usr/bin/media-relay --no-fork
 Starting MediaProxy Relay 2.3.6
 Segmentation fault
 I would like to install in on Debian, but I need to make it work on FC7
 or CentOS5
 I can see the problem, is there a suggested way to debug ?
 -
 try:
 from mediaproxy.relay import MediaRelay
 if not options.fork:
 from application.debug.memory import *
 relay = MediaRelay()
 except Exception, e:
 log.fatal(failed to create %s: %s % (fullname, e))
 if e.__class__ is not RuntimeError:
 log.err()
 sys.exit(1)
 
 
 There seems to be a compatibility issue with latest python-application 
 and/or python-gnutls. I'll fix that as soon as I can, but in the 
 meanwhile you may use python-application 1.1.5 and python-gnutls 1.1.8 
 which are known to work.
 
 If you find any other issues please let me know.
 
 
 Thanks for your report!
 
 
 Regards,
 
 -- 
 Saúl Ibarra Corretgé
 AG Projects
 
 ___
 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] mediaproxy

2010-04-05 Thread Marco Nesler
http://www.smartvox.co.uk/serfaq_install_mediaproxy2.htm

2010/4/5 Richard Revels rrev...@bandwidth.com

 Here is the process I used with an up to date CentOS 5.4 server

 wget http://download.ag-projects.com/MediaProxy/mediaproxy-2.4.2.tar.gz
 tar -xzf mediaproxy-2.4.2.tar.gz
 cd mediaproxy-2.4.2
 yum install python-tools.x86_64 python-twisted-core.x86_64
 python-zope-interface.x86_64 python.x86_64 python-ctypes.x86_64
 easy_install -U setuptools
 easy_install
 http://pypi.python.org/packages/source/p/python-application/python-application-1.1.5.tar.gz
 easy_install python-cjson
 cd ../
 wget http://ftp.gnu.org/pub/gnu/gnutls/gnutls-2.8.6.tar.bz2
 bunzip2 gnutls-2.8.6.tar.bz2
 tar -xf gnutls-2.8.6.tar
 cd gnutls-2.8.6
 yum install libgcrypt
 ./configure
 make install
 cd ../mediaproxy-2.4.2
 easy_install python-gnutls==1.1.8
 yum install libnetfilter_conntrack-devel.x86_64
 ./build_inplace


 And unfortunately, here is the latest error I am getting when trying to run
 the media-dispatcher:

 Apr  5 18:32:31 ip-30 media-dispatcher[22909]: Log opened.
 Apr  5 18:32:31 ip-30 media-dispatcher[22909]: Starting MediaProxy
 Dispatcher 2.4.2
 Apr  5 18:32:31 ip-30 media-dispatcher[22909]: Twisted is using
 selectreactor
 Apr  5 18:32:31 ip-30 media-dispatcher[22909]: fatal error: failed to
 create MediaProxy Dispatcher: Objects/dictobject.c:533: bad argument to
 internal function
 Apr  5 18:32:31 ip-30 media-dispatcher[22909]: Traceback (most recent call
 last):
 Apr  5 18:32:31 ip-30 media-dispatcher[22909]: --- exception caught here
 ---
 Apr  5 18:32:31 ip-30 media-dispatcher[22909]:   File ./media-dispatcher,
 line 62, in ?
 Apr  5 18:32:31 ip-30 media-dispatcher[22909]: dispatcher =
 Dispatcher()
 Apr  5 18:32:31 ip-30 media-dispatcher[22909]:   File
 /usr/local/src/mediaproxy-2.4.2/mediaproxy/dispatcher.py, line 527, in
 __init__
 Apr  5 18:32:31 ip-30 media-dispatcher[22909]: self.cred =
 X509Credentials(cert_name='dispatcher')
 Apr  5 18:32:31 ip-30 media-dispatcher[22909]:   File
 /usr/local/src/mediaproxy-2.4.2/mediaproxy/tls.py, line 132, in __init__
 Apr  5 18:32:31 ip-30 media-dispatcher[22909]:
 twisted.X509Credentials.__init__(self, self.X509cert, self.X509key,
 [self.X509ca], [self.X509crl])
 Apr  5 18:32:31 ip-30 media-dispatcher[22909]:   File
 /usr/local/src/mediaproxy-2.4.2/mediaproxy/tls.py, line 99, in __get__
 Apr  5 18:32:31 ip-30 media-dispatcher[22909]: return descriptor.get()
 Apr  5 18:32:31 ip-30 media-dispatcher[22909]:   File
 /usr/local/src/mediaproxy-2.4.2/mediaproxy/tls.py, line 82, in get
 Apr  5 18:32:31 ip-30 media-dispatcher[22909]: self.object =
 self.klass(f.read())
 Apr  5 18:32:31 ip-30 media-dispatcher[22909]:   File string, line 1,
 in __init__
 Apr  5 18:32:31 ip-30 media-dispatcher[22909]:
 Apr  5 18:32:31 ip-30 media-dispatcher[22909]:   File
 build/bdist.linux-x86_64/egg/gnutls/validators.py, line 273, in check_args
 Apr  5 18:32:31 ip-30 media-dispatcher[22909]:
 Apr  5 18:32:31 ip-30 media-dispatcher[22909]:   File
 build/bdist.linux-x86_64/egg/gnutls/crypto.py, line 83, in __init__
 Apr  5 18:32:31 ip-30 media-dispatcher[22909]:
 Apr  5 18:32:31 ip-30 media-dispatcher[22909]:   File
 /usr/lib64/python2.4/site-packages/ctypes/__init__.py, line 453, in cast
 Apr  5 18:32:31 ip-30 media-dispatcher[22909]: return _cast(obj, obj,
 typ)
 Apr  5 18:32:31 ip-30 media-dispatcher[22909]: exceptions.SystemError:
 Objects/dictobject.c:533: bad argument to internal function

 Any guidance you can give to resolve this (outside of stop using Cent)
 would be appreciated.

 Richard


 On Mar 23, 2010, at 4:02 AM, Saúl Ibarra Corretgé wrote:

  Hi,
 
  On 22/3/10 8:40 PM, Julien Chavanton wrote:
  Hi, I have some problem with installing / running mediaproxy on FC7
  I have also tried mediaproxy-2.4.2, but then I revert to the latest
  working version I have deployed
  /usr/bin/media-relay --no-fork
  Starting MediaProxy Relay 2.3.6
  Segmentation fault
  I would like to install in on Debian, but I need to make it work on FC7
  or CentOS5
  I can see the problem, is there a suggested way to debug ?
  -
  try:
  from mediaproxy.relay import MediaRelay
  if not options.fork:
  from application.debug.memory import *
  relay = MediaRelay()
  except Exception, e:
  log.fatal(failed to create %s: %s % (fullname, e))
  if e.__class__ is not RuntimeError:
  log.err()
  sys.exit(1)
 
 
  There seems to be a compatibility issue with latest python-application
  and/or python-gnutls. I'll fix that as soon as I can, but in the
  meanwhile you may use python-application 1.1.5 and python-gnutls 1.1.8
  which are known to work.
 
  If you find any other issues please let me know.
 
 
  Thanks for your report!
 
 
  Regards,
 
  --
  Saúl Ibarra Corretgé
  AG Projects
 
  ___
  Users mailing list
  Users@lists.opensips.org
  http://lists.opensips.org/cgi-bin/mailman/listinfo/users


 

Re: [OpenSIPS-Users] Question about mediaproxy relay preference

2010-04-05 Thread Henk Hesselink
Hi Adrian,

The way I read the code I can indicate one preferred relay, but not a
set.  So I can't say prefer this set of relays (i.e. the ones in this
particular datacenter) over the rest.  That's less flexible than the
SRV style.

What would be great would be a dispatcher option to say based on the
media streams in the SDP, prefer 'local' relays for some definition of
local - for instance relays that are on the same subnet as one or more
of the media endpoints.  I might be able to code up a patch for that if
you can give me a hint where to start (looks like that would be the
send_command method in the RelayFactory class).

Henk


Adrian Georgescu wrote:
 Yes, it blows away the DNS SRV concept. The new model where media
 relays automatically connect to one or more dispatchers using TLS is
 much more secure and has more self-organizing properties then
 statically configured DNS that can hold a limited amount of records.
 Still you have full control to promote a chosen relay on top of the
 list if you want to. You just need to work out a bit your
 configuration for achieving this.

 Adrian

 On Apr 2, 2010, at 2:46 PM, Brett Nemeroff wrote:

 Adrian,
 I do this in a few configurations. However, it kinda blows away the
 whole DNS SRV features, doesn't it? Anyway to indicate a mediaproxy
 preference without nailing to a specific one?

 -Brett


 On Fri, Apr 2, 2010 at 2:30 AM, Adrian Georgescua...@ag-
 projects.com  wrote:
 You have control over which MP is selected by setting an AVP in the
 proxy routing logic. So you can make some checks about your topology
 and then fetch the relay address from a database.

 Adrian

 On Apr 2, 2010, at 1:46 AM, Henk Hesselink wrote:

 We're moving our mediaproxies to 2.0 and have run into the
 following: in
 the old setup we used the priority value in the mediaproxy SRV
 records
 to prefer local (same datacenter) relays but to failover to a
 different
 datacenter if all local relays were unavailable.  We then used the
 SRV
 weight value to load balance between different capacity relays
 within
 the datacenter.

 With 2.0 using conntrack we don't need to load balance anymore, but
 we'd
 still like to be able to prefer a local relay.  Right now a call can
 be
 completely in one datacenter and yet have the relay in a different
 one,
 causing unnecessary latency.

 Ideally when a dispatcher sees that an endpoint of a call is on the
 same subnet as any of its relays, then it should prefer those
 relays.
 Is something like that possible?

 Regards,

 Henk Hesselink

 ___
 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] mediaproxy

2010-04-05 Thread Richard Revels
Thank you Marco.  Looking at some of the version numbers from the faq I noticed 
the distribution ctypes was a little behind.  So adding easy_install ctypes to 
the process below results in a functional media-proxy and dispatcher.  Kinda.  
Also add easy_install twisted for the relay.

Richard

On Apr 5, 2010, at 3:28 PM, Marco Nesler wrote:

 http://www.smartvox.co.uk/serfaq_install_mediaproxy2.htm
 
 2010/4/5 Richard Revels rrev...@bandwidth.com
 Here is the process I used with an up to date CentOS 5.4 server
 
 wget http://download.ag-projects.com/MediaProxy/mediaproxy-2.4.2.tar.gz
 tar -xzf mediaproxy-2.4.2.tar.gz
 cd mediaproxy-2.4.2
 yum install python-tools.x86_64 python-twisted-core.x86_64 
 python-zope-interface.x86_64 python.x86_64 python-ctypes.x86_64
 easy_install -U setuptools
 easy_install 
 http://pypi.python.org/packages/source/p/python-application/python-application-1.1.5.tar.gz
 easy_install python-cjson
 cd ../
 wget http://ftp.gnu.org/pub/gnu/gnutls/gnutls-2.8.6.tar.bz2
 bunzip2 gnutls-2.8.6.tar.bz2
 tar -xf gnutls-2.8.6.tar
 cd gnutls-2.8.6
 yum install libgcrypt
 ./configure
 make install
 cd ../mediaproxy-2.4.2
 easy_install python-gnutls==1.1.8
 yum install libnetfilter_conntrack-devel.x86_64
 ./build_inplace
 
 
 And unfortunately, here is the latest error I am getting when trying to run 
 the media-dispatcher:
 
 Apr  5 18:32:31 ip-30 media-dispatcher[22909]: Log opened.
 Apr  5 18:32:31 ip-30 media-dispatcher[22909]: Starting MediaProxy Dispatcher 
 2.4.2
 Apr  5 18:32:31 ip-30 media-dispatcher[22909]: Twisted is using selectreactor
 Apr  5 18:32:31 ip-30 media-dispatcher[22909]: fatal error: failed to create 
 MediaProxy Dispatcher: Objects/dictobject.c:533: bad argument to internal 
 function
 Apr  5 18:32:31 ip-30 media-dispatcher[22909]: Traceback (most recent call 
 last):
 Apr  5 18:32:31 ip-30 media-dispatcher[22909]: --- exception caught here ---
 Apr  5 18:32:31 ip-30 media-dispatcher[22909]:   File ./media-dispatcher, 
 line 62, in ?
 Apr  5 18:32:31 ip-30 media-dispatcher[22909]: dispatcher = Dispatcher()
 Apr  5 18:32:31 ip-30 media-dispatcher[22909]:   File 
 /usr/local/src/mediaproxy-2.4.2/mediaproxy/dispatcher.py, line 527, in 
 __init__
 Apr  5 18:32:31 ip-30 media-dispatcher[22909]: self.cred = 
 X509Credentials(cert_name='dispatcher')
 Apr  5 18:32:31 ip-30 media-dispatcher[22909]:   File 
 /usr/local/src/mediaproxy-2.4.2/mediaproxy/tls.py, line 132, in __init__
 Apr  5 18:32:31 ip-30 media-dispatcher[22909]: 
 twisted.X509Credentials.__init__(self, self.X509cert, self.X509key, 
 [self.X509ca], [self.X509crl])
 Apr  5 18:32:31 ip-30 media-dispatcher[22909]:   File 
 /usr/local/src/mediaproxy-2.4.2/mediaproxy/tls.py, line 99, in __get__
 Apr  5 18:32:31 ip-30 media-dispatcher[22909]: return descriptor.get()
 Apr  5 18:32:31 ip-30 media-dispatcher[22909]:   File 
 /usr/local/src/mediaproxy-2.4.2/mediaproxy/tls.py, line 82, in get
 Apr  5 18:32:31 ip-30 media-dispatcher[22909]: self.object = 
 self.klass(f.read())
 Apr  5 18:32:31 ip-30 media-dispatcher[22909]:   File string, line 1, in 
 __init__
 Apr  5 18:32:31 ip-30 media-dispatcher[22909]:
 Apr  5 18:32:31 ip-30 media-dispatcher[22909]:   File 
 build/bdist.linux-x86_64/egg/gnutls/validators.py, line 273, in check_args
 Apr  5 18:32:31 ip-30 media-dispatcher[22909]:
 Apr  5 18:32:31 ip-30 media-dispatcher[22909]:   File 
 build/bdist.linux-x86_64/egg/gnutls/crypto.py, line 83, in __init__
 Apr  5 18:32:31 ip-30 media-dispatcher[22909]:
 Apr  5 18:32:31 ip-30 media-dispatcher[22909]:   File 
 /usr/lib64/python2.4/site-packages/ctypes/__init__.py, line 453, in cast
 Apr  5 18:32:31 ip-30 media-dispatcher[22909]: return _cast(obj, obj, typ)
 Apr  5 18:32:31 ip-30 media-dispatcher[22909]: exceptions.SystemError: 
 Objects/dictobject.c:533: bad argument to internal function
 
 Any guidance you can give to resolve this (outside of stop using Cent) 
 would be appreciated.
 
 Richard
 
 
 On Mar 23, 2010, at 4:02 AM, Saúl Ibarra Corretgé wrote:
 
  Hi,
 
  On 22/3/10 8:40 PM, Julien Chavanton wrote:
  Hi, I have some problem with installing / running mediaproxy on FC7
  I have also tried mediaproxy-2.4.2, but then I revert to the latest
  working version I have deployed
  /usr/bin/media-relay --no-fork
  Starting MediaProxy Relay 2.3.6
  Segmentation fault
  I would like to install in on Debian, but I need to make it work on FC7
  or CentOS5
  I can see the problem, is there a suggested way to debug ?
  -
  try:
  from mediaproxy.relay import MediaRelay
  if not options.fork:
  from application.debug.memory import *
  relay = MediaRelay()
  except Exception, e:
  log.fatal(failed to create %s: %s % (fullname, e))
  if e.__class__ is not RuntimeError:
  log.err()
  sys.exit(1)
 
 
  There seems to be a compatibility issue with latest python-application
  and/or python-gnutls. I'll fix that as soon as I can, but in the
  meanwhile you may use 

Re: [OpenSIPS-Users] Presence and Linksys phones - not working 1.6.1

2010-04-05 Thread James Lamanna
On Mon, Apr 5, 2010 at 12:52 AM, Angel Marin an...@anmar.eu.org wrote:
 On 03/04/10 01:40, James Lamanna wrote:
 On Fri, Apr 2, 2010 at 4:52 AM, Anca Vamanu a...@opensips.org wrote:
 Hi James,

 I think that the problem is with those Notifies without a body sent by
 OpenSIPS when the phone was started. This is normal behavior, correct
 and conform RFC - when the presence server does not have any record for
 that presentity - it includes no body. But since you say that Linksys
 does not like this and since it was not that difficult to change, I just
 committed a patch that sends a Notify with an empty dialoginfo tuple as
 body when no published record is found. Please upgrade from svn and test
 this case again.

 Hi Anca,
 I saw your patch and upgraded to the SVN 1.6 branch.
 However, I do not believe I ever hit that code path.
 In my debug logs I see No record exists in hash table (notify.c:853).
 I'm not sure if fallback2db is true, but I don't think it is, so I
 never make it to that codepath.


 Give the attached patch a shot, it should do what you're looking for.

 Though I'm not sure generating an empty dialog without a presence entry
 is the correct approach, I mean, the monitored extension is not there,
 so why not hint it as a blinking light? In a cold start scenario, it'll
 go green once your re-subscribe time comes, so set it to a couple
 minutes or lower in the phone and you'll be good to go.

Actually, it never changes from blinking to green in that scenario, even
after multiple subscribes and registers.
Also, I just noticed that I'm receiving a peculiar response, a 501 Not
Implemented from the phones in response to a PUBLISH (I swear it wasn't
doing this before!)...

-- James



 --
 Angel Marin
 http://anmar.eu.org/

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



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


[OpenSIPS-Users] no free tcp receiver followup

2010-04-05 Thread Daniel Goepp
So there was a post quite some time ago on this topic:

http://n2.nabble.com/WARNING-core-send2child-no-free-tcp-receiver-td2143458.html

But I haven't seem much since, or any really good answer.  I'm seeing this
message quite a lot in the logs on my test server, and have very little load
here.  I'm wondering if there has been any progress on what the real
underlying issue is vs just disabling TCP.  Unfortunately I can't disable
TCP because of the large packet sizes required for video signaling.

Any further comments on this would be greatly appreciated.

Thanks

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


Re: [OpenSIPS-Users] no free tcp receiver followup

2010-04-05 Thread Laszlo
2010/4/6 Daniel Goepp d...@goepp.net

 So there was a post quite some time ago on this topic:


 http://n2.nabble.com/WARNING-core-send2child-no-free-tcp-receiver-td2143458.html

 But I haven't seem much since, or any really good answer.  I'm seeing this
 message quite a lot in the logs on my test server, and have very little load
 here.  I'm wondering if there has been any progress on what the real
 underlying issue is vs just disabling TCP.  Unfortunately I can't disable
 TCP because of the large packet sizes required for video signaling.

 Any further comments on this would be greatly appreciated.

 Thanks

 -dg


Did you try to play with tcp_connection_lifetime?


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