Hi Alberto,
By default CDRTool takes the gateway parameter out of Source IP (nicely
explained also in the doc/RATING.TXT) and if you don't modify the defaults,
out of radacct.SourceIP column.
In order to identify the gateway, you need to enforce that SourceIP inside
opensips script to whatever IP you want to be used as your gateway.
Example of params in opensips.cfg:
modparam("acc", "radius_extra", " Source-IP=$avp(s:mygtw)")
Another trick you can use is to write your own radius sql query which places
the SourceIP from another radius attribute received.
Cheers,
DanB
On Tue, Jul 21, 2009 at 9:44 PM, Alberto Listas <[email protected]> wrote:
> Hi,
>
> I am having a difficulty with the rating in CDRTool. When I telnet and give
> this command:
>
> ShowPrice From=sip:[email protected] <sip%[email protected]> To=
> sip:[email protected] <sip%[email protected]>Gateway=10.0.0.4
> Duration=30
> (IPs where changed)
>
> The rating engine identifies the customer by the gateway and rates
> correctly.
>
> When the call comes from the OpenSips it doesn't identify the customer and
> uses
> the default profile:
>
> Start time: 2009-07-21 14:55:24
> Stop time: 2009-07-21 14:55:59
> Method:Invite from :
> From:[email protected] <from%[email protected]>
> Domain:10.0.0.4
> To (dialed URI):[email protected]
> Canonical URI: [email protected]
> Next hop URI:[email protected] <uri%[email protected]>
> Destination: BRAZIL CELL (55218)
> Billing Party:[email protected] <party%[email protected]>
> Reseller:
> Duration: 35 s
> App: audio
> Destination: 55218
> Customer: default
> Connect: 0.0000 ......
>
> Should I set some different variable to FreeRadius for it to identify the
> GATEWAY?
>
> Thanks,
>
> Alberto
>
> _______________________________________________
> Users mailing list
> [email protected]
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users