Re: [OpenSIPS-Devel] [OpenSIPS-Users] Asynchronous DB queries in OpenSIPS 1.x

2011-03-16 Thread Dave Singer
Vlad,
Would it be possible extend DB_VITRUAL kind of a combination of your
two options and Brett's suggestion.
I'm just guessing how things might work and possibilities. So for what
it is worth...
Since it is a middle layer, it could either use the async capabilities
of the native driver or put it in a queue to be handled by a special
db queue process that could also be threaded potentially (if
beneficial). The IPC would only need to pass the query that is needed.
To take advantage of the async the user would only need to use the
DB_VIRTUAL module.
Probably would want a module param to enable/disable async
(async_db_updates) in case it is important and maybe a bit flag option
as well that would reverse the async_db_updates option when flag set
for case by case basis.
Potentially with a separate queue process updates like registrations
could be combined into a single update.

Dave


On Wed, Mar 16, 2011 at 10:32 AM, Brett Nemeroff br...@nemeroff.com wrote:




 On Wed, Mar 16, 2011 at 12:18 PM, Vlad Paiu vladp...@opensips.org wrote:

 Hello all,

 Problem :
 1) Extend the OpenSIPS DB core. Add extra core processes that would only
 handle queries that return no results.
     For example : The accounting module need to insert an entry in the DB.
 The module calls the insert() function. Behind the scene, this triggers
 passing all the arguments to the new core processes, via IPC mechanisms. The
 insert() then exists and the SIP children continues execution as if the
 entry has been inserted in the DB. Meanwhile, the DB core processes receive
 the new parameters, build and send the query, blocking if necessary.


 Maybe I'm just saying the same thing another way, but what about an async
 execution queue. So you basically add to the queue messages to be executed
 to the database and on some sort of timer loop process them. To the script,
 we just assume everything is 100% successful.
 Is IPC really necessary for this? The goal here is really just to offload
 the processing elsewhere so that the DB slowness doesn't adversely affect
 opensips core performance. right?

 I thin it's also important that there is a async execute and a sync execute
 and people (users?) need to know that in the async execute, you won't know
 if the execute succeeded in the script logic *ever*
 -Brett


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



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


Re: [OpenSIPS-Devel] Sip stereo B2BUA conference server

2011-02-25 Thread Dave Singer
MatzeMuc86,

Opensips handles just the SIP signaling which contains the information about
where the RTP should connect to. The modules media_proxy and nat_helper can
be used to communicate to the external applications media_proxy and
rtp_proxy respectively that setup proxying of the RTP and return to the
opensips module the connection setup it has prepared for the RTP. The module
then alters the SDP appropriately and the opensips script continues on
deciding where to send and sending the SIP message to the next server.
I believe rtp_proxy can be setup to stream audio from a file and it might be
a starting point for you to mix the stereo audio.
However I'm not sure if opensips can be the endpoint of a call (SIP) without
writing or extending a module for that purpose. The B2B module is something
you might look at to see how much tweaking it would take to make it do what
you want.

Dave

On Fri, Feb 25, 2011 at 1:15 AM, MatzeMuc86 matzemu...@gmail.com wrote:

 Hi,

 as I already invested a lot of time, I try to be sure to check out all
 possibilities. I already know about PJSIP but that does not mean that
 OpenSIPS could not be the right project for me - I wanted to be sure.
 Anyway: Thanks A LOT for your very nice support and searching time!!!

 -Ursprüngliche Nachricht-
 Von: devel-boun...@lists.opensips.org
 [mailto:devel-boun...@lists.opensips.org] Im Auftrag von Saúl Ibarra
 Corretgé
 Gesendet: Freitag, 25. Februar 2011 10:08
 An: OpenSIPS devel mailling list
 Betreff: Re: [OpenSIPS-Devel] Sip stereo B2BUA conference server

 Hi,

 On 02/25/2011 10:02 AM, MatzeMuc86 wrote:
  Hello Adrian,
 
  I know that I need some RTP part which receives, mixes and sends the
  media stream. I thought I can do all these things with OpenSIPS? I saw
  that SDP is implemented, but, of course, this is transported by SIP.
  Maybe I am wrong about RTP and OpenSIPS - sorry.
 

 SDP is just signaling, OpenSIPS doesn't deal with RTP at all.

  Refering to FreeSWITCH: IT can handle RTP, conferences, B2BUA eg. -
  but no stereo. TO implement this, the project is that big that - after
  talking with the freeswitch developers - this seems to be a very big
  project. As it is only a Bachelor Thesis I thought about finding an
  easier way to implement my idea.
 

 IIRC, PJSIP does have stereo support to some degree. A quick search
 returned
 this: http://blog.pjsip.org/2008/03/31/doing-it-in-stereo/


 Regards,

 --
 Saúl Ibarra Corretgé
 AG Projects

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


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

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