[OpenSIPS-Users] Prepay charge by source IP

Adam Botbyl adam at skywitelecomm.com
Wed Oct 14 09:32:30 CEST 2009


Bogdan,

Thanks for the advice. Digging through (even in 1.5) I was able to add:
 modparam("call_control", "diverter_avp_id", 805)

and then add
 $avp(i:805) = "gateway@" + $fd;

To my routing, all is seeming well as all my users are going to just have to be gateway at ip

Regards,
 --Adam

-----Original Message-----
From: users-bounces at lists.opensips.org [mailto:users-bounces at lists.opensips.org] On Behalf Of Bogdan-Andrei Iancu
Sent: Wednesday, October 07, 2009 2:01 AM
To: users at lists.opensips.org
Subject: Re: [OpenSIPS-Users] Prepay charge by source IP

Hello Adam,

There are 2 ways to get this working:
    - use opensips 1.6, where via the callcontrol module you can send
custom data (including the source IP)
    - in 1.5, you can try to mask the src IP in some of the fields that
are already sent out - maybe RURI ...

Regards,
Bogdan

Adam Botbyl wrote:
>
> I am trying to setup a opensips/cdrtool/callcontrol gateway for
> pre-pay ratings. My conundrum is that I need to debit account by IP
> alone (not username). I found that I can auth by IP by just inserting
> it into the database, but cannot seem to wild-card the username. Is
> there a way to do this without re-writing the source?
>
>
>
> Basically all calls from 1.2.3.4 will rate as the account for 1.2.3.4
> instead of having to have 1234 at 1.2.3.4 <mailto:1234 at 1.2.3.4>
> 1235 at 1.2.3.4 <mailto:1235 at 1.2.3.4> etc, etc.
>
>
>
> Documentation and googling seems sparse on this.
>
>
>
> Regards,
>
>  --Adam
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>


_______________________________________________
Users mailing list
Users at lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users




More information about the Users mailing list