[OpenSIPS-Users] CDRTool and diverted calls
Carlo Dimaggio
jaasmailing at gmail.com
Wed Jun 24 12:15:13 CEST 2009
Il giorno 24/giu/09, alle ore 11:50, Iñaki Baz Castillo ha scritto:
> This means that when the called replies a 302, OpenSIPS should do
> recursion on it, extract the "Contact" of the 302 and generate a new
> branch for it. Also it should set the AVP which will be mapped to
> Radius "UserName" field to the AoR replying the 302.
Hi Iñaki,
My aim is a little bit different because I want to handle a simple cfu
directly from opensips (without a 302 from client).
I don't understand very well how CDRTool bill the call diversion in
this case (maybe is not possible?)
In the opensips.cfg now I have:
modparam("acc", "radius_extra", "User-Name=$Au; Calling-Station-Id=
$from; Called-Station-Id=$to; Sip-Translated-Request-URI=$ruri; [...]
Canonical-URI=$avp(s:can_uri); Billing-Party=$avp(s:billing_party)
# Simple test for unconditional call forward
$avp(s:callfwd)="sip:00390212345 at sip.clio.it";
avp_pushto("$ru", "$avp(s:callfwd)");
$avp(s:divert_reason)="cfu";
$avp(s:billing_party)=$tu;
xlog ("L_INFO", "TEST Forward - M=$rm RURI=$ru F=$fu T=$tu IP=
$si ID=$ci\n");
The result is that radius request is (for 1000 to 1001 diverted to
00390212345):
Wed Jun 24 11:59:29 2009
Acct-Status-Type = Start
Service-Type = Sip-Session
Sip-Response-Code = 200
Sip-Method = Invite
[...]
User-Name = "1000 at sip.clio.it"
Calling-Station-Id = "sip:1000 at sip.clio.it:5060"
Called-Station-Id = "sip:1001 at sip.clio.it:5060"
Sip-Translated-Request-URI = "sip:00390212345 at 10.0.1.44"
[...]
Canonical-URI = "sip:00390212345 at sip.clio.it"
Billing-Party = "sip:1001 at sip.clio.it:5060"
Divert-Reason = "cfu"
[...]
Where I'm wrong?
Thanks and regards,
Carlo
More information about the Users
mailing list