[SR-Users] RPID Question

Daniel-Constantin Mierla miconda at gmail.com
Fri May 28 11:50:33 CEST 2010



On 5/27/10 9:56 PM, dotnetdub wrote:
> Hi All,
>
> Kamailio 3
>
> I currently store a default RPID in our database. We allow some 
> asterisk customers to send us the RPID.
>
> I want to store the RPID sent by the customer on the radius record.
>
> We test:
>
>   if!(is_present_hf("Remote-Party-ID")) {
>                 #RPID Not Set by Asterisk - Will set now from DB
>                 append_rpid_hf();
> }
>
> Do I use textops to get the RPID that the Asterisk sends and then 
> overwrite what we read from the database?

yes, to delete the received RPID use remove_hf("Remote-Party-ID") from 
textops.

Cheers,
Daniel

>
> $avp(s:rpid) = ?
>
> Not really sure how to extract the RPID from the SIP message sent from 
> the asterisk.
>
> TIA.
> Stephen.
>
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>    

-- 
Daniel-Constantin Mierla
Kamailio (OpenSER) Advanced Training
Miami, Fl, USA - June 21-23, 2010
http://www.asipto.com/index.php/kamailio-advanced-training/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20100528/70fd9f14/attachment.htm>


More information about the sr-users mailing list