<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Hi,</p>
    <p>I'm not an expert on ITU-T standards but from what I know, the
      "+" sign is only an indication that an international prefix is
      required and thus cannot be set as a digit in the ISUP number
      related parameters. Being an unsupported character, the sip_i
      module wrote it as 0. Maybe a warning log message would be
      helpful.</p>
    <p>As such you should probably replace the plus sign with the
      international call prefix and only after that set the ISUP
      parameter.</p>
    Regards,
    <pre class="moz-signature" cols="72">Vlad Patrascu
OpenSIPS Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
    <div class="moz-cite-prefix">On 01/15/2018 12:39 PM, Aqs Younas
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAGVOjVURKXMf=dY_ndzXkATQs4GJDYKFWV2kz4S+pP+YRNNnRg@mail.gmail.com">
      <div dir="ltr">Greetings list,
        <div><br>
        </div>
        <div>I am using the sip-i module for conversion between sip to
          sip-i.  I want to set calling party number and called party
          number in e164 format. Below is how my code looks like. </div>
        <div>route{<br>
        </div>
        <div>...</div>
        <div>
          <div>        xlog("Here is Called party number: $rU");</div>
          <div>        xlog("Here is Calling party number: $fU");</div>
          <div>        do_accounting("log","missed");</div>
          <div>        add_isup_part("Initial address");</div>
          <div>        $isup_param(Nature of connection indicators) =
            "0x10";</div>
          <div>        $isup_param(Forward Call Indicators) = "0x6001";</div>
          <div>        $isup_param(Called party number|Nature of address
            indicator) = 4;</div>
          <div>        $isup_param(Called party number|Numbering plan
            indicator) = 1;</div>
          <div>        $isup_param(Called party number|Address signal) =
            $rU;</div>
          <div>        $isup_param(Calling party number|Nature of
            address indicator) = 4;</div>
          <div>        $isup_param(Calling party number|Numbering plan
            indicator) = 1;</div>
          <div>        $isup_param(Calling party number|Screening
            indicator) = 4;</div>
          <div>        $isup_param(Transmission Medium Requirement) =
            "speech";</div>
          <div>        $isup_param(Calling party number|Address signal)
            = $fU;</div>
        </div>
        <div>...</div>
        <div>}</div>
        <div><br>
        </div>
        <div>
          <div>branch_route[per_branch_ops] {</div>
          <div>        xlog("NOA is: $isup_param_str(Called Party
            Number|Nature of address indicator)");</div>
          <div>        xlog("Called party is: $isup_param_str(Called
            Party Number|Address signal)");</div>
          <div>        xlog("NOA is: $isup_param_str(Calling Party
            Number|Nature of address indicator)");</div>
          <div>        xlog("Calling is: $isup_param_str(Calling Party
            Number|Address signal)");</div>
          <div>}</div>
        </div>
        <div><br>
        </div>
        <div>But I see Calling party and Called party number being
          changed from what i had set. </div>
        <div><br>
          This is what I set. </div>
        <div><br>
          <div> Jan 15 10:16:01 gridtele-ug-vpn ./opensips[6911]: Here
            is Called party number: +256723000422</div>
          <div>Jan 15 10:16:01 gridtele-ug-vpn ./opensips[6911]: Here is
            Calling party number: +12064248192<br>
            <br>
            And what appears in ISUP body. You can notice <b>+ </b>changed
            to 0. </div>
          <div><br>
            <div>Jan 15 10:16:01 gridtele-ug-vpn ./opensips[6911]: NOA
              is: international</div>
            <div><b>Jan 15 10:16:01 gridtele-ug-vpn ./opensips[6911]:
                Called party is: 0256723000422</b></div>
            <div>Jan 15 10:16:01 gridtele-ug-vpn ./opensips[6911]: NOA
              is: international</div>
            <div><b>Jan 15 10:16:01 gridtele-ug-vpn ./opensips[6911]:
                Calling is: 012064248192</b></div>
          </div>
        </div>
        <div><br>
        </div>
        <div>Any help/suggestion is much appreciated. </div>
        <div><br>
        </div>
        <div>Thanks. </div>
        <div><br>
        </div>
      </div>
      <div id="DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2"><br>
        <table style="border-top:1px solid #d3d4de">
          <tbody>
            <tr>
              <td style="width:55px;padding-top:13px"><a
href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=icon"
                  target="_blank" moz-do-not-send="true"><img
src="https://ipmcdn.avast.com/images/icons/icon-envelope-tick-round-orange-animated-no-repeat-v1.gif"
                    alt="" style="width: 46px; height: 29px;"
                    moz-do-not-send="true" height="29" width="46"></a></td>
              <td
style="width:470px;padding-top:12px;color:#41424e;font-size:13px;font-family:Arial,Helvetica,sans-serif;line-height:18px">Virus-free.
                <a
href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=link"
                  target="_blank" style="color:#4453ea"
                  moz-do-not-send="true">www.avast.com</a> </td>
            </tr>
          </tbody>
        </table>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>