<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hello,<br>
    <br>
    indeed there is no guaranteed unique token per SIP packet.<br>
    <br>
    If one wants to identify the transaction, need to look at Call-Id
    and CSeq, plus Via header (the via is relevant when there is a
    forking proxy upstream).<br>
    <br>
    Regarding the checksum, the upd checksum is not available, but
    kamailio can also deal with tcp/tls/sctp. You can build md5 or shaX
    checksums in the configuration file using transformations, see:<br>
    <br>
      -
    <a class="moz-txt-link-freetext" href="http://www.kamailio.org/wiki/cookbooks/devel/transformations#smd5">http://www.kamailio.org/wiki/cookbooks/devel/transformations#smd5</a><br>
    <br>
    For example: $(mb{s.md5}).<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    <div class="moz-cite-prefix">On 19/05/15 07:55, Alex Balashov wrote:<br>
    </div>
    <blockquote
      cite="mid:20150519055548.5419088.68838.61822@evaristesys.com"
      type="cite">
      <div style="width: 100%; font-size: initial; font-family: Calibri,
        'Slate Pro', sans-serif; color: rgb(31, 73, 125); text-align:
        initial; background-color: rgb(255, 255, 255);">‎Hello,</div>
      <div style="width: 100%; font-size: initial; font-family: Calibri,
        'Slate Pro', sans-serif; color: rgb(31, 73, 125); text-align:
        initial; background-color: rgb(255, 255, 255);"><br>
      </div>
      <div style="width: 100%; font-size: initial; font-family: Calibri,
        'Slate Pro', sans-serif; color: rgb(31, 73, 125); text-align:
        initial; background-color: rgb(255, 255, 255);">Various GUIDs
        and other signatures in SIP exist to link branches,
        transactions, and dialogs, but none that are uniquely generated
        per packet. The best you're going to be able to do is to compute
        a checksum, but even that is no guarantee in a REGISTER flow.</div>
      <div style="width: 100%; font-size: initial; font-family: Calibri,
        'Slate Pro', sans-serif; color: rgb(31, 73, 125); text-align:
        initial; background-color: rgb(255, 255, 255);"><span
          style="font-size: initial; text-align: initial; line-height:
          initial;"><br>
        </span></div>
      <div style="width: 100%; font-size: initial; font-family: Calibri,
        'Slate Pro', sans-serif; color: rgb(31, 73, 125); text-align:
        initial; background-color: rgb(255, 255, 255);"><span
          style="font-size: initial; text-align: initial; line-height:
          initial;">--</span></div>
      <div style="font-size: initial; font-family: Calibri, 'Slate Pro',
        sans-serif; color: rgb(31, 73, 125); text-align: initial;
        background-color: rgb(255, 255, 255);">Alex Balashov | Principal | Evariste Systems LLC<br>
        303 Perimeter Center North, Suite 300<br>
        Atlanta, GA 30346<br>
        United States<br>
        <br>
        Tel: +1-800-250-5920 (toll-free) / +1-678-954-0671 (direct)<br>
        Web: <a class="moz-txt-link-freetext" href="http://www.evaristesys.com/">http://www.evaristesys.com/</a>, <a class="moz-txt-link-freetext" href="http://www.csrpswitch.com/">http://www.csrpswitch.com/</a><br>
        <br>
        Sent from my BlackBerry.</div>
      <table style="background-color:white;border-spacing:0px;"
        width="100%">
        <tbody>
          <tr>
            <td colspan="2" style="font-size: initial; text-align:
              initial; background-color: rgb(255, 255, 255);">
              <div style="border-style: solid none none;
                border-top-color: rgb(181, 196, 223); border-top-width:
                1pt; padding: 3pt 0in 0in; font-family: Tahoma, 'BB
                Alpha Sans', 'Slate Pro'; font-size: 10pt;">
                <div><b>From: </b>jay binks</div>
                <div><b>Sent: </b>Tuesday, May 19, 2015 00:47</div>
                <div><b>To: </b>Kamailio (SER) - Users Mailing List</div>
                <div><b>Reply To: </b>Kamailio (SER) - Users Mailing
                  List</div>
                <div><b>Subject: </b>[SR-Users] SIP Packet identifier</div>
              </div>
            </td>
          </tr>
        </tbody>
      </table>
      <br>
      <div id="_originalContent" style="">
        <div dir="ltr">
          <div>
            <div>So im logging lots of information to Syslog to assist
              our helpdesk in diagnosing customer issues.<br>
              <br>
            </div>
            Im seeing LOTS of user agents that re-use the sip Call-ID (
            especially in registers ).<br>
          </div>
          <div>What im wanting to be able to do is link a log message (
            that I log at some point in my dialplan ) to a specific SIP
            packet ( viewed from voipmonitor, HOMER, wireshark ).<br>
            <br>
          </div>
          <div>I cant REALLY see anything in the SIP to uniquely
            identify a packet, however if kamailio provided the UDP
            packet checksum in a pseudo variable then we could combine
            that with the sip call-id to hopefully do what im after.<br>
            <br>
          </div>
          <div>does anyone else have any ideas about how do what im
            after ?<br>
          </div>
          <div>
            <div>
              <div>
                <div>
                  <div><br>
                    -- <br>
                    <div class="gmail_signature">Sincerely<br>
                      <br>
                      Jay</div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
        <br>
        <!--end of _originalContent --></div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.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-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a>
Kamailio World Conference, May 27-29, 2015
Berlin, Germany - <a class="moz-txt-link-freetext" href="http://www.kamailioworld.com">http://www.kamailioworld.com</a></pre>
  </body>
</html>