<div dir="ltr"><div><span style="font-size:12.8000001907349px">Yesterday my reply got blocked by the list.... trying again!</span></div><div><span style="font-size:12.8000001907349px"><br></span></div><span style="font-size:12.8000001907349px">After a quick look I noticed you are listening only the loopback(127.0.0.1) interface. I think you should listen to some real interface. This should have the same IP you </span><span style="font-size:12.8000001907349px">are configuring your Ekiga to register to.</span></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Oct 30, 2015 at 8:56 AM, Rodrigo Pimenta Carvalho <span dir="ltr">&lt;<a href="mailto:pimenta@inatel.br" target="_blank">pimenta@inatel.br</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Alexander.<br>
<br>
I&#39;m back to the office.<br>
<br>
In case you still want to see some of the SIP messages  in a kind of OpenSIPS log, run:<br>
<br>
sudo /etc/init.d/opensips start<br>
<br>
And I have used the following lines in my config file:<br>
<br>
-----------------------------------------------------------------------<br>
####### Global Parameters #########<br>
<br>
debug=4<br>
log_stderror=yes<br>
log_facility=LOG_LOCAL1<br>
<span class=""><br>
fork=yes<br>
children=4<br>
<br>
/* uncomment the following lines to enable debugging */<br>
#debug=6<br>
#fork=no<br>
#log_stderror=yes<br>
<br>
<br>
</span>listen=udp:eth0:5060   # CUSTOMIZE ME<br>
<br>
listen=tcp:eth0:5060   # CUSTOMIZE ME<br>
listen=tls:eth0:5061   # CUSTOMIZE ME<br>
---------------------------------------------------------------------------<br>
<br>
And in the file opensipsctlrc I have:<br>
<br>
-----------------<br>
STARTOPTIONS=&quot; -E -f /usr/local/opensips_proxy/etc/opensips/my_opensips_configFile.cfg&quot;<br>
----------------<br>
<br>
<br>
Maybe you also should consider (for debugging purpose) (I&#39;m using Ubuntu 14.04 LTI):<br>
<br>
<br>
1 - cd /usr/local/src/1.8/packaging/debian/<br>
2 - cp -Rf opensips.init /etc/init.d/opensips<br>
3 - chmod +x /etc/init.d/opensips<br>
4 - vi /etc/init.d/opensips<br>
5 - Edit the line of DAEMON:<br>
     DAEMON = /usr/local/opensips_proxy/sbin/opensips<br>
<br>
<br>
6 - Find the string OPTIONS<br>
7 - In such line with OPTIONS, add: &quot;-f &quot; in the end of the line.<br>
     EX: ... $GROUP -f /usr/local/opensips_proxy/etc/opensips/my_opensips_configFile...&quot;<br>
8 - Save the file and close it.<br>
<br>
<br>
9 - cd /usr/local/src/1.8/packaging/debian/<br>
10 - cp opensips.default /etc/default/opensips<br>
11 - vi /etc/default/opensips<br>
12 - RUN_OPENSIPS=yes<br>
     #User to run as<br>
     USER=root<br>
<br>
     GROUP=root<br>
<br>
     S_MEMORY=128<br>
<br>
13 - vi /etc/rsyslog.conf<br>
14 - add: local1.*                      -/var/log/opensips.log<br>
<br>
<br>
<br>
<br>
Hopefully something here should be useful for you.<br>
<br>
P.S.:  I got all instructions from : <a href="https://www.youtube.com/watch?v=YNHc8TQq85A" rel="noreferrer" target="_blank">https://www.youtube.com/watch?v=YNHc8TQq85A</a><br>
          I &#39;m also a beginner with these things.<br>
<br>
About wireshark, try to see some short tutorial from Youtube too. What about?<br>
<span class=""><br>
RODRIGO PIMENTA CARVALHO<br>
Inatel Competence Center<br>
Software<br>
Ph: <a href="tel:%2B55%2035%203471%209200" value="+553534719200">+55 35 3471 9200</a> RAMAL 979<br>
<br>
________________________________________<br>
De: <a href="mailto:users-bounces@lists.opensips.org">users-bounces@lists.opensips.org</a> &lt;<a href="mailto:users-bounces@lists.opensips.org">users-bounces@lists.opensips.org</a>&gt; em nome de Alexander Shukaev &lt;<a href="mailto:opensips@Alexander.Shukaev.name">opensips@Alexander.Shukaev.name</a>&gt;<br>
</span>Enviado: quinta-feira, 29 de outubro de 2015 22:22<br>
<span class="im HOEnZb">Para: OpenSIPS users mailling list<br>
Assunto: Re: [OpenSIPS-Users] Bare Bones<br>
<br>
</span><div class="HOEnZb"><div class="h5">So far I&#39;ve made some good progress and I would like to share it.  Big<br>
thanks to Travis for pointing me into the right direction.<br>
<br>
It turns out that I had<br>
<br>
STORE_PLAINTEXT_PW=0<br>
<br>
which is a natural setting for production I guess.  Hence,<br>
<br>
modparam(&quot;auth_db&quot;, &quot;calculate_ha1&quot;, yes)<br>
modparam(&quot;auth_db&quot;, &quot;password_column&quot;, &quot;password&quot;)<br>
<br>
is no longer valid.  It should rather be<br>
<br>
modparam(&quot;auth_db&quot;, &quot;calculate_ha1&quot;, no)<br>
modparam(&quot;auth_db&quot;, &quot;password_column&quot;, &quot;ha1&quot;)<br>
<br>
Don&#39;t forget to stop &#39;opensips&#39;, then<br>
<br>
sudo opensipsdbctl drop<br>
sudo opensipsdbctl create<br>
<br>
and again<br>
<br>
sudo opensipsctl add 1234 1234<br>
sudo opensipsctl add 5678 5678<br>
<br>
and start &#39;opensips&#39; again.  Then it really starts to work with the<br>
registration in Ekiga.  Finally!<br>
<br>
Next, I moved to testing the communication between those accounts.  To<br>
do this, in addition to Ekiga I installed Linphone.  So, through Ekiga,<br>
I register 1234 and add 5678 to contacts, while through Linphone, I<br>
register 5678 and add 1234 to contacts.  It turns out that there is<br>
another strange problem now.  Within Linphone I can both IM and call<br>
from 5678 to 1234 (Ekiga) and in Ekiga I can read those IMs and accept<br>
calls accordingly, while within Ekiga I can neither IM nor call from<br>
1234 to 5678 (Linphone) as for IMs, for example, I get sometimes either<br>
&quot;NOTICE: Could not send message: Unauthorised&quot; or  &quot;NOTICE: Could not<br>
send message: Forbidden&quot;.  I attach the Wireshark log for the<br>
&quot;Forbidden&quot; case.<br>
<br>
Regards,<br>
Alexander<br>
<br>
On 30.10.2015 00:18, Alexander Shukaev wrote:<br>
&gt;&gt; It doesn&#39;t look like there&#39;s a password specified for the user in your<br>
&gt;&gt; DB<br>
&gt;&gt;<br>
&gt;&gt; Did you configure you UAC to use one?<br>
&gt;<br>
&gt; Could it be because it&#39;s hashed?  I&#39;m under impression that it&#39;s<br>
&gt; stored in &#39;ha1&#39; and &#39;ha1b&#39; fields in the encoded form due to<br>
&gt;<br>
&gt; modparam(&quot;auth_db&quot;, &quot;calculate_ha1&quot;, yes)<br>
&gt; modparam(&quot;auth_db&quot;, &quot;password_column&quot;, &quot;password&quot;)<br>
&gt; modparam(&quot;auth_db|uri&quot;, &quot;db_url&quot;,<br>
&gt; &quot;postgres://opensips:$@localhost/opensips&quot;) # CUSTOMIZE ME<br>
&gt; modparam(&quot;auth_db&quot;, &quot;load_credentials&quot;, &quot;&quot;)<br>
&gt;<br>
&gt;&gt; Also, did you use the opensipsdbctl create to build your user?<br>
&gt;<br>
&gt; Of course, I&#39;m pretty sure it was:<br>
&gt;<br>
&gt; sudo opensipsdbctl create<br>
&gt; sudo opensipsctl add 1234 1234<br>
&gt; sudo opensipsctl add 5678 5678<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Users mailing list<br>
&gt; <a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
&gt; <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</div></div></blockquote></div><br></div>