[OpenSIPS-Devel] [ opensips-Patches-2957313 ] [MediaProxy] Add support for ICE

2010-02-23 Thread SourceForge.net
Patches item #2957313, was opened at 2010-02-23 18:12
Message generated for change (Tracker Item Submitted) made by saghul
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detailatid=1086412aid=2957313group_id=232389

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: modules
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: saghul (saghul)
Assigned to: Nobody/Anonymous (nobody)
Summary: [MediaProxy] Add support for ICE

Initial Comment:
Hi,

The attached patch adds support for using ICE 
(http://tools.ietf.org/html/draft-ietf-mmusic-ice-19) in scenarios involving 
OpenSIPS and MediaProxy.

Currently NAT is usually fixed by mangling the SDP in OpenSIPS and directing 
RTP to a media relay server. This SDP mangling makes ICE not to work, because 
ICE needs to have a candidate for the IP present in the c line of the SDP, and 
as the proxy changed it, ICE negotiation breaks.

With the attached patch, OpenSIPS will add the necessary candidates to the SDP 
so that the ICE negotiation doesn't break and we can have p2p audio on LAN 
environments for example. :)


Please consder it for inclusion in some later relase,

Kind regards,

PS: The design on how the issue has been solved can be seen here: 
http://mediaproxy.ag-projects.com/wiki/ICE
PS2: This patch needs this other patch to be applied previously: 
https://sourceforge.net/tracker/?func=detailaid=2949743group_id=232389atid=1086412


--
Saúl Ibarra Corretgé
AG Projects

--

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detailatid=1086412aid=2957313group_id=232389

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


[OpenSIPS-Devel] New MediaProxy release 2.4.0 with support for ICE negotiation

2010-02-23 Thread Adrian Georgescu

Hello,

There is a new release of MediaProxy available. This version allows  
MediaProxy relay to be used as a TURN candidate in ICE negotiation.


The complete ICE functionality is described here:

http://mediaproxy-ng.org/wiki/ICE

To upgrade your Debian unstable installation do:

sudo apt-get update
sudo apt-get install mediaproxy-dispatcher mediaproxy-relay mediaproxy- 
web-sessions


Or download the tar file from:

http://download.ag-projects.com/MediaProxy/

The changelog follows:

mediaproxy (2.4.0) unstable; urgency=low

  * Added ICE negotiation capability and assert itself as a TURN relay
candidate in the SDP, for a complete description and usage  
information

see http://mediaproxy-ng.org/wiki/ICE
  * Fix race in which an already called event tried to be cancelled
  * Prevent other acounting backends to be affected by a failure in  
one of

them

If you use CDRTool you must upgrade to version 7.1.0 and update the  
MySQL stored procedures that create the radius records, see cdrtool  
changelog for more information.


Kind regards,
Adrian Georgescu


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


[OpenSIPS-Devel] New MediaProxy release 2.4.0 with support for ICE negotiation

2010-02-23 Thread Juha Heinanen
Adrian Georgescu writes:

  mediaproxy (2.4.0) unstable; urgency=low
  
 * Added ICE negotiation capability and assert itself as a TURN relay
   candidate in the SDP, for a complete description and usage  
  information
   see http://mediaproxy-ng.org/wiki/ICE
 * Fix race in which an already called event tried to be cancelled
 * Prevent other acounting backends to be affected by a failure in  
  one of
   them

adrian,

the list does not include anything about python-application
1.2.2 compatibility.  does it work with that version or still require
old version?

-- juha

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


[OpenSIPS-Devel] New MediaProxy release 2.4.0 with support for ICE negotiation

2010-02-23 Thread Juha Heinanen
Juha Heinanen writes:

  adrian,
  
  the list does not include anything about python-application
  1.2.2 compatibility.  does it work with that version or still require
  old version?
  
  -- juha

sorry about the mixup.  the problem was with openxcap, not mediaproxy.

-- juha

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


[OpenSIPS-Devel] [ opensips-Bugs-2948561 ] deadlock on pua presentity lock

2010-02-23 Thread SourceForge.net
Bugs item #2948561, was opened at 2010-02-09 16:38
Message generated for change (Settings changed) made by wdoekes
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detailatid=1086410aid=2948561group_id=232389

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: modules
Group: 1.6.x
Status: Open
Resolution: Accepted
Priority: 1
Private: No
Submitted By: Walter Doekes (wdoekes)
Assigned to: Anca Vamanu (anca_vamanu)
Summary: deadlock on pua presentity lock

Initial Comment:
Hi,

when sending the PUBLISH messages to self, using:
modparam(pua_dialoginfo, presence_server, sip:a.b.c.d:5060) # send 
PUBLISH messages to self
I get a deadlock of the entire opensips daemon.

If I send the messages to somewhere else, the deadlock does not occur.

If I release the locks as per the attached patch, the deadlock doesn't occur 
either.
But according to the comments in the code, the lock is not meant to be freed 
just yet. So I'm not sure what my patch breaks instead. (I'm not even sure I'm 
supposed to publish to self, but it seems like it, as I want to generate 
notifies based on the state changes found in the publish.)


I'm running 1.6-svn (r6568)

Regards,
Walter Doekes
OSSO B.V.

--

Comment By: Walter Doekes (wdoekes)
Date: 2010-02-24 07:59

Message:
Furthermore, I can add that I used children=1.

(Having children as 1 also led me to believe that setting $var()s in
startup_route could be used as process-wide constants, which they cannot.
This should clear up some more of the odd issues I was having. How would
you feel about a process_startup_route? I cannot believe I'm the only one
who likes constants at the top of the file.)

--

Comment By: Walter Doekes (wdoekes)
Date: 2010-02-12 09:11

Message:
Hi Anca,

Thanks for your quick reply.

I've tried to reduce/declutter my config file to make it easily
reproducable, but during this reduction the problem goes away. I can hardly
give you the full config file as it's a bit of a complex hack, and
incomplete at that ;)

Yes, what I want to do is implement BLF on OpenSIPS. To do this, I do
basically this:

route {
  if (uri == myself) {
if ($si == e.f.g.h) { # my IP
  if (method == PUBLISH) {
handle_publish(sip:mys...@myself.myself);
exit;
  }
}
if (method == SUBSCRIBE) {
  handle_subscribe();
  exit;
}
if (method == INVITE) {
  dialoginfo_set();
  record_route();
}
if ($si == a.b.c.d) {
  $var(local) = sip: + $(hdr(X-PIDstAccount)[-1]) + @anydomain;
  lookup(opensips_location, , $var(local));
} else {
  $rd = a.b.c.d;
}
t_relay();
  }
}

(Add a bit of nat handling, registration handling and transaction
handling.)

Modules loaded are:

loadmodule xlog.so# logging (xlog)
loadmodule sl.so  # stateless functions (sl_*)
loadmodule tm.so  # t_*: transactions in memory
loadmodule signaling.so   # send reply according to state

loadmodule rr.so  # record route
loadmodule nathelper.so   # fix_nated_*()

loadmodule textops.so # append_hf
loadmodule uri.so # has_totag

loadmodule db_mysql.so# mysql
loadmodule auth.so# digest auth
loadmodule auth_db.so # digest auth
loadmodule group.so   # groups (for acls)
loadmodule permissions.so # permissions (provide acls together with
groups)

loadmodule usrloc.so  # user location

loadmodule registrar.so   # lookup/save/registered

loadmodule dialog.so  # ...
loadmodule presence.so# handle SUBSCRIBE events
loadmodule presence_dialoginfo.so # handle SUBSCRIBE events for
dialoginfo
loadmodule presence_xml.so# handle SUBSCRIBE events for dialoginfo
loadmodule pua.so # ...
loadmodule pua_dialoginfo.so  # ...

...
modparam(pua_dialoginfo, presence_server, sip:e.f.g.h:5060) # send
PUBLISH messages to self


Now, it's quite possible that I'm doing things wrong. My grandstream test
phone has not answered at all to the opensips NOTIFY's sent by
handle_publish().


I'll try re-adding and reorganising my config file to get back the
complete behaviour I want (with or without the deadlock). In the mean time
you can consider this report INVALID/WORKSFORME and I can file a new one if
the problem re-appears.

Regards,
Walter

--

Comment By: Anca Vamanu (anca_vamanu)
Date: 2010-02-09 17:53

Message:
Hi Walter,

That is not the right fix, because that lock must actually be kept until
the reply is received. I want to reproduce this myself to be able to
investigate. I don't understand exactly which is the case when you get
deadlock. You subscribe for dialog event to yoursefl?