[Users] CID insertion

nick nick at mobilia.it
Thu Jan 18 10:29:12 CET 2007


Bogdan-Andrei Iancu wrote:
> Hi Nick,
> 
> so, you need to have to instruct auth module about the avp used from rpid:
>    modparam("auth", "rpid_avp", "i:13")
>    See http://www.openser.org/docs/modules/1.2.x/auth.html#AEN115
> then you need to load the content of the "rpid" column into that AVP 
> (during auth)
>    modparam("auth_db", "load_credentials", "i:13=rpid")
>    See http://www.openser.org/docs/modules/1.2.x/auth_db.html#AEN147
> and you need to push it into the request:
>    append_rpid_hf();
> 
> regards,
> bogdan
> 
> nick wrote:
> 
>> I have my user authentication in a MYSQL database and use openser 
>> administrator to manage users. With every user I can add the Caller ID 
>> which ends up in the database (I've confirmed the existence in the DB).
>>
>> I'd like to add a Remote Party ID header into my calls directed to my 
>> PSTN termination provider (this is the header they want). I have had a 
>> look at the Auth module, and if I understood correctly, needed to add 
>> the lines
>>
>> modparam("auth", "rpid_avp", "i:13")
>>  to obtain the rpid field from the database
>>
>> and
>>
>>  append_rpid_hf();
>>
>> to actually add the RPID field to my outgoing INVITES, etc.
>>
>> however, I still can't see the header being added to the calls in 
>> outgoing SIP traces, and I have the feeling that I'm missing something 
>> fundamental..
>>
>> I've tried also adding this line to load the credentials from the 
>> database:
>>
>> modparam("auth_db", "load_credentials", "rpid")
>>
>>
>> Do I need to set the load credentials to be i:13=rpid to load the rpid 
>> field into the avp???
>>
>> It's not 100% clear from the documentation where and how these avps 
>> are used (automatically if they're filled, or if they need to be 
>> somehow referenced in the function that uses them) and exactly which 
>> function is necessary (do I need the auth_db function or not?)..
>>
>>
>> _______________________________________________
>> Users mailing list
>> Users at openser.org
>> http://openser.org/cgi-bin/mailman/listinfo/users
>>
> 
Ok, so I need all 3 pieces, that was what I was unsure about. Thanks!

Nick




More information about the Users mailing list