<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hello,</p>
<p>ok, good that solved it! Let us know if any other issues pop up
when you do testing or works ok, because not many providers
deployed it so far and feedback was pretty minimal.</p>
<p>Cheers,<br>
Daniel<br>
</p>
<div class="moz-cite-prefix">On 12.05.21 12:09, David Villasmil
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAFGRPVrE9Sf=QaYUPJqBccPHNsg63T6NsnavArFgwNg=Xn58jw@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">Thanks Daniel,
<div><br>
</div>
<div>I was 100% sure i'd done an "ldconfig", but it seems I did
not. That worked:</div>
<div><br>
</div>
<div><font face="monospace">May 12 10:07:04 ip-10-231-32-169
/usr/local/kamailio5/sbin/kamailio[5030]: DEBUG:
<core> [core/sr_module.c:862]: init_mod_child(): idx 1
rank 1: secsipid [udp receiver child=0 sock=<a
href="http://0.0.0.0:5060" moz-do-not-send="true">0.0.0.0:5060</a>]<br>
</font></div>
<div><font face="monospace">May 12 10:07:04 ip-10-231-32-169
/usr/local/kamailio5/sbin/kamailio[5032]: DEBUG: secsipid
[secsipid_mod.c:132]: child_init(): trying to load
</usr/local/kamailio5/lib64/kamailio/modules/secsipid_proc.so><br>
May 12 10:07:04 ip-10-231-32-169
/usr/local/kamailio5/sbin/kamailio[5042]: DEBUG: secsipid
[secsipid_mod.c:155]: child_init(): bound to proc module:
</usr/local/kamailio5/lib64/kamailio/modules/secsipid_proc.so></font></div>
<div><br>
</div>
<div><br clear="all">
<div>
<div dir="ltr" class="gmail_signature"
data-smartmail="gmail_signature">
<div dir="ltr">
<div>Thanks!</div>
<div><br>
</div>
David Villasmil
<div>email: <a
href="mailto:david.villasmil.work@gmail.com"
target="_blank" moz-do-not-send="true">david.villasmil.work@gmail.com</a></div>
<div>phone: +34669448337</div>
</div>
</div>
</div>
<br>
</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Wed, May 12, 2021 at 7:53
AM Daniel-Constantin Mierla <<a
href="mailto:miconda@gmail.com" moz-do-not-send="true">miconda@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>
<p>Hello,</p>
<p>be sure that /usr/local/lib/ is in your ld library path,
then if it is a fresh installation, you may need to
rebuild the libraries cache, usually can be done by
running:</p>
<p>sudo ldconfig</p>
<p>Cheers,<br>
Daniel<br>
</p>
<div>On 12.05.21 02:01, David Villasmil wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">So kamailio compiled but on start:
<div><br>
</div>
<div>Config:</div>
<div><font face="monospace">#!ifdef WITH_STIR<br>
loadmodule "secsipid.so"<br>
#!endif<br>
</font></div>
<div><font face="monospace">...</font></div>
<div><font face="monospace">#!ifdef WITH_STIR<br>
modparam("secsipid", "expire", 600)<br>
modparam("secsipid", "timeout", 2)<br>
modparam("secsipid", "cache_dir",
"/tmp/kamailio/secsipid")<br>
modparam("secsipid", "cache_expire", 7200)<br>
#!endif<br>
</font></div>
<div><br>
</div>
<div>On start i get:</div>
<div><font face="monospace">May 11 23:25:35
ip-10-231-32-169
/usr/local/kamailio5/sbin/kamailio[20035]: ERROR:
secsipid [secsipid_mod.c:140]: child_init(): could
not open module
</usr/local/lib64/kamailio/modules/secsipid_proc.so>:
libsecsipid.so.1: cannot open shared object file: No
such file or directory<br>
May 11 23:25:35 ip-10-231-32-169
/usr/local/kamailio5/sbin/kamailio[20035]: ERROR:
<core> [core/sr_module.c:865]:
init_mod_child(): error while initializing module
secsipid
(/usr/local/lib64/kamailio/modules/secsipid.so)
(idx: 8 rank: 8 desc: [udp receiver child=7 sock=<a
href="http://0.0.0.0:5060" target="_blank"
moz-do-not-send="true">0.0.0.0:5060</a>])<br>
May 11 23:25:35 ip-10-231-32-169
/usr/local/kamailio5/sbin/kamailio[20035]: ERROR:
<core> [core/pt.c:338]: fork_process():
init_child failed for process 8, pid 20035, "udp
receiver child=7 sock=<a href="http://0.0.0.0:5060"
target="_blank" moz-do-not-send="true">0.0.0.0:5060</a>"<br>
</font></div>
<div><br>
</div>
<div>but:</div>
<div><br>
</div>
<div><font face="monospace"># ls -l
/usr/local/kamailio5/lib64/kamailio/modules/secsip*<br>
-rwxr-xr-x 1 root root 99312 May 11 23:46
/usr/local/kamailio5/lib64/kamailio/modules/secsipid.so<br>
-rwxr-xr-x 1 root root 47304 May 11 23:46
/usr/local/kamailio5/lib64/kamailio/modules/secsipid_proc.so<br>
#<br>
</font></div>
<div><font face="monospace"><br>
</font></div>
<div><font face="monospace">/usr/local/include/libsecsipid.h<br>
/usr/local/lib/libsecsipid.so.1<br>
/usr/local/lib/libsecsipid.so<br>
/usr/local/lib/libsecsipid.so.1.0.0<br>
/usr/local/lib/libsecsipid.a</font><br>
</div>
<div><br>
</div>
<div>Not really sure what's going on here...<br
clear="all">
<div>
<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" moz-do-not-send="true">david.villasmil.work@gmail.com</a></div>
<div>phone: +34669448337</div>
</div>
</div>
</div>
<br>
</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Tue, May 11, 2021
at 3:46 PM David Villasmil <<a
href="mailto:david.villasmil.work@gmail.com"
target="_blank" moz-do-not-send="true">david.villasmil.work@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">So that helped doing:
<div><br>
</div>
<div>
<pre style="background-color:rgb(252,255,252);border:1px solid rgb(153,204,204);color:rgb(0,0,0);padding-left:15pt;overflow:auto;border-radius:2.5px;font-size:15px">...
go get <a href="https://github.com/asipto/secsipidx" target="_blank" moz-do-not-send="true">https://github.com/asipto/secsipidx</a>
cd $GOPATH/src/<a href="http://github.com/asipto/secsipidx/csecsipid/" target="_blank" moz-do-not-send="true">github.com/asipto/secsipidx/csecsipid/</a>
make liba
cp secsipid.h libsecsipid.h libsecsipid.a \
/path/to/kamailio/src/modules/secsipid_proc/</pre>
</div>
<div><br>
</div>
<div>but when compiling:</div>
<div>
<pre style="background-color:rgb(252,255,252);border:1px solid rgb(153,204,204);color:rgb(0,0,0);padding-left:15pt;overflow:auto;border-radius:2.5px;font-size:15px">cd /path/to/kamailio/
make include_modules="secsipid secsipid_proc ..." cfg
make all
make install</pre>
</div>
<div>make fails because the lib is not installed</div>
<div><br>
</div>
<div>The documentation should be:</div>
<div><br>
</div>
<div><font face="monospace">...<br>
# Get and install the module:<br>
<br>
go get <a
href="https://github.com/asipto/secsipidx"
target="_blank" moz-do-not-send="true">https://github.com/asipto/secsipidx</a><br>
cd $GOPATH/src/<a
href="http://github.com/asipto/secsipidx/csecsipid/"
target="_blank" moz-do-not-send="true">github.com/asipto/secsipidx/csecsipid/</a><br>
make liba<br>
cp secsipid.h libsecsipid.h libsecsipid.a \<br>
/path/to/kamailio/src/modules/secsipid_proc/<br>
<br>
cd $GOPATH/src/<a
href="http://github.com/asipto/secsipidx/"
target="_blank" moz-do-not-send="true">github.com/asipto/secsipidx/</a><br>
make<br>
make install<br>
<br>
# make the module<br>
<br>
cd /path/to/kamailio/<br>
make include_modules="secsipid secsipid_proc
..." cfg<br>
make all<br>
make install<br>
<br>
<br>
## or compiling individual modules for use
inside source tree<br>
make modules modules=src/modules/secsipid_proc<br>
make modules modules=src/modules/secsipid<br>
...</font></div>
<div><br>
</div>
<div>Now kamailio compiles properly.</div>
<div><br>
</div>
<div><br>
</div>
<div><br clear="all">
<div>
<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" moz-do-not-send="true">david.villasmil.work@gmail.com</a></div>
<div>phone: +34669448337</div>
</div>
</div>
</div>
<br>
</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Tue, May 11,
2021 at 3:30 PM David Villasmil <<a
href="mailto:david.villasmil.work@gmail.com"
target="_blank" moz-do-not-send="true">david.villasmil.work@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">Hello Arsen,
<div><br>
</div>
<div>Thanks for replying. That was it!</div>
<div>Should that detail be added to the doc? a
lot of people wanting to use that are not
seasoned Go devs.</div>
<div><br>
</div>
<div><a class="gmail_plusreply"
id="gmail-m_3768458457347840578gmail-m_1944856733842913027gmail-m_-4113559985200451953plusReplyChip-0"
href="mailto:miconda@gmail.com"
target="_blank" moz-do-not-send="true">@Daniel-Constantin
Mierla</a> ?<br>
</div>
<div><br clear="all">
<div>
<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"
moz-do-not-send="true">david.villasmil.work@gmail.com</a></div>
<div>phone: +34669448337</div>
</div>
</div>
</div>
<br>
</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Tue, May
11, 2021 at 2:48 PM Arsen Semenov <<a
href="mailto:arsperger@gmail.com"
target="_blank" moz-do-not-send="true">arsperger@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 David,
<div><br>
</div>
<div>seems you are using Go with Go modules
support enabled.<br>
secsipidx does not support go modules,
make sure you have environment variable
GO111MODULE set to off and then download
the module by executing "go get <a
href="http://github.com/asipto/secsipidx"
target="_blank" moz-do-not-send="true">github.com/asipto/secsipidx</a>"<br>
<br>
it should be downloaded in your $GOPATH <br>
</div>
<div><br>
</div>
<div><br>
</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Tue,
May 11, 2021 at 6:21 PM David Villasmil
<<a
href="mailto:david.villasmil.work@gmail.com"
target="_blank" moz-do-not-send="true">david.villasmil.work@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">Hello guys,
<div><br>
</div>
<div>I'm trying to use secsipid as per <a
href="https://kamailio.org/docs/modules/5.5.x/modules/secsipid.html"
target="_blank"
moz-do-not-send="true">https://kamailio.org/docs/modules/5.5.x/modules/secsipid.html</a></div>
<div><br>
</div>
<div><br>
</div>
<div>I just installed go on a new vm:</div>
<div><br>
</div>
<div>the env is as follows:</div>
<div><font face="monospace"># env<br>
GOPATH=/root/go<br>
</font></div>
<div><br>
</div>
<div>then:</div>
<div><br>
</div>
<div><font face="monospace">~# go get <a
href="http://github.com/asipto/secsipidx" target="_blank"
moz-do-not-send="true">github.com/asipto/secsipidx</a><br>
</font></div>
<div><font face="monospace">~#</font></div>
<div><br>
</div>
<div>Then:</div>
<div><br>
</div>
<div><font face="monospace">~# cd
$GOPATH/src/<a
href="http://github.com/asipto/secsipidx/csecsipid/"
target="_blank"
moz-do-not-send="true">github.com/asipto/secsipidx/csecsipid/</a><br>
bash: cd: /root/go/src/<a
href="http://github.com/asipto/secsipidx/csecsipid/"
target="_blank"
moz-do-not-send="true">github.com/asipto/secsipidx/csecsipid/</a>:
No such file or directory<br>
</font></div>
<div><br>
</div>
<div>it looks like it's not downloaded
where the documentation says.</div>
<div>It is however in:<br>
</div>
<div><br>
</div>
<div>go<br>
|-- bin<br>
`-- pkg<br>
|-- mod<br>
| |-- cache<br>
| | `-- download<br>
| | |-- <a
href="http://github.com"
target="_blank"
moz-do-not-send="true">github.com</a><br>
| | | |-- asipto<br>
| | | | `-- secsipidx<br>
| | | | `-- @v<br>
| | | `-- google<br>
| | | `-- uuid<br>
| | | `-- @v<br>
| | `-- sumdb<br>
| | `-- <a
href="http://sum.golang.org"
target="_blank"
moz-do-not-send="true">sum.golang.org</a><br>
| | |-- lookup<br>
| | | `-- <a
href="http://github.com"
target="_blank"
moz-do-not-send="true">github.com</a><br>
| | | |--
asipto<br>
| | | `--
google<br>
| | `-- tile<br>
| | `-- 8<br>
| | |-- 0<br>
| | |
|-- x010<br>
| | |
|-- x011<br>
| | |
`-- x016<br>
| | |
`-- 560.p<br>
| | |-- 1<br>
| | |
`-- 064.p<br>
| | `-- 2<br>
| |
`-- 000.p<br>
| `-- <a
href="http://github.com"
target="_blank"
moz-do-not-send="true">github.com</a><br>
| |-- asipto<br>
| | `-- <a
href="mailto:secsipidx@v1.0.0"
target="_blank"
moz-do-not-send="true">secsipidx@v1.0.0</a><br>
| | |-- csecsipid<br>
| | `-- secsipid<br>
| `-- google<br>
| `-- <a
href="mailto:uuid@v1.2.0"
target="_blank"
moz-do-not-send="true">uuid@v1.2.0</a><br>
`-- sumdb<br>
`-- <a
href="http://sum.golang.org"
target="_blank"
moz-do-not-send="true">sum.golang.org</a><br>
<br>
38 directories<br>
</div>
<div><br>
</div>
<div>But going into <font
face="monospace">~/go/pkg/mod/<a
href="http://github.com/asipto/secsipidx@v1.0.0/csecsipid"
target="_blank"
moz-do-not-send="true">github.com/asipto/secsipidx@v1.0.0/csecsipid</a></font></div>
<div>we have:</div>
<div><br>
</div>
<div><font face="monospace">~/go/pkg/mod/<a
href="http://github.com/asipto/secsipidx@v1.0.0/csecsipid#"
target="_blank"
moz-do-not-send="true">github.com/asipto/secsipidx@v1.0.0/csecsipid#</a>
ls -l<br>
total 16<br>
-r--r--r-- 1 root root 231 May 11
13:14 Makefile<br>
-r--r--r-- 1 root root 1778 May 11
13:14 csecsipid.go<br>
-r--r--r-- 1 root root 1988 May 11
13:14 libsecsipid.h<br>
-r--r--r-- 1 root root 120 May 11
13:14 secsipid.h<br>
</font></div>
<div><br>
</div>
<div>The Makefile contains the proper
liba:</div>
<div><br>
</div>
<div><font face="monospace"># Makefile
to build libraries<br>
#<br>
<br>
all: libso<br>
<br>
libso:<br>
go build -o libsecsipid.so
-buildmode=c-shared csecsipid.go<br>
<br>
liba:<br>
go build -o libsecsipid.a
-buildmode=c-archive csecsipid.go<br>
<br>
clean:<br>
rm -f libsecsipid.so<br>
rm -f linsecsipid.a<br>
</font></div>
<div><br>
</div>
<div>But "make liba" returns:</div>
<div><br>
</div>
<div><font face="monospace"># make liba<br>
go build -o libsecsipid.a
-buildmode=c-archive csecsipid.go<br>
csecsipid.go:6:2: no required module
provides package <a
href="http://github.com/asipto/secsipidx/secsipid"
target="_blank"
moz-do-not-send="true">github.com/asipto/secsipidx/secsipid</a>:
go.mod file not found in current
directory or any parent directory;
see 'go help modules'<br>
make: *** [Makefile:10: liba] Error
1</font><br>
</div>
<div><br>
</div>
<div>Obviously not a "go" guy here.</div>
<div><br>
</div>
<div>What am I doing wrong?</div>
<div><br>
</div>
<div>Thanks for your help!</div>
<div><br>
</div>
<div>
<div>
<div dir="ltr">
<div dir="ltr">David Villasmil
<div>email: <a
href="mailto:david.villasmil.work@gmail.com"
target="_blank"
moz-do-not-send="true">david.villasmil.work@gmail.com</a></div>
<div>phone: +34669448337</div>
</div>
</div>
</div>
</div>
</div>
__________________________________________________________<br>
Kamailio - Users Mailing List - Non
Commercial Discussions<br>
* <a
href="mailto:sr-users@lists.kamailio.org"
target="_blank" moz-do-not-send="true">sr-users@lists.kamailio.org</a><br>
Important: keep the mailing list in the
recipients, do not reply only to the
sender!<br>
Edit mailing list options or unsubscribe:<br>
* <a
href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users"
rel="noreferrer" target="_blank"
moz-do-not-send="true">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote>
</div>
<br clear="all">
<div><br>
</div>
-- <br>
<div dir="ltr">
<div dir="ltr">
<div>Arsen Semenov<br>
</div>
<div><br>
</div>
</div>
</div>
__________________________________________________________<br>
Kamailio - Users Mailing List - Non Commercial
Discussions<br>
* <a
href="mailto:sr-users@lists.kamailio.org"
target="_blank" moz-do-not-send="true">sr-users@lists.kamailio.org</a><br>
Important: keep the mailing list in the
recipients, do not reply only to the sender!<br>
Edit mailing list options or unsubscribe:<br>
* <a
href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users"
rel="noreferrer" target="_blank"
moz-do-not-send="true">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote>
</div>
</blockquote>
</div>
</blockquote>
</div>
</blockquote>
<pre cols="72">--
Daniel-Constantin Mierla -- <a href="http://www.asipto.com" target="_blank" moz-do-not-send="true">www.asipto.com</a>
<a href="http://www.twitter.com/miconda" target="_blank" moz-do-not-send="true">www.twitter.com/miconda</a> -- <a href="http://www.linkedin.com/in/miconda" target="_blank" moz-do-not-send="true">www.linkedin.com/in/miconda</a>
Kamailio Advanced Training - Online
May 17-20, 2021 (Europe Timezone) - June 7-10, 2021 (America Timezone)
* <a href="https://www.asipto.com/sw/kamailio-advanced-training-online/" target="_blank" moz-do-not-send="true">https://www.asipto.com/sw/kamailio-advanced-training-online/</a></pre>
</div>
</blockquote>
</div>
</blockquote>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla -- <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a>
Kamailio Advanced Training - Online
May 17-20, 2021 (Europe Timezone) - June 7-10, 2021 (America Timezone)
* <a class="moz-txt-link-freetext" href="https://www.asipto.com/sw/kamailio-advanced-training-online/">https://www.asipto.com/sw/kamailio-advanced-training-online/</a></pre>
</body>
</html>