[OpenSIPS-Users] Call-forward and multi-leg accounting
Bogdan-Andrei Iancu
bogdan at voice-system.ro
Thu Jun 25 21:01:55 CEST 2009
Hi Carlo,
There is no other way to accomplish what you need from script only, but
only with development:
- have a module param to instruct to send multiple radius requests
(one per leg)
- allow the acc functions to be called from reply route.
Regards
Bogdan
Carlo Dimaggio wrote:
>
> Il giorno 20/giu/09, alle ore 01:01, Bogdan-Andrei Iancu ha scritto:
>
>> Hi Carlo,
>>
>> maybe you should consider using manual accounting by explicitly
>> triggering the radius accounting from script:
>> http://www.opensips.org/html/docs/modules/1.5.x/acc.html#id272212
>
> Hi Bogdan,
>
> I have tried to use the acc_rad_request() but I've seen that the task
> is more complicated to accomplish :)
> First of all, I need to look inside the reply for check the
> Sip-Response-Code (I mustn't account a 487 for example...) but
> acc_rad_request() cannot be used in onreply_route.
> However I should change the content of different radius parameters and
> find a way to match the (fake) 200 Bye with the (fake) invite (the
> requests must be identical except for the Sip-Method?) ...
>
> Call from 1000 to 1002 -> (unconditional) forwarding to 1001 (1002
> must pay for the call from 1002 to 1001)
>
> The output should be:
>
> SIP Caller SIP destination Dur Status
> 1000 1002 00:30 Ok (200)
> 1002 1001 00:30 Ok (200) (fake)
>
> Excuse me if my explanation isn't good... I'm a little bit confused :)
>
> Do you think that this procedure could be better in some way?
>
> Thank you very much,
> Carlo
More information about the Users
mailing list