Hello,

I think you are looking for multileg call acounting. This is possible in OpenSER since its first version. See
http://www.openser.org/docs/modules/1.2.x/acc.html#MULTI-CALL-LEGS

Cheers,
Daniel

On 02/28/07 21:00, Manuel Guesdon wrote:
Hi,

I try to have exploitable accounting for multiple domains and multi hops routing. I've previously tried for weeks on asterisk without success, even with adding c modules and playing with cdr fork :-(

He is a case:

- sip.domainA and sip.domainB point to the same Openser server.
- [EMAIL PROTECTED] is dbaliased to [EMAIL PROTECTED]
- [EMAIL PROTECTED] is dbaliased to [EMAIL PROTECTED]
- [EMAIL PROTECTED] make a dial to [EMAIL PROTECTED]

I dial 4 on phone1 and get this INVITE routing
[EMAIL PROTECTED] === RURI:[EMAIL PROTECTED] ==> openser
openser  === RURI:[EMAIL PROTECTED] ==> asteriskServer
asteriskServer == RURI:[EMAIL PROTECTED]  ==> openser
openser ==> phone2
this works and phone2 ring, I take the call and hangup phone1 after some time.

Now in acc table I find 15 records (7 INVITEs, 5 ACKs and 3 BYEs)
The 3 BYE records seems correct (one from phone 1 to openser, one from openser to asteriskBox and the last from asteriskBox to phone 2 via openser). But I can't find a way to match the 7 INVITEs to the 3 BYEs, even with adding src&dst legs src_ip info and so on.

>From acc records, I'd like to have make the following records report:

== Call ID, src, dst, total duration, billing duration ==
- 1234, [EMAIL PROTECTED],[EMAIL PROTECTED],10,8
- 1234, [EMAIL PROTECTED],[EMAIL PROTECTED],10,8
- 1234, [EMAIL PROTECTED],[EMAIL PROTECTED],10,8
- 1234, [EMAIL PROTECTED],[EMAIL PROTECTED],10,8

Is it a complete dream or do you have an idea ?

Manuel



_______________________________________________
Users mailing list
[email protected]
http://openser.org/cgi-bin/mailman/listinfo/users


_______________________________________________
Users mailing list
[email protected]
http://openser.org/cgi-bin/mailman/listinfo/users

Reply via email to