<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hello,<br>
    <br>
    On 12/7/11 10:03 AM, Pavel Segeč wrote:
    <blockquote
      cite="mid:4edf2bee.8203b40a.2667.ffffff6bSMTPIN_ADDED@mx.google.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <meta name="Generator" content="Microsoft Word 12 (filtered
        medium)">
      <style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        color:black;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"Predformátované HTML Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.PredformtovanHTMLChar
        {mso-style-name:"Predformátované HTML Char";
        mso-style-priority:99;
        mso-style-link:"Predformátované HTML";
        font-family:Consolas;
        color:black;}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
      <div class="WordSection1">
        <p class="MsoNormal"><span style="color:#1F497D">HI,<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D">Thank you. Just
            as I sent my previous mail I look into kamctl command syntax
            and I found <o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D">-- command
            'rpid' - manage Remote-Party-ID (RPID)<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D"> rpid add
            &lt;username&gt; &lt;rpid&gt; ......... add rpid for a user
            (*)<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D"> rpid rm
            &lt;username&gt; ................. set rpid to NULL for a
            user (*)<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D"> rpid show
            &lt;username&gt; ............... show rpid of a user<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span style="color: rgb(31, 73, 125);">How
            this work? </span></p>
      </div>
    </blockquote>
    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.<br>
    <br>
    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:<br>
    <br>
    <a class="moz-txt-link-freetext" href="http://kamailio.org/docs/modules/stable/modules_k/siputils.html">http://kamailio.org/docs/modules/stable/modules_k/siputils.html</a><br>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    <br>
    <blockquote
      cite="mid:4edf2bee.8203b40a.2667.ffffff6bSMTPIN_ADDED@mx.google.com"
      type="cite">
      <div class="WordSection1">
        <p class="MsoNormal"><span style="color:#1F497D"><o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D">pavel<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
        <div style="border:none;border-left:solid blue 1.5pt;padding:0cm
          0cm 0cm 4.0pt">
          <div>
            <div style="border:none;border-top:solid #B5C4DF
              1.0pt;padding:3.0pt 0cm 0cm 0cm">
              <p class="MsoNormal"><b><span
style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:windowtext"
                    lang="SK">From:</span></b><span
style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:windowtext"
                  lang="SK"> Daniel-Constantin Mierla
                  [<a class="moz-txt-link-freetext" href="mailto:miconda@gmail.com">mailto:miconda@gmail.com</a>] <br>
                  <b>Sent:</b> Tuesday, December 06, 2011 11:14 PM<br>
                  <b>To:</b> SIP Router - Kamailio (OpenSER) and SIP
                  Express Router (SER) - Users Mailing List<br>
                  <b>Cc:</b> Pavel Segeč<br>
                  <b>Subject:</b> Re: [SR-Users] Remote Party ID<o:p></o:p></span></p>
            </div>
          </div>
          <p class="MsoNormal"><o:p> </o:p></p>
          <p class="MsoNormal">Hello,<br>
            <br>
            On 12/6/11 2:50 PM, Pavel Segeč wrote: <o:p></o:p></p>
          <p class="MsoNormal">Hi,<o:p></o:p></p>
          <p class="MsoNormal"> <o:p></o:p></p>
          <p class="MsoNormal">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?<o:p></o:p></p>
          <p class="MsoNormal"><span
              style="font-size:12.0pt;font-family:&quot;Times New
              Roman&quot;,&quot;serif&quot;">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'.<br>
              <br>
              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:<br>
              <br>
              <a moz-do-not-send="true"
href="http://kamailio.org/docs/modules/stable/modules_k/auth_db.html#id2528175">http://kamailio.org/docs/modules/stable/modules_k/auth_db.html#id2528175</a><br>
              <br>
              Using this option, practically you use same db query that
              loads the user password for authentication to fetch the
              rpid value.<br>
              <br>
              Cheers,<br>
              Daniel<br>
              <br>
              <o:p></o:p></span></p>
          <pre>-- <o:p></o:p></pre>
          <pre>Daniel-Constantin Mierla -- <a moz-do-not-send="true" href="http://www.asipto.com">http://www.asipto.com</a><o:p></o:p></pre>
          <pre><a moz-do-not-send="true" href="http://linkedin.com/in/miconda">http://linkedin.com/in/miconda</a> -- <a moz-do-not-send="true" href="http://twitter.com/miconda">http://twitter.com/miconda</a><o:p></o:p></pre>
        </div>
      </div>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla -- <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a>
<a class="moz-txt-link-freetext" href="http://linkedin.com/in/miconda">http://linkedin.com/in/miconda</a> -- <a class="moz-txt-link-freetext" href="http://twitter.com/miconda">http://twitter.com/miconda</a></pre>
  </body>
</html>