[ opensips-Patches-2799993 ] call_control: TCP connection for external prepaid app

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[ opensips-Patches-2799993 ] call_control: TCP connection for external prepaid app

SourceForge.net
Patches item #2799993, was opened at 2009-06-02 16:46
Message generated for change (Settings changed) made by dan_pascu
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=1086412&aid=2799993&group_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: Philippe Favier (quark38)
>Assigned to: Dan (dan_pascu)
Summary: call_control: TCP connection for external prepaid app

Initial Comment:
Added socket type TCP in addition to UNIX socket.

New config parameters:
  o modparam("call_control", "socket_type", "tcp")    # default = "unix"
  o modparam("call_control", "server_name", "myserver.mydomain.com")
  o modparam("call_control", "server_port", 5000)

Motivations for this patch:
  o external prepaid application in Java (no Unix socket in Java)
  o several openSIPS B2BUA's can be client to the same prepaid app
  o prepaid app can run on a different server



----------------------------------------------------------------------

>Comment By: Dan (dan_pascu)
Date: 2009-06-05 10:30

Message:
Hi Philippe,

Are you aware of the callcontrol application, available from
http://callcontrol.ag-projects.com/ ?
That is a bridge between the opensips call_control module and the actual
prepaid engine.

With this application combined with the call_control opensips module, one
can already do all you list there. We currently have this running with:

- external prepaid application in PHP (the rating engine from CDRTool)
- multiple opensips proxies are clients to the same rating engine (via the
callcontrol application)
- rating engine runs on a different server

The external callcontrol application acts as a bridge between the opensips
call_control module and the prepaid engine.
On input it listens on the unix socket and it connects over tcp to the
rating engine.

From this point of view, it's much easier to modify this callcontrol
application to connect to your rating engine than to modify the opensips
module to talk tcp. One of the reasons why a direct TCP connection to the
rating engine was not considered in the first place is that tcp connections
can potentially freeze your proxy if the other site becomes unavailable.
Plus the callcontrol application is also able to keep track of time and
close the sessions that exceed their credit limit.



----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=1086412&aid=2799993&group_id=232389

_______________________________________________
Devel mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel