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:[email protected]";
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 = "[email protected]"
Calling-Station-Id = "sip:[email protected]:5060"
Called-Station-Id = "sip:[email protected]:5060"
Sip-Translated-Request-URI = "sip:[email protected]"
[...]
Canonical-URI = "sip:[email protected]"
Billing-Party = "sip:[email protected]:5060"
Divert-Reason = "cfu"
[...]
Where I'm wrong?
Thanks and regards,
Carlo
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users