<div dir="ltr"><div dir="ltr">Hi,<div><br><div>I'm answering as the author of libosip & libeXosip ;)</div><div><br></div><div>Linphone, in your case is based on eXosip.</div><div>Linphone removed eXosip2 years ago and thus, you use</div><div>a very old linphone and very old eXosip2 version..</div><div><br></div><div><br></div><div>Anyway, whatever versions of eXosip2, it needs to be used that way:<br></div></div><div><br></div><div><div class="gmail-line" style="font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)">ctx = <a class="gmail-code" href="http://www.antisip.com/doc/exosip2/group__eXosip2__conf.html#ga8ebd76492c77690fee6f3781abcfd692" style="color:rgb(70,101,162);text-decoration-line:none">eXosip_malloc</a>();</div><div class="gmail-line" style="font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"><span class="gmail-keywordflow" style="color:rgb(224,128,0)">if</span> (ctx==NULL)</div><div class="gmail-line" style="font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)">  <span class="gmail-keywordflow" style="color:rgb(224,128,0)">return</span> -1;</div><div class="gmail-line" style="font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"></div><div class="gmail-line" style="font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)">i=<a class="gmail-code" href="http://www.antisip.com/doc/exosip2/group__eXosip2__conf.html#gaf0d9eb7def600c00166c06185b7f6fb3" style="color:rgb(70,101,162);text-decoration-line:none">eXosip_init</a>(ctx);</div><div class="gmail-line" style="font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"><span class="gmail-keywordflow" style="color:rgb(224,128,0)">if</span> (i!=0)</div><div class="gmail-line" style="font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)">  <span class="gmail-keywordflow" style="color:rgb(224,128,0)">return</span> -1;</div></div><div><br></div><div><div class="gmail-line" style="font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)">i = <a class="gmail-code" href="http://www.antisip.com/doc/exosip2/group__eXosip2__conf.html#ga07d7c2b336f7145fe55a8d481fccc44a" style="color:rgb(70,101,162);text-decoration-line:none">eXosip_listen_addr</a> (ctx, IPPROTO_UDP, NULL, port, AF_INET, 0);</div><div class="gmail-line" style="font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"><span class="gmail-keywordflow" style="color:rgb(224,128,0)">if</span> (i!=0)</div><div class="gmail-line" style="font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)">  {</div><div class="gmail-line" style="font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)">    <a class="gmail-code" href="http://www.antisip.com/doc/exosip2/group__eXosip2__conf.html#gacfd12dbf24afb5182dd9b7269ea41cb0" style="color:rgb(70,101,162);text-decoration-line:none">eXosip_quit</a>(ctx);</div><div class="gmail-line" style="font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)">    fprintf (stderr, <span class="gmail-stringliteral" style="color:rgb(0,32,128)">"could not initialize transport layer\n"</span>);</div><div class="gmail-line" style="font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)">    <span class="gmail-keywordflow" style="color:rgb(224,128,0)">return</span> -1;</div><div class="gmail-line" style="font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)">  }</div></div><div><br></div><div>If <a class="gmail-code" href="http://www.antisip.com/doc/exosip2/group__eXosip2__conf.html#ga07d7c2b336f7145fe55a8d481fccc44a" style="color:rgb(70,101,162);text-decoration-line:none">eXosip_listen_addr</a> is failing nothing can be done with eXosip2, and "

create transport layer first" logs</div><div>will happen for some API which can't be used in that state.</div><div><br></div><div><a href="http://www.antisip.com/doc/exosip2/group__howto__initialize.html">http://www.antisip.com/doc/exosip2/group__howto__initialize.html</a>  <br></div><div><br></div><div>If the socket can't be created, the above API will fail. So a usual scenario is to have the port already used.</div><div><br></div><div>A simple way is to choose another port when this is happening and I guess this old version of linphone wasn't</div><div>doing that:</div><div><br></div><div><div><div class="gmail-line" style="font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)">i = <a class="gmail-code" href="http://www.antisip.com/doc/exosip2/group__eXosip2__conf.html#ga07d7c2b336f7145fe55a8d481fccc44a" style="color:rgb(70,101,162);text-decoration-line:none">eXosip_listen_addr</a> (ctx, IPPROTO_UDP, NULL, port, AF_INET, 0);</div><div class="gmail-line" style="font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)">if (i!=0)</div><div class="gmail-line" style="font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)">   i = <a class="gmail-code" href="http://www.antisip.com/doc/exosip2/group__eXosip2__conf.html#ga07d7c2b336f7145fe55a8d481fccc44a" style="color:rgb(70,101,162);text-decoration-line:none">eXosip_listen_addr</a> (ctx, IPPROTO_UDP, NULL, 0, AF_INET, 0);</div><div class="gmail-line" style="font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)">
</div><div class="gmail-line" style="font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)"><span class="gmail-keywordflow" style="color:rgb(224,128,0)">if</span> (i!=0)</div><div class="gmail-line" style="font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)">  {</div><div class="gmail-line" style="font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)">    <a class="gmail-code" href="http://www.antisip.com/doc/exosip2/group__eXosip2__conf.html#gacfd12dbf24afb5182dd9b7269ea41cb0" style="color:rgb(70,101,162);text-decoration-line:none">eXosip_quit</a>(ctx);</div><div class="gmail-line" style="font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)">    fprintf (stderr, <span class="gmail-stringliteral" style="color:rgb(0,32,128)">"could not initialize transport layer\n"</span>);</div><div class="gmail-line" style="font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)">    <span class="gmail-keywordflow" style="color:rgb(224,128,0)">return</span> -1;</div><div class="gmail-line" style="font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:13px;line-height:1;font-family:monospace,fixed;min-height:13px;white-space:pre-wrap;padding-left:53px;padding-bottom:0px;margin:0px;color:rgb(0,0,0)">  }</div></div><div></div></div><div><br></div><div>Regards</div><div>Aymeric</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le lun. 5 oct. 2020 à 12:28, David Villasmil <<a href="mailto:david.villasmil.work@gmail.com">david.villasmil.work@gmail.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto">Not an expert here. But many moons ago, I was playing with pjsip and got the same. You must create the socket first, make sure the ip assigned is correct. </div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, 5 Oct 2020 at 06:47, Pavithra Mohanraja <<a href="mailto:pavimohan3004@gmail.com" target="_blank">pavimohan3004@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi Jan,<div>Sorry for the delayed response. I guess the issue is because of UDP transport, which my kamailio is not accepting. Because  the same scenario is reproduced when I change my pjsip configurations to udp instead of tcp. But linphone gives me the following error if I tried to connect using tcp.</div><div><b>ortp-error-wrong state: create transport layer first<br>ortp-error-wrong state: create transport layer first<br>ortp-error-eXosip: missing via header</b><br></div><div>Am I missing something really important? Please let me know. Thanks in advance.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Sep 30, 2020 at 5:33 PM Jan Rozhon <<a href="mailto:jan.rozhon@gmail.com" target="_blank">jan.rozhon@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br><br>  <br><br>    <br><br>  <br><br>  <div><br><br>    <p>Hmm, nothing obviously wrong. Is there anything in Kamailio's<br><br>      logs? Are you sure REGISTER reaches kamailio? Can you run tcpdump<br><br>      or even better sngrep on kamailio server?</p><br><br>    <p>Regards, Jan<br><br><br>    </p><br><br>    <p><br><br><br>    </p><br><br>    <div>On 30. 09. 20 13:28, Pavithra Mohanraja<br><br>      wrote:<br><br><br>    </div><br><br>    <blockquote type="cite"><br><br>      <br><br>      <div dir="ltr">Hi Jan,<br><br><br>        <div>I have also tried as u suggested with reg_proxy only with<br><br>          sip server name, could not obtain any positive changes. I have<br><br>          also attached the debug logs, please have a look and suggest<br><br>          for any changes. Thanks in advance. </div><br><br>      </div><br><br>      <br><br><br>      <div class="gmail_quote"><br><br>        <div dir="ltr" class="gmail_attr">On Wed, Sep 30, 2020 at 4:42<br><br>          PM Jan Rozhon <<a href="mailto:jan.rozhon@gmail.com" target="_blank">jan.rozhon@gmail.com</a>> wrote:<br><br><br>        </div><br><br>        <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br><br>          <div><br><br>            <p>Sorry, I am not that good in linphone configuration file<br><br>              so I may be wrong, but it seems to me that reg_proxy<br><br>              should only contain uri of the server, not the user part.<br><br>              Moreover, I have definitely more options there but not<br><br>              using it as an IMS.</p><br><br>            <p>Mine is a bit more wordy:</p><br><br>            <p>[proxy_3]<br><br><br>              reg_proxy=<a><sip:sip.server.here;transport=udp></a><br><br><br>              reg_identity=<a>sip:420123456789@sip.server.here</a><br><br><br>              realm=<a href="http://sip.linphone.org" target="_blank">sip.linphone.org</a><br><br><br>              contact_parameters=message-expires=604800<br><br><br>              quality_reporting_collector=<a>sip:voip-metrics@sip.linphone.org;transport=tls</a><br><br><br>              quality_reporting_enabled=1<br><br><br>              quality_reporting_interval=180<br><br><br>              reg_expires=600<br><br><br>              reg_sendregister=1<br><br><br>              publish=1<br><br><br>              avpf=-1<br><br><br>              avpf_rr_interval=1<br><br><br>              dial_escape_plus=0<br><br><br>              privacy=32768<br><br><br>              push_notification_allowed=0<br><br><br>              idkey=proxy_config_voVF8eoXq46cJLs<br><br><br>              publish_expires=600<br><br><br>              nat_policy_ref=bUwFfNPHt40-miQ</p><br><br>            <p>Could you send the REGISTER message not being accepted?</p><br><br>            <p>Regards, Jan<br><br><br>            </p><br><br>            <div>On 30. 09. 20 12:54, Pavithra Mohanraja wrote:<br><br><br>            </div><br><br>            <blockquote type="cite"><br><br>              <div dir="ltr">Hi Jan,<br><br><br>                <div>I'm trying to connect linphone to my kamailio ims.<br><br>                  Only register request is sent from Linphone and no<br><br>                  acknowledgement  is received. I'm attaching you my<br><br>                  linphonerc file. Please advise if any correction is<br><br>                  required in the configuration. </div><br><br>              </div><br><br>              <br><br><br>              <div class="gmail_quote"><br><br>                <div dir="ltr" class="gmail_attr">On Wed, Sep 30, 2020<br><br>                  at 3:50 PM Jan Rozhon <<a href="mailto:jan.rozhon@gmail.com" target="_blank">jan.rozhon@gmail.com</a>><br><br>                  wrote:<br><br><br>                </div><br><br>                <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br><br>                  <div><br><br>                    <p>Hey, I have no problems with linphone (desktop<br><br>                      and mobile).</p><br><br>                    <p>Could you be more specific on what you set up<br><br>                      and/or what the communication looks like when<br><br>                      using linphone?</p><br><br>                    <p>Regards, Jan<br><br><br>                    </p><br><br>                    <div>Dne 30.09.2020 v 11:55 Pavithra Mohanraja<br><br>                      napsal(a):<br><br><br>                    </div><br><br>                    <blockquote type="cite"><br><br>                      <div dir="ltr">Hi,<br><br><br>                        <div>I am a newbie to sipclient Linphone. I know<br><br>                          this issue is not related with kamailio.Yet If<br><br>                          anybody have tried it before , kindly provide<br><br>                          me with some links or procedures to be<br><br>                          followed for call registration and<br><br>                          connectivity with kamailio since in my case,<br><br>                          request is going but response is not coming<br><br>                          back resulting in timeout issue.</div><br><br>                        <div><br><br><br>                        </div><br><br>                        <div>This happens only in linphone.If i do the<br><br>                          samething in PJSIP/zoiper, call<br><br>                          registration and call establishment happens<br><br>                          perfectly fine.</div><br><br>                        <div><br><br><br>                        </div><br><br>                        <div>Kindly help.</div><br><br>                        <div><br><br><br>                        </div><br><br>                        <div>Thanks,</div><br><br>                        <div>Pavithra</div><br><br>                      </div><br><br>                      <br><br><br>                      <fieldset></fieldset><br><br>                      <pre style="font-family:monospace">_______________________________________________<br><br>Kamailio (SER) - Users Mailing List<br><br><a href="mailto:sr-users@lists.kamailio.org" style="font-family:monospace" target="_blank">sr-users@lists.kamailio.org</a><br><br><a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" style="font-family:monospace" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br><br></pre><br><br>                    </blockquote><br><br>                  </div><br><br>                  _______________________________________________<br><br><br>                  Kamailio (SER) - Users Mailing List<br><br><br>                  <a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br><br><br>                  <a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br><br><br>                </blockquote><br><br>              </div><br><br>              <br><br><br>              <fieldset></fieldset><br><br>              <pre style="font-family:monospace">_______________________________________________<br><br>Kamailio (SER) - Users Mailing List<br><br><a href="mailto:sr-users@lists.kamailio.org" style="font-family:monospace" target="_blank">sr-users@lists.kamailio.org</a><br><br><a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" style="font-family:monospace" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br><br></pre><br><br>            </blockquote><br><br>          </div><br><br>          _______________________________________________<br><br><br>          Kamailio (SER) - Users Mailing List<br><br><br>          <a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br><br><br>          <a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br><br><br>        </blockquote><br><br>      </div><br><br>      <br><br><br>      <fieldset></fieldset><br><br>      <pre style="font-family:monospace">_______________________________________________<br><br>Kamailio (SER) - Users Mailing List<br><br><a href="mailto:sr-users@lists.kamailio.org" style="font-family:monospace" target="_blank">sr-users@lists.kamailio.org</a><br><br><a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" style="font-family:monospace" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br><br></pre><br><br>    </blockquote><br><br>  </div><br><br><br><br>_______________________________________________<br><br><br>Kamailio (SER) - Users Mailing List<br><br><br><a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br><br><br><a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br><br><br></blockquote></div><br><br>_______________________________________________<br><br>Kamailio (SER) - Users Mailing List<br><br><a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br><br><a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br><br></blockquote></div></div>-- <br><div dir="ltr"><div dir="ltr"><div>Regards,</div><div><br></div>David Villasmil<div>email: <a href="mailto:david.villasmil.work@gmail.com" target="_blank">david.villasmil.work@gmail.com</a></div><div>phone: +34669448337</div></div></div>
_______________________________________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><img src="http://sip.antisip.com/am48.png">Antisip - <a href="http://www.antisip.com" target="_blank">http://www.antisip.com</a><br></div></div>