[SR-Users] Remote Party ID
Daniel-Constantin Mierla
miconda at gmail.com
Thu Dec 8 07:55:12 CET 2011
Hello,
On 12/7/11 10:03 AM, Pavel Segeč wrote:
>
> HI,
>
> Thank you. Just as I sent my previous mail I look into kamctl command
> syntax and I found
>
> -- command 'rpid' - manage Remote-Party-ID (RPID)
>
> rpid add <username> <rpid> ......... add rpid for a user (*)
>
> rpid rm <username> ................. set rpid to NULL for a user (*)
>
> rpid show <username> ............... show rpid of a user
>
> How this work?
>
this is for adding/removing/showing the rpid column in subscriber table
-- if you look in database, there is a column named rpid for subscriber
table.
Practically, setting it and loading with load_credentials is a way to
use it in the config file. In config then you can use append_hf() add
header as you need, or if it is rpid specific format, see siputils
module for other options:
http://kamailio.org/docs/modules/stable/modules_k/siputils.html
Cheers,
Daniel
> pavel
>
> *From:*Daniel-Constantin Mierla [mailto:miconda at gmail.com]
> *Sent:* Tuesday, December 06, 2011 11:14 PM
> *To:* SIP Router - Kamailio (OpenSER) and SIP Express Router (SER) -
> Users Mailing List
> *Cc:* Pavel Segeč
> *Subject:* Re: [SR-Users] Remote Party ID
>
> Hello,
>
> On 12/6/11 2:50 PM, Pavel Segeč wrote:
>
> Hi,
>
> I'm looking for some recommendations or guidlines. My leading IT
> department which is providing PSTN connectivity requires to include
> Remote Party ID in SIP Messages in a case where From URI is not in
> telco format (I prefer email like style of addressing). How to simply
> assign to an user its Remote Party ID which will be used when PSTN
> calling will occure? On what should I focus on? To use user
> preferences with AVP pairs? or something another?
>
> since it is about one attribute associated with the caller, a
> recommended way is to add a new column in subscriber table, say it is
> named 'rpid'.
>
> Then, in config file, set the load_credentials parameter of auth_db to
> load the rpid value and store in an avp. After you authenticate the
> caller, the avp will be set to the rpid value, see:
>
> http://kamailio.org/docs/modules/stable/modules_k/auth_db.html#id2528175
>
> Using this option, practically you use same db query that loads the
> user password for authentication to fetch the rpid value.
>
> Cheers,
> Daniel
>
> --
> Daniel-Constantin Mierla --http://www.asipto.com
> http://linkedin.com/in/miconda -- http://twitter.com/miconda
--
Daniel-Constantin Mierla -- http://www.asipto.com
http://linkedin.com/in/miconda -- http://twitter.com/miconda
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20111208/53fcc525/attachment.htm>
More information about the sr-users
mailing list