<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <tt>Hi Abdul,<br>
      <br>
      have you checked the tutorial on HEP switching ?<br>
         
      <a class="moz-txt-link-freetext" href="https://blog.opensips.org/2017/10/12/opensips-as-hep-proxyswitch/">https://blog.opensips.org/2017/10/12/opensips-as-hep-proxyswitch/</a><br>
      <br>
      Maybe you are using the wrong routes in the script.<br>
      <br>
      Regards,<br>
    </tt>
    <pre class="moz-signature" cols="72">Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  <a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a>
OpenSIPS Bootcamp 2018
  <a class="moz-txt-link-freetext" href="http://opensips.org/training/OpenSIPS_Bootcamp_2018/">http://opensips.org/training/OpenSIPS_Bootcamp_2018/</a>
</pre>
    <div class="moz-cite-prefix">On 08/09/2018 04:40 PM, Abdul Basit
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAGQG5MZ2pBQ4AA8mTFE8BOZZ6+FwkXT9Jr8X+XSxbDnEVCBr9w@mail.gmail.com">
      <div dir="ltr">Hi Alain,
        <div><br>
        </div>
        <div>Thank you for your suggestion.</div>
        <div>I will update cfg and get back with results.<br>
        </div>
        <div><br>
        </div>
        <div>Do i need to upgrade opensips to 2.4 as well?</div>
        <div> </div>
        <div> <br clear="all">
          <div>
            <div dir="ltr" class="gmail_signature"
              data-smartmail="gmail_signature">
              <div><font size="2"><span
                    style="font-family:verdana,sans-serif"><span
                      style="color:rgb(39,78,19)">--<br>
                      regards,</span></span></font></div>
              <font size="2"><span
                  style="font-family:verdana,sans-serif"><span
                    style="color:rgb(39,78,19)"><br>
                    abdul basit | p: +92 32 1416 4196 | o: +92 30 0841
                    1445</span></span></font></div>
          </div>
          <br>
        </div>
      </div>
      <br>
      <div class="gmail_quote">
        <div dir="ltr">On Thu, 9 Aug 2018 at 17:35, Alain Bieuzent <<a
            href="mailto:alain.bieuzent@free.fr" moz-do-not-send="true">alain.bieuzent@free.fr</a>>
          wrote:<br>
        </div>
        <blockquote class="gmail_quote" style="margin:0 0 0
          .8ex;border-left:1px #ccc solid;padding-left:1ex">
          <div link="blue" vlink="purple" lang="FR">
            <div class="m_-6406812661969391577WordSection1">
              <p class="MsoNormal"><span lang="EN-US">Hi Abdul,</span></p>
              <p class="MsoNormal"><span lang="EN-US"> </span></p>
              <p class="MsoNormal"><span lang="EN-US">try to add this
                  part of code at the begining of your routing code to
                  add more logs :</span></p>
              <p class="MsoNormal"><span lang="EN-US"> </span></p>
              <p class="MsoNormal"><span lang="EN-US">if(!sipmsg_validate(""))</span></p>
              <p class="MsoNormal"><span lang="EN-US">    {</span></p>
              <p class="MsoNormal"><span lang="EN-US">       
                  xlog("L_WARN", "Dropping mal formed Messages Retcode :
                  $retcode ");</span></p>
              <p class="MsoNormal"><span lang="EN-US">       
                  xlog("L_WARN","--- error from
                  [$si:$sp]\n+++++\n$mb\n++++\n");</span></p>
              <p class="MsoNormal"><span lang="EN-US">        exit;</span></p>
              <p class="MsoNormal"><span lang="EN-US">    }</span></p>
              <p class="MsoNormal"><span lang="EN-US"> </span></p>
              <p class="MsoNormal"><span lang="EN-US">then you can find
                  the retcode value there : </span><a
href="http://www.opensips.org/html/docs/modules/2.4.x/sipmsgops.html#func_sipmsg_validate"
                  target="_blank" moz-do-not-send="true"><span
                    style="font-family:"Courier
                    New";color:#954f72">http://www.opensips.org/html/docs/modules/2.4.x/sipmsgops.html#func_sipmsg_validate</span></a></p>
              <p class="MsoNormal"><span lang="EN-US"> </span></p>
              <p class="MsoNormal"><span> </span></p>
              <div style="border:none;border-top:solid #b5c4df
                1.0pt;padding:3.0pt 0cm 0cm 0cm">
                <p class="MsoNormal"><b><span
                      style="font-size:12.0pt;color:black">De : </span></b><span
                    style="font-size:12.0pt;color:black">Users <<a
                      href="mailto:users-bounces@lists.opensips.org"
                      target="_blank" moz-do-not-send="true">users-bounces@lists.opensips.org</a>>
                    au nom de Abdul Basit <<a
                      href="mailto:basit.engg@gmail.com" target="_blank"
                      moz-do-not-send="true">basit.engg@gmail.com</a>><br>
                    <b>Répondre à : </b>OpenSIPS users mailling list
                    <<a href="mailto:users@lists.opensips.org"
                      target="_blank" moz-do-not-send="true">users@lists.opensips.org</a>><br>
                    <b>Date : </b>jeudi 9 août 2018 à 14:18<br>
                    <b>À : </b>OpenSIPS users mailling list <<a
                      href="mailto:users@lists.opensips.org"
                      target="_blank" moz-do-not-send="true">users@lists.opensips.org</a>><br>
                    <b>Objet : </b>[OpenSIPS-Users] OpenSIPS Unable to
                    parse msg received from</span></p>
              </div>
              <div>
                <p class="MsoNormal"> </p>
              </div>
              <div>
                <div>
                  <p class="MsoNormal"><span style="color:#274e13">Hi
                      Team,</span></p>
                </div>
                <div>
                  <p class="MsoNormal"> </p>
                </div>
                <div>
                  <p class="MsoNormal"><span style="color:#274e13">I am
                      using opensips as hep proxy to distribute traffic
                      to multiple homer noes for trace capturing.</span></p>
                </div>
                <div>
                  <p class="MsoNormal"> </p>
                </div>
                <div>
                  <p class="MsoNormal"><span
                      style="font-family:"Courier New"">#
                      opensips -V</span></p>
                </div>
                <div>
                  <p class="MsoNormal"><span
                      style="font-family:"Courier New"">version:
                      opensips 2.3.2 (x86_64/linux)</span></p>
                </div>
                <div>
                  <p class="MsoNormal"><span
                      style="font-family:"Courier New"">flags:
                      STATS: On, DISABLE_NAGLE, USE_MCAST, SHM_MMAP,
                      PKG_MALLOC, F_MALLOC, FAST_LOCK-ADAPTIVE_WAIT</span></p>
                </div>
                <div>
                  <p class="MsoNormal"><span
                      style="font-family:"Courier New"">ADAPTIVE_WAIT_LOOPS=1024,
                      MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16,
                      MAX_URI_SIZE 1024, BUF_SIZE 65535</span></p>
                </div>
                <div>
                  <p class="MsoNormal"><span
                      style="font-family:"Courier New"">poll
                      method support: poll, epoll_lt, epoll_et,
                      sigio_rt, select.</span></p>
                </div>
                <div>
                  <p class="MsoNormal"><span
                      style="font-family:"Courier New"">main.c
                      compiled on  with gcc 6.3.0</span></p>
                </div>
                <div>
                  <p class="MsoNormal"> </p>
                </div>
                <div>
                  <p class="MsoNormal"><span style="color:#274e13">Host
                      operating system is</span></p>
                </div>
                <div>
                  <div>
                    <p class="MsoNormal"> </p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span
                        style="font-family:"Courier New"">#
                        lsb_release -a</span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span
                        style="font-family:"Courier New"">No
                        LSB modules are available.</span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span
                        style="font-family:"Courier New"">Distributor
                        ID: Debian</span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span
                        style="font-family:"Courier New"">Description: 
                          Debian GNU/Linux 9.3 (stretch)</span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span
                        style="font-family:"Courier New"">Release: 
                              9.3</span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span
                        style="font-family:"Courier New"">Codename: 
                             stretch</span></p>
                  </div>
                </div>
                <div>
                  <p class="MsoNormal"> </p>
                </div>
                <div>
                  <p class="MsoNormal"><span style="color:#274e13">I am
                      continuously getting error on opensips logs. I
                      have changed CLI as yyyyyyy and IPs as x.x.x.x </span></p>
                </div>
                <div>
                  <p class="MsoNormal"> </p>
                </div>
                <div>
                  <div>
                    <p class="MsoNormal"><span
                        style="font-family:"Courier New"">Aug 
                        9 13:47:00 homer-proxy /usr/sbin/opensips[6845]:
                        ERROR:core:receive_msg: Unable to parse msg
                        received from [x.x.x.x:39169]</span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span
                        style="font-family:"Courier New"">Aug 
                        9 13:47:07 homer-proxy /usr/sbin/opensips[6847]:
                        ERROR:core:parse_msg:
                        message=<ER,INFO,SUBSCRIBE,UPDATE#015#012Expires:
                        360#015#012User-Agent:
                        Audiocodes-Sip-Gateway-MP-114
                        FXS/v.5.20A.043.005#015#012Content-Length:
                        0#015#012#015#012></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span
                        style="font-family:"Courier New"">Aug 
                        9 13:47:07 homer-proxy /usr/sbin/opensips[6847]:
                        ERROR:core:receive_msg: Unable to parse msg
                        received from [x.x.x.x:53693]</span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span
                        style="font-family:"Courier New"">Aug 
                        9 13:47:07 homer-proxy /usr/sbin/opensips[6845]:
                        ERROR:core:parse_msg:
                        message=<ER,INFO,SUBSCRIBE,UPDATE#015#012Expires:
                        360#015#012User-Agent:
                        Audiocodes-Sip-Gateway-MP-114
                        FXS/v.5.20A.043.005#015#012Content-Length:
                        0#015#012#015#012></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span
                        style="font-family:"Courier New"">Aug 
                        9 13:47:07 homer-proxy /usr/sbin/opensips[6845]:
                        ERROR:core:receive_msg: Unable to parse msg
                        received from [x.x.x.x:33715]</span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span
                        style="font-family:"Courier New"">Aug 
                        9 13:47:50 homer-proxy /usr/sbin/opensips[6845]:
                        ERROR:core:parse_msg:
                        message=<E,NOTIFY,PRACK,REFER,INFO,SUBSCRIBE,UPDATE#015#012Expires:
                        360#015#012User-Agent:
                        Audiocodes-Sip-Gateway-MP-114
                        FXS/v.5.20A.043.005#015#012Content-Length:
                        0#015#012#015#012></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span
                        style="font-family:"Courier New"">Aug 
                        9 13:47:50 homer-proxy /usr/sbin/opensips[6845]:
                        ERROR:core:receive_msg: Unable to parse msg
                        received from [x.x.x.x:33715]</span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span
                        style="font-family:"Courier New"">Aug 
                        9 13:48:15 homer-proxy /usr/sbin/opensips[6848]:
                        ERROR:core:parse_method: invalid character =</span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span
                        style="font-family:"Courier New"">Aug 
                        9 13:48:15 homer-proxy /usr/sbin/opensips[6848]:
                        ERROR:core:parse_msg: message=<a=rtpmap:0
                        PCMU/8000#015#012a=rtpmap:18
                        G729/8000#015#012a=fmtp:18
                        annexb=no#015#012a=rtpmap:97
                        iLBC/8000#015#012a=fmtp:97
                        mode=30#015#012a=rtpmap:110
                        speex/8000#015#012a=rtpmap:117
                        speex/16000#015#012a=rtpmap:9
                        G722/8000#015#012a=rtpmap:4
                        G723/8000#015#012a=fmtp:4
                        annexa=no#015#012a=rtpmap:101
                        telephone-event/8000#015#012a=fmtp:101
0-16#015#012a=ptime:20#015#012a=sendrecv#015#012a=nortpproxy:yes#015#012></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span
                        style="font-family:"Courier New"">Aug 
                        9 13:48:15 homer-proxy /usr/sbin/opensips[6848]:
                        ERROR:core:receive_msg: Unable to parse msg
                        received from [x.x.x.x:5060]</span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span
                        style="font-family:"Courier New"">Aug 
                        9 13:48:24 homer-proxy /usr/sbin/opensips[6846]:
                        ERROR:core:parse_msg:
                        message=<RACK,REFER,INFO,SUBSCRIBE,UPDATE#015#012Expires:
                        360#015#012User-Agent:
                        Audiocodes-Sip-Gateway-MP-118
                        FXS/v.5.20A.043.005#015#012Content-Length:
                        0#015#012#015#012></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span
                        style="font-family:"Courier New"">Aug 
                        9 13:48:39 homer-proxy /usr/sbin/opensips[6845]:
                        ERROR:core:receive_msg: Unable to parse msg
                        received from [x.x.x.x:37979]</span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span
                        style="font-family:"Courier New"">Aug 
                        9 13:48:40 homer-proxy /usr/sbin/opensips[6845]:
                        ERROR:core:parse_msg:
                        message=<TIFY,PRACK,REFER,INFO,SUBSCRIBE,UPDATE#015#012Expires:
                        360#015#012User-Agent:
                        Audiocodes-Sip-Gateway-MP-118
                        FXS/v.5.20A.043.005#015#012Content-Length:
                        0#015#012#015#012></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span
                        style="font-family:"Courier New"">Aug 
                        9 13:48:40 homer-proxy /usr/sbin/opensips[6845]:
                        ERROR:core:receive_msg: Unable to parse msg
                        received from [x.x.x.x:37979]</span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span
                        style="font-family:"Courier New"">Aug 
                        9 13:48:44 homer-proxy /usr/sbin/opensips[6845]:
                        ERROR:core:parse_method: invalid character :</span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span
                        style="font-family:"Courier New"">Aug 
                        9 13:48:44 homer-proxy /usr/sbin/opensips[6845]:
                        ERROR:core:parse_msg: message=<Allow:
REGISTER,OPTIONS,INVITE,ACK,CANCEL,BYE,NOTIFY,PRACK,REFER,INFO,SUBSCRIBE,UPDATE#015#012Expires:
                        360#015#012User-Agent:
                        Audiocodes-Sip-Gateway-MP-118
                        FXS/v.5.20A.043.005#015#012Content-Length:
                        0#015#012#015#012></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span
                        style="font-family:"Courier New"">Aug 
                        9 13:48:44 homer-proxy /usr/sbin/opensips[6845]:
                        ERROR:core:receive_msg: Unable to parse msg
                        received from [x.x.x.x:46187]</span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span
                        style="font-family:"Courier New"">Aug 
                        9 13:48:44 homer-proxy /usr/sbin/opensips[6845]:
                        ERROR:core:parse_method: invalid character :</span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span
                        style="font-family:"Courier New"">Aug 
                        9 13:48:44 homer-proxy /usr/sbin/opensips[6845]:
                        ERROR:core:parse_msg: message=<Allow:
REGISTER,OPTIONS,INVITE,ACK,CANCEL,BYE,NOTIFY,PRACK,REFER,INFO,SUBSCRIBE,UPDATE#015#012Expires:
                        360#015#012User-Agent:
                        Audiocodes-Sip-Gateway-MP-118
                        FXS/v.5.20A.043.005#015#012Content-Length:
                        0#015#012#015#012></span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span
                        style="font-family:"Courier New"">Aug 
                        9 13:48:44 homer-proxy /usr/sbin/opensips[6845]:
                        ERROR:core:receive_msg: Unable to parse msg
                        received from [x.x.x.x:46187]</span></p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span
                        style="font-family:"Courier New"">Aug 
                        9 13:49:37 homer-proxy /usr/sbin/opensips[6845]:
                        ERROR:core:parse_msg: message=<ntact: <<a
                          href="mailto:sip%3Ayyyyyyyy@192.168.1.17"
                          target="_blank" moz-do-not-send="true">sip:yyyyyyyy@192.168.1.17</a>;transport=tcp>;expires=360#015#012Supported:
em,timer,replaces,path,resource-priority#015#012Allow:
REGISTER,OPTIONS,INVITE,ACK,CANCEL,BYE,NOTIFY,PRACK,REFER,INFO,SUBSCRIBE,UPDATE#015#012Expires:
                        360#015#012User-Agent:
                        Audiocodes-Sip-Gateway-MP-118
                        FXS/v.5.20A.043.005#015#012Content-Length:
                        0#015#012#015#012REGISTER <a class="moz-txt-link-freetext" href="sip:x.x.x.x">sip:x.x.x.x</a>
                        SIP/2.0#015#012Via: SIP/2.0/TCP
                        192.168.1.17;branch=z9hG4bKac1134765850;alias#015#012Max-Forwards:
                        70#015#012From:
                        <a class="moz-txt-link-rfc2396E" href="sip:yyyyyyyy@x.x.x.x"><sip:yyyyyyyy@x.x.x.x></a>;tag=1c1134760571#015#012To:
                        <a class="moz-txt-link-rfc2396E" href="sip:yyyyyyyy@x.x.x.x"><sip:yyyyyyyy@x.x.x.x></a>#015#012Call-ID: <a
href="http://943343231120001012@192.168.1.17#015%23012CSeq"
                          target="_blank" moz-do-not-send="true">943343231120001012@192.168.1.17#015#012CSeq</a>:
                        50295 REGISTER#015#012Contact: <<a
                          href="mailto:sip%3Ayyyyyyyy@192.168.1.17"
                          target="_blank" moz-do-not-send="true">sip:yyyyyyyy@192.168.1.17</a>;transport=tcp>;expires=360#015#012Supported:
em,timer,replaces,path,resource-priority#015#012Allow:
REGISTER,OPTIONS,INVITE,ACK,CANCEL,BYE,NOTIFY,PRACK,REFER,INFO,SUBSCRIBE,UPDATE#015#012Expires:
                        360#015#012User-Agent:
                        Audiocodes-Sip-Gateway-MP-118
                        FXS/v.5.20A.043.005#015#012Content-Length:
                        0#015#012#015#012REGISTER <a class="moz-txt-link-freetext" href="sip:x.x.x.x">sip:x.x.x.x</a>
                        SIP/2.0#015#012Via: SIP/2.0/TCP
                        192.168.1.17;branch=z9hG4bKac1134889896;alias#015#012Max-Forwards:
                        70#015#012From:
                        <a class="moz-txt-link-rfc2396E" href="sip:yyyyyyyy@x.x.x.x"><sip:yyyyyyyy@x.x.x.x></a>;tag=1c1134884593#015#012To:
                        <a class="moz-txt-link-rfc2396E" href="sip:zzzzzzzz@x.x.x.x"><sip:zzzzzzzz@x.x.x.x></a>#015#012Call-ID: <a
href="http://943363361120001012@192.168.1.17#015%23012CSeq"
                          target="_blank" moz-do-not-send="true">943363361120001012@192.168.1.17#015#012CSeq</a>:
                        50295 REGISTER#015#012Contact: <<a
                          href="mailto:sip%3Ayyyyyyyy@192.168.1.17"
                          target="_blank" moz-do-not-send="true">sip:yyyyyyyy@192.168.1.17</a>;transport=tcp>;expires=360#015#012Supported:
em,timer,replaces,path,resource-priority#015#012Allow:
REGISTER,OPTIONS,INVITE,ACK,CANCEL,BYE,NOTIFY,PRACK,REFER,INFO,SUBSCRIBE,UPDATE#015#012Expires:
                        360#015#012User-Agent:
                        Audiocodes-Sip-Gateway-MP-118
                        FXS/v.5.20A.043.0></span></p>
                  </div>
                </div>
                <div>
                  <p class="MsoNormal"> </p>
                </div>
                <div>
                  <p class="MsoNormal"><span style="color:#274e13">Opensip
                      is simply distributing the received hep traffic to
                      the homer server in the pool and not doing any
                      processing by itself.</span></p>
                </div>
                <p class="MsoNormal"><span style="color:#274e13">Can you
                    suggest whats the cause of these errors and how can
                    I correct them?</span></p>
                <div>
                  <p class="MsoNormal"><span style="color:#274e13">Where
                      should I look for correction? </span></p>
                  <div>
                    <p class="MsoNormal"> </p>
                  </div>
                  <div>
                    <p class="MsoNormal"><span style="color:#274e13">Thank
                        you in advance.</span></p>
                    <div>
                      <p class="MsoNormal"><br clear="all">
                      </p>
                      <div>
                        <div>
                          <div>
                            <p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:#274e13">--<br>
                                regards,</span></p>
                          </div>
                          <p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:#274e13"><br>
                              abdul basit | p: +92 32 1416 4196 | o: +92
                              30 0841 1445</span></p>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
              <p class="MsoNormal">_______________________________________________
                Users mailing list <a
                  href="mailto:Users@lists.opensips.org" target="_blank"
                  moz-do-not-send="true">Users@lists.opensips.org</a> <a
href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users"
                  target="_blank" moz-do-not-send="true">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
              </p>
            </div>
          </div>
          _______________________________________________<br>
          Users mailing list<br>
          <a href="mailto:Users@lists.opensips.org" target="_blank"
            moz-do-not-send="true">Users@lists.opensips.org</a><br>
          <a
            href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users"
            rel="noreferrer" target="_blank" moz-do-not-send="true">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
        </blockquote>
      </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>