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 
gate...@ip

Regards,
 --Adam

-----Original Message-----
From: [email protected] 
[mailto:[email protected]] On Behalf Of Bogdan-Andrei Iancu
Sent: Wednesday, October 07, 2009 2:01 AM
To: [email protected]
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 [email protected] <mailto:[email protected]>
> [email protected] <mailto:[email protected]> etc, etc.
>
>
>
> Documentation and googling seems sparse on this.
>
>
>
> Regards,
>
>  --Adam
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> 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


_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to