<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"><<a href="mailto:pimenta@inatel.br" target="_blank">pimenta@inatel.br</a>></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'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=" -E -f /usr/local/opensips_proxy/etc/opensips/my_opensips_configFile.cfg"<br>
----------------<br>
<br>
<br>
Maybe you also should consider (for debugging purpose) (I'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: "-f " in the end of the line.<br>
EX: ... $GROUP -f /usr/local/opensips_proxy/etc/opensips/my_opensips_configFile..."<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 '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> <<a href="mailto:users-bounces@lists.opensips.org">users-bounces@lists.opensips.org</a>> em nome de Alexander Shukaev <<a href="mailto:opensips@Alexander.Shukaev.name">opensips@Alexander.Shukaev.name</a>><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'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("auth_db", "calculate_ha1", yes)<br>
modparam("auth_db", "password_column", "password")<br>
<br>
is no longer valid. It should rather be<br>
<br>
modparam("auth_db", "calculate_ha1", no)<br>
modparam("auth_db", "password_column", "ha1")<br>
<br>
Don't forget to stop 'opensips', 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 'opensips' 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>
"NOTICE: Could not send message: Unauthorised" or "NOTICE: Could not<br>
send message: Forbidden". I attach the Wireshark log for the<br>
"Forbidden" case.<br>
<br>
Regards,<br>
Alexander<br>
<br>
On 30.10.2015 00:18, Alexander Shukaev wrote:<br>
>> It doesn't look like there's a password specified for the user in your<br>
>> DB<br>
>><br>
>> Did you configure you UAC to use one?<br>
><br>
> Could it be because it's hashed? I'm under impression that it's<br>
> stored in 'ha1' and 'ha1b' fields in the encoded form due to<br>
><br>
> modparam("auth_db", "calculate_ha1", yes)<br>
> modparam("auth_db", "password_column", "password")<br>
> modparam("auth_db|uri", "db_url",<br>
> "postgres://opensips:$@localhost/opensips") # CUSTOMIZE ME<br>
> modparam("auth_db", "load_credentials", "")<br>
><br>
>> Also, did you use the opensipsdbctl create to build your user?<br>
><br>
> Of course, I'm pretty sure it was:<br>
><br>
> sudo opensipsdbctl create<br>
> sudo opensipsctl add 1234 1234<br>
> sudo opensipsctl add 5678 5678<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>
<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>