<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hello,<br>
    </p>
    <p>I managed to figure out the issue and maybe it will help other
      people.<br>
      <br>
      Basically what i did is to avoid to challenge the kamailio request
      by adding this line in route[AUTH]<br>
      <br>
    </p>
    #!ifdef WITH_IMC<br>
    #prevent digest authentication for messages sent by IMC via
    outbound_proxy, where in our case the outbound_proxy is the same
    server<br>
    #<span style="color: #d4d4d4;"> </span>modparam("imc",
    "outbound_proxy", "sip:sip-test.quintetto.it:15006;transport=tcp")<br>
    #
    <p>if(is_method("MESSAGE") && $si == $Ri)<br>
          return;<br>
      #!endif<br>
    </p>
    <br>
    Just to be sure I would like to ask  if this is an effective
    solution or there is a more canonical way to solve the issue.<br>
    <br>
    Many Thanks in advance.<br>
    <br>
    Bye<br>
    <div class="moz-signature"><font color="#118311">
        <hr>
        <p style="font-family:sans-serif;font-size:14px">
          Ing. Giovanni Iamonte<br>
          Developments and technologies area<br>
          Quintetto Srl<br>
          Via Monte Navale, 1<br>
          10015 - Ivrea (TO)<br>
           mobile: +39 393 9196310<br>
           tel: +39 0165 1845290<br>
           e-mail: <a class="moz-txt-link-abbreviated" href="mailto:giovanni.iamonte@quintetto.it">giovanni.iamonte@quintetto.it</a><br>
           web: <a class="moz-txt-link-abbreviated" href="http://www.quintetto.it">www.quintetto.it</a><br>
        </p>
      </font></div>
    <div class="moz-cite-prefix">On 17/10/22 20:36, Giovanni Iamonte
      wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:da376349-3544-842f-95a5-4919e07c9466@quintetto.it">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <p>Thanks for you reply.</p>
      <p>Very basic configuration for the kamailio.cfg file, I have
        taken it from the repository and I have added what they
        suggested in the IMC module.</p>
      <p>No errors in the log file.</p>
      <p>I cannot change the release, anyway I will take in
        considerations you suggestion and try also with the next
        versions.<br>
      </p>
      <p>Bye<br>
      </p>
      <div class="moz-signature"><font color="#118311">
          <hr>
          <p style="font-family:sans-serif;font-size:14px"> Ing.
            Giovanni Iamonte<br>
            Developments and technologies area<br>
            Quintetto Srl<br>
            Via Monte Navale, 1<br>
            10015 - Ivrea (TO)<br>
             mobile: +39 393 9196310<br>
             tel: +39 0165 1845290<br>
             e-mail: <a class="moz-txt-link-abbreviated
              moz-txt-link-freetext"
              href="mailto:giovanni.iamonte@quintetto.it"
              moz-do-not-send="true">giovanni.iamonte@quintetto.it</a><br>
             web: <a class="moz-txt-link-abbreviated"
              href="http://www.quintetto.it" moz-do-not-send="true">www.quintetto.it</a><br>
          </p>
        </font></div>
      <div class="moz-cite-prefix">On 17/10/22 17:25, Henning Westerholt
        wrote:<br>
      </div>
      <blockquote type="cite"
cite="mid:AM6PR05MB54095D9EE16C5DA43F085897BF299@AM6PR05MB5409.eurprd05.prod.outlook.com">
        <meta http-equiv="Content-Type" content="text/html;
          charset=UTF-8">
        <meta name="Generator" content="Microsoft Word 15 (filtered
          medium)">
        <!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]-->
        <style>@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;}p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}span.E-MailFormatvorlage20
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}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="mso-fareast-language:EN-US"
              lang="EN-GB">Hello,<o:p></o:p></span></p>
          <p class="MsoNormal"><span style="mso-fareast-language:EN-US"
              lang="EN-GB"><o:p> </o:p></span></p>
          <p class="MsoNormal"><span style="mso-fareast-language:EN-US"
              lang="EN-GB">my first suggestion would be to use a support
              release, e.g. 5.5.x or 5.6.x. These releases contains also
              some improvements/bug fixes related to the IMC module.<o:p></o:p></span></p>
          <p class="MsoNormal"><span style="mso-fareast-language:EN-US"
              lang="EN-GB"><o:p> </o:p></span></p>
          <p class="MsoNormal"><span style="mso-fareast-language:EN-US"
              lang="EN-GB">Not an expert in the IMC module by myself,
              but it looks like a wrong configuration or some mistake in
              the routing script if the SIP message is not routed
              correctly. Maybe somebody else can comment on that as
              well.<o:p></o:p></span></p>
          <p class="MsoNormal"><span style="mso-fareast-language:EN-US"
              lang="EN-GB"><o:p> </o:p></span></p>
          <p class="MsoNormal"><span style="mso-fareast-language:EN-US"
              lang="EN-GB">Do you see any errors in the kamailio log
              files?<o:p></o:p></span></p>
          <p class="MsoNormal"><span style="mso-fareast-language:EN-US"
              lang="EN-GB"><o:p> </o:p></span></p>
          <p class="MsoNormal"><span style="mso-fareast-language:EN-US"
              lang="EN-GB">Cheers,<o:p></o:p></span></p>
          <p class="MsoNormal"><span style="mso-fareast-language:EN-US"
              lang="EN-GB"><o:p> </o:p></span></p>
          <p class="MsoNormal"><span style="mso-fareast-language:EN-US"
              lang="EN-GB">Henning<o:p></o:p></span></p>
          <p class="MsoNormal"><span style="mso-fareast-language:EN-US"
              lang="EN-GB"><o:p> </o:p></span></p>
          <div>
            <div style="border:none;border-top:solid #E1E1E1
              1.0pt;padding:3.0pt 0cm 0cm 0cm">
              <p class="MsoNormal" style="margin-left:35.4pt"><b>From:</b>
                sr-users <a class="moz-txt-link-rfc2396E"
                  href="mailto:sr-users-bounces@lists.kamailio.org"
                  moz-do-not-send="true"><sr-users-bounces@lists.kamailio.org></a>
                <b>On Behalf Of </b>Giovanni Iamonte<br>
                <b>Sent:</b> Monday, October 17, 2022 4:46 PM<br>
                <b>To:</b> <a class="moz-txt-link-abbreviated
                  moz-txt-link-freetext"
                  href="mailto:sr-users@lists.kamailio.org"
                  moz-do-not-send="true">sr-users@lists.kamailio.org</a><br>
                <b>Subject:</b> [SR-Users] IMC module<o:p></o:p></p>
            </div>
          </div>
          <p class="MsoNormal" style="margin-left:35.4pt"><o:p> </o:p></p>
          <p style="margin-left:35.4pt">HI,<o:p></o:p></p>
          <p style="margin-left:35.4pt">I am facing a problem related to
            the IMC module.<br>
            <br>
            I have installed kamailio 5.2.x and I tried to list the
            members of a room-qsipchat.<br>
            <br>
            In my test environment the kamailio.cfg file it is very
            basic, the kamailio server listen on<br>
            tcp=192.168.100.192:15006 <br>
            <br>
            the client run on a PC with IP address 192.168.100.156<br>
            <br>
            the imc outbound_proxy is set<br>
            modparam("imc", "db_url", DBURL)<br>
            modparam("imc", "imc_cmd_start_char", "#")<br>
            modparam("imc", "outbound_proxy", "<a
              href="sip:sip-test.quintetto.it:15006;transport=tcp"
              moz-do-not-send="true" class="moz-txt-link-freetext">sip:sip-test.quintetto.it:15006;transport=tcp</a>")<br>
            <br>
            The client start by sending a #join message to kamailio and
            looking the log file I can see that the room-qsipchat has
            been create, and also I received the message 200 OK.<br>
            <br>
            By using the tcpdump I can see the join message from the
            Client to kamailio server and the reply from kamailio to the
            client.<br>
            <br>
            When I send the #list message to the room-qsipchat , I
            expecting to receive the message relate to room's members
            and the 200 OK message.<br>
            <br>
            When I tcp dumping I saw the following messages<o:p></o:p></p>
          <p style="margin-left:35.4pt"><o:p> </o:p></p>
          <p style="margin-left:35.4pt"><br>
********************************************************************<br>
            Request from client to list the members - from client to
            server<o:p></o:p></p>
          <p style="margin-left:35.4pt">********************************************************************<o:p></o:p></p>
          <p style="margin-left:35.4pt">TX 538 bytes Request msg
            MESSAGE/cseq=57652 (tdta0x77b26460a8) to TCP
            192.168.100.192:15006:<br>
                MESSAGE <a
              href="mailto:sip:room-qsipchat@sip-test.quintetto.it"
              moz-do-not-send="true" class="moz-txt-link-freetext">sip:room-qsipchat@sip-test.quintetto.it</a>
            SIP/2.0<br>
                Via: SIP/2.0/TCP
192.168.100.156:48129;rport;branch=z9hG4bKPjRzgOBgY6vfKZ8Fh8GA4CWheCO840Xzud;alias<br>
                Max-Forwards: 70<br>
                From: <a
              href="mailto:sip:quintetto00@sip-test.quintetto.it"
              moz-do-not-send="true"><sip:quintetto00@sip-test.quintetto.it></a>;tag=1is.Ng6ZKJmCT1uAJ9WuJhe3hiQysj9f<br>
                To: <a
              href="mailto:sip:room-qsipchat@sip-test.quintetto.it"
              moz-do-not-send="true"><sip:room-qsipchat@sip-test.quintetto.it></a><br>
                Call-ID: GwOQMLFfIq7o7jvF4OQlJ-jBb2OBaAKY<br>
                CSeq: 57652 MESSAGE<br>
                Accept: text/plain, application/im-iscomposing+xml<br>
                Route: <<a
              href="sip:sip-test.quintetto.it:15006;transport=tcp;lr"
              moz-do-not-send="true" class="moz-txt-link-freetext">sip:sip-test.quintetto.it:15006;transport=tcp;lr</a>><br>
                Content-Type: text/plain<br>
                Content-Length:     5<br>
                <br>
                #list<o:p></o:p></p>
          <p style="margin-left:35.4pt"><br>
            <br>
********************************************************************    <br>
            The server ask for the authentication - from server to
            client<o:p></o:p></p>
          <p style="margin-left:35.4pt">********************************************************************  
            <o:p></o:p></p>
          <p style="margin-left:35.4pt">2022-10-17 15:45:25.837
            4700-10610/it.quintetto.qsipchat D/pjlib(pjsua_1): RX 574
            bytes Response msg 407/MESSAGE/cseq=57652
            (rdata0x77b3337330) from TCP 192.168.100.192:15006:<br>
                SIP/2.0 407 Proxy Authentication Required<br>
                Via: SIP/2.0/TCP
192.168.100.156:48129;rport=48129;branch=z9hG4bKPjRzgOBgY6vfKZ8Fh8GA4CWheCO840Xzud;alias;received=192.168.100.156<br>
                From: <a
              href="mailto:sip:quintetto00@sip-test.quintetto.it"
              moz-do-not-send="true"><sip:quintetto00@sip-test.quintetto.it></a>;tag=1is.Ng6ZKJmCT1uAJ9WuJhe3hiQysj9f<br>
                To: <a
              href="mailto:sip:room-qsipchat@sip-test.quintetto.it"
              moz-do-not-send="true"><sip:room-qsipchat@sip-test.quintetto.it></a>;tag=1e5fbdd4b14eff95c400342f4634da91.e417<br>
                Call-ID: GwOQMLFfIq7o7jvF4OQlJ-jBb2OBaAKY<br>
                CSeq: 57652 MESSAGE<br>
                Proxy-Authenticate: Digest
            realm="sip-test.quintetto.it",
            nonce="Y01doWNNXHVEyRtiAyN28xJdMjNIG8Ju"<br>
                Server: kamailio (5.2.8 (x86_64/linux))<br>
                Content-Length: 0<br>
             <o:p></o:p></p>
          <p style="margin-left:35.4pt">    <br>
*********************************************************************<br>
            The client send the authenticated request -  from client to
            server<o:p></o:p></p>
          <p style="margin-left:35.4pt">******************************************************************** 
            <o:p></o:p></p>
          <p style="margin-left:35.4pt">TX 755 bytes Request msg
            MESSAGE/cseq=57653 (tdta0x77b26460a8) to TCP
            192.168.100.192:15006:<br>
                MESSAGE <a
              href="mailto:sip:room-qsipchat@sip-test.quintetto.it"
              moz-do-not-send="true" class="moz-txt-link-freetext">sip:room-qsipchat@sip-test.quintetto.it</a>
            SIP/2.0<br>
                Via: SIP/2.0/TCP
192.168.100.156:48129;rport;branch=z9hG4bKPjj6uuy25r0kKlnICHKQWEaIweOex-sNyq;alias<br>
                Max-Forwards: 70<br>
                From: <a
              href="mailto:sip:quintetto00@sip-test.quintetto.it"
              moz-do-not-send="true"><sip:quintetto00@sip-test.quintetto.it></a>;tag=1is.Ng6ZKJmCT1uAJ9WuJhe3hiQysj9f<br>
                To: <a
              href="mailto:sip:room-qsipchat@sip-test.quintetto.it"
              moz-do-not-send="true"><sip:room-qsipchat@sip-test.quintetto.it></a><br>
                Call-ID: GwOQMLFfIq7o7jvF4OQlJ-jBb2OBaAKY<br>
                CSeq: 57653 MESSAGE<br>
                Accept: text/plain, application/im-iscomposing+xml<br>
                Route: <<a
              href="sip:sip-test.quintetto.it:15006;transport=tcp;lr"
              moz-do-not-send="true" class="moz-txt-link-freetext">sip:sip-test.quintetto.it:15006;transport=tcp;lr</a>><br>
                Proxy-Authorization: Digest username="quintetto00",
            realm="sip-test.quintetto.it",
            nonce="Y01doWNNXHVEyRtiAyN28xJdMjNIG8Ju", uri=<a
              href="mailto:sip:room-qsipchat@sip-test.quintetto.it"
              moz-do-not-send="true">"sip:room-qsipchat@sip-test.quintetto.it"</a>,
            response="d495ec20cb1be8f1b605d4e5b1a4c357"<br>
                Content-Type: text/plain<br>
                Content-Length:     5<br>
                <br>
                #list <br>
                <o:p></o:p></p>
          <p style="margin-left:35.4pt"><br>
**************************************************************************<br>
            The server send the 200 OK message - from server to client<o:p></o:p></p>
          <p style="margin-left:35.4pt">********************************************************************<o:p></o:p></p>
          <p style="margin-left:35.4pt">RX 447 bytes Response msg
            200/MESSAGE/cseq=57653 (rdata0x77b3337330) from TCP
            192.168.100.192:15006:<br>
                SIP/2.0 200 ok<br>
                Via: SIP/2.0/TCP
192.168.100.156:48129;rport=48129;branch=z9hG4bKPjj6uuy25r0kKlnICHKQWEaIweOex-sNyq;alias;received=192.168.100.156<br>
                From: <a
              href="mailto:sip:quintetto00@sip-test.quintetto.it"
              moz-do-not-send="true"><sip:quintetto00@sip-test.quintetto.it></a>;tag=1is.Ng6ZKJmCT1uAJ9WuJhe3hiQysj9f<br>
                To: <a
              href="mailto:sip:room-qsipchat@sip-test.quintetto.it"
              moz-do-not-send="true"><sip:room-qsipchat@sip-test.quintetto.it></a>;tag=1e5fbdd4b14eff95c400342f4634da91.365f<br>
                Call-ID: GwOQMLFfIq7o7jvF4OQlJ-jBb2OBaAKY<br>
                CSeq: 57653 MESSAGE<br>
                Server: kamailio (5.2.8 (x86_64/linux))<br>
                Content-Length: 0<br>
                <o:p></o:p></p>
          <p style="margin-left:35.4pt">    <br>
*********************************************************************************<br>
            Till here everything is OK.<br>
            <br>
            But regarding the members when a TCP dumping I saw a message
            with the room's members <br>
            that go from the kamailio server to the kamailio server <o:p></o:p></p>
          <p style="margin-left:35.4pt">*********************************************************************************<br>
            <br>
            MESSAGE <a
              href="mailto:sip:quintetto00@sip-test.quintetto.it"
              moz-do-not-send="true" class="moz-txt-link-freetext">sip:quintetto00@sip-test.quintetto.it</a>
            SIP/2.0<br>
                Via: SIP/2.0/TCP
192.168.100.192:15006;branch=z9hG4bKf20a.be253b92000000000000000000000000.0<br>
                To: <a
              href="mailto:sip:quintetto00@sip-test.quintetto.it"
              moz-do-not-send="true"><sip:quintetto00@sip-test.quintetto.it></a><br>
                From: <a
              href="mailto:sip:room-qsipchat@sip-test.quintetto.it"
              moz-do-not-send="true"><sip:room-qsipchat@sip-test.quintetto.it></a>;tag=03e4c67b0f95c0aeb1f633479b4aa5cd-72f2<br>
                CSeq: 10 MESSAGE<br>
                Call-ID: <a
              href="mailto:37db44aa523ea24a-6567@192.168.100.192"
              moz-do-not-send="true" class="moz-txt-link-freetext">37db44aa523ea24a-6567@192.168.100.192</a><br>
                Max-Forwards:.70<br>
                Content-Length: 47<br>
                User-Agent: kamailio (5.2.8 (x86_64/linux))<br>
                Content-Type: text/plain<br>
            <br>
                Members:<br>
                *sip:quintetto00@sip-test.quintetto.it<o:p></o:p></p>
          <p style="margin-left:35.4pt"><br>
**************************************************************************************<br>
            a reply from the kamailio server to the kamailio server,
            with an authenticated request<o:p></o:p></p>
          <p style="margin-left:35.4pt">**************************************************************************************<o:p></o:p></p>
          <p style="margin-left:35.4pt">SIP/2.0.407.Proxy
            Authentication.Required<br>
            Via: SIP/2.0/TCP
192.168.100.192:15006;branch=z9hG4bKf20a.be253b92000000000000000000000000.0<br>
            To: <a href="mailto:sip:quintetto00@sip-test.quintetto.it"
              moz-do-not-send="true"><sip:quintetto00@sip-test.quintetto.it></a>;tag=1e5fbdd4b14eff95c400342f4634da91.cfc3<br>
            From: <a
              href="mailto:sip:room-qsipchat@sip-test.quintetto.it"
              moz-do-not-send="true"><sip:room-qsipchat@sip-test.quintetto.it></a>;tag=03e4c67b0f95c0aeb1f633479b4aa5cd-72f2<br>
            CSeq: 10 MESSAGE<br>
            Call-ID: <a
              href="mailto:37db44aa523ea24a-6567@192.168.100.192"
              moz-do-not-send="true" class="moz-txt-link-freetext">37db44aa523ea24a-6567@192.168.100.192</a><br>
            Proxy-Authenticate: Digest realm="sip-test.quintetto.it",
            nonce="Y01fQmNNXhbsHdM1THmENyJn1MH/VD/8"<br>
            Server: kamailio (5.2.8 (x86_64/linux))<br>
            Content-Length:.0<o:p></o:p></p>
          <p style="margin-left:35.4pt"><br>
            <br>
**************************************************************************************<br>
            bottom of line the outbound_proxy request for an
            authenticated request, but kamailio do not reply to this
            request.<br>
            <br>
            Could you please point me in the right direction?<o:p></o:p></p>
          <p style="margin-left:35.4pt"><o:p> </o:p></p>
          <p style="margin-left:35.4pt">Thanks a lot for any help.<o:p></o:p></p>
          <p style="margin-left:35.4pt"><o:p> </o:p></p>
          <p style="margin-left:35.4pt">Bye<o:p></o:p></p>
          <div>
            <p class="MsoNormal" style="margin-left:35.4pt">-- <span
                style="color:#118311"><o:p></o:p></span></p>
            <div class="MsoNormal"
              style="margin-left:35.4pt;text-align:center"
              align="center"> <span style="color:#118311">
                <hr width="100%" size="2" align="center"> </span></div>
            <p style="margin-left:35.4pt"><span
style="font-size:10.5pt;font-family:"Arial",sans-serif;color:#118311">Ing.
                Giovanni Iamonte<br>
                Developments and technologies area<br>
                Quintetto Srl<br>
                Via Monte Navale, 1<br>
                10015 - Ivrea (TO)<br>
              </span><span
                style="font-size:10.5pt;font-family:Symbol;color:#118311">(</span><span
style="font-size:10.5pt;font-family:"Arial",sans-serif;color:#118311">
                mobile: +39 393 9196310<br>
              </span><span
                style="font-size:10.5pt;font-family:Symbol;color:#118311">(</span><span
style="font-size:10.5pt;font-family:"Arial",sans-serif;color:#118311">
                tel: +39 0165 1845290<br>
              </span><span
                style="font-size:10.5pt;font-family:Symbol;color:#118311">+</span><span
style="font-size:10.5pt;font-family:"Arial",sans-serif;color:#118311">
                e-mail: <a href="mailto:giovanni.iamonte@quintetto.it"
                  moz-do-not-send="true" class="moz-txt-link-freetext">giovanni.iamonte@quintetto.it</a><br>
              </span><span
                style="font-size:10.5pt;font-family:Symbol;color:#118311">[</span><span
style="font-size:10.5pt;font-family:"Arial",sans-serif;color:#118311">
                web: <a href="http://www.quintetto.it"
                  moz-do-not-send="true">www.quintetto.it</a><o:p></o:p></span></p>
          </div>
        </div>
      </blockquote>
      <br>
      <fieldset class="moz-mime-attachment-header"></fieldset>
      <pre class="moz-quote-pre" wrap="">__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a>
Important: keep the mailing list in the recipients, do not reply only to the sender!
Edit mailing list options or unsubscribe:
<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>
  </body>
</html>