<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Hello,</p>
    <p>I haven't looked at the source code, but it looks like it needs
      some options to make it work with zero characters.</p>
    <p>Why you had to do changes inside sipt module and not inside
      append_body_part()?</p>
    <p>Are you doing msg_apply_changes before use of sipt_destination()?</p>
    <p>Cheers,<br>
      Daniel<br>
    </p>
    <br>
    <div class="moz-cite-prefix">On 04.04.18 16:19, Sergey Basov wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAFyM+kC2-ecg=9LZHkFkcX9wPNwkcEfbBVD-uOWRg1PWQLvMuw@mail.gmail.com">
      <div dir="ltr">
        <div>
          <div>Hi All.<br>
            <br>
          </div>
          Does nobody have any idea how to avoid this?<br>
          <br>
        </div>
        Thank you.<br>
      </div>
      <div class="gmail_extra"><br clear="all">
        <div>
          <div class="gmail_signature" data-smartmail="gmail_signature">--<br>
            Best regards,<br>
            Sergey Basov                     e-mail: <a
              href="mailto:sergey.v.basov@gmail.com" target="_blank"
              moz-do-not-send="true">sergey.v.basov@gmail.com</a><br>
          </div>
        </div>
        <br>
        <div class="gmail_quote">2018-04-03 17:07 GMT+03:00 Sergey Basov
          <span dir="ltr"><<a href="mailto:sergey.v.basov@gmail.com"
              target="_blank" moz-do-not-send="true">sergey.v.basov@gmail.com</a>></span>:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div dir="ltr">
              <div>
                <div>
                  <div>
                    <div>
                      <div>
                        <div>
                          <div>
                            <div>
                              <div>Hi All!<br>
                                <br>
                              </div>
                              I have some troubles with encoding hex
                              string to use as ISUP part.<br>
                              <br>
                            </div>
                            I have next line:<br>
                            <br>
                            append_body_part("\x01\x10\x48<b><wbr>\x00</b>\x0a<b>\x00</b>\x02\x09\x07\x03\<wbr>x90\x90\x13\x71\x32\x20\x0a\<wbr>x04\x02\x13\x73\x12<b>\x00</b>","<wbr>application/isup;version=itu-<wbr>t92+","signal;handling=<wbr>optional");<br>
                            <br>
                          </div>
                          Problem is in the <b>\x00 </b>kamailio reads
                          this string till first \x00<br>
                          <br>
                        </div>
                        May be there is some workaround?<br>
                        <br>
                      </div>
                      Currently I have added some C code into SIPT
                      module to change values in this pisitions first to
                      00 then make other changes. <br>
                      <br>
                    </div>
                    My current input string is<br>
                    append_body_part("\x01\x10\x48<b><wbr>\x01</b>\x0a<b>\x01</b>\x02\x09\x07\x03\<wbr>x90\x90\x13\x71\x32\x20\x0a\<wbr>x04\x02\x13\x73\x12<b>\x01</b>","<wbr>application/isup;version=itu-<wbr>t92+","signal;handling=<wbr>optional");<br>
                    <br>
                  </div>
                  I first make replacement \x01 to \x00 while executing
                  sipt_destination<br>
                  <br>
                </div>
                May be there is better solution?<br>
                <br>
              </div>
              Thank you.<br clear="all">
              <div>
                <div>
                  <div>
                    <div>
                      <div>
                        <div>
                          <div>
                            <div>
                              <div>
                                <div>
                                  <div>
                                    <div>
                                      <div>
                                        <div
                                          class="m_-5250978348107739699gmail_signature">--<br>
                                          Best regards,<br>
                                          Sergey Basov                  
                                            e-mail: <a
                                            href="mailto:sergey.v.basov@gmail.com"
                                            target="_blank"
                                            moz-do-not-send="true">sergey.v.basov@gmail.com</a><br>
                                        </div>
                                      </div>
                                    </div>
                                  </div>
                                </div>
                              </div>
                            </div>
                          </div>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </blockquote>
        </div>
        <br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Kamailio (SER) - Users Mailing List
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a>
<a class="moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a>
Kamailio Advanced Training - April 16-18, 2018, Berlin - <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
Kamailio World Conference - May 14-16, 2018 - <a class="moz-txt-link-abbreviated" href="http://www.kamailioworld.com">www.kamailioworld.com</a></pre>
  </body>
</html>