<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Hello,</p>
<p>the error is related to is_method() function, which is exported
by textops module -- do you have it loaded?</p>
<p>Anyhow, maybe you should describe what you want to achieve,
because the snippet you provided is no related to remote
registrations, at least not the form you pasted here. Do you want
to register as you start kamailio or you want to sort of forward
registrations?</p>
<p>Also, read the README for uac module, there is a section for
remote registrations -- you have to add some records to uacreg
table and configure uac module to load them -- maybe then you have
a better understanding.</p>
<p>Cheers,<br>
Daniel<br>
</p>
<br>
<div class="moz-cite-prefix">On 25.07.17 21:38, Anuradha Selvarajan
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:1E7B183A4D8EE449A35A38880469D41280E0E6D0@eusaamb105.ericsson.se">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="Generator" content="Microsoft Word 15 (filtered
medium)">
<style><!--
/* Font Definitions */
@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;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
color:black;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
pre
{mso-style-priority:99;
mso-style-link:"HTML Preformatted Char";
margin:0in;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";
color:black;}
p.msonormal0, li.msonormal0, div.msonormal0
{mso-style-name:msonormal;
mso-margin-top-alt:auto;
margin-right:0in;
mso-margin-bottom-alt:auto;
margin-left:0in;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
color:black;}
span.EmailStyle19
{mso-style-type:personal;
font-family:"Calibri",sans-serif;
color:windowtext;}
span.HTMLPreformattedChar
{mso-style-name:"HTML Preformatted Char";
mso-style-priority:99;
mso-style-link:"HTML Preformatted";
font-family:Consolas;
color:black;}
span.EmailStyle22
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
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="color:windowtext"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext">Hello
Daniel,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext">Thank you so
much for your reply! Below is my code (just testing our UAC
module) and I am unable to start kamailio after adding these
codes:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext">I have
loadmodule tm and rr as well.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">loadmodule
"uac.so"<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">request_route {<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">
$uac_req(ruri)=<a class="moz-txt-link-rfc2396E" href="sip:10.118.226.43">"sip:10.118.226.43"</a>;<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">
uac_req_send();<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext">In request
route I added the above 2 lines of code and then I tried to
start Kamailio…<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">root@emps116:/etc/kamailio#
service kamailio start<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Job for
kamailio.service failed because the control process exited
with error code. See "systemctl status kamailio.service" and
"journalctl -xe" for details.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">root@emps116:/etc/kamailio#
systemctl status kamailio.service<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">●
kamailio.service - Kamailio (OpenSER) - the Open Source SIP
Server<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> Loaded:
loaded (/lib/systemd/system/kamailio.service; enabled;
vendor preset: enabled)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> Active:
failed (Result: exit-code) since Tue 2017-07-25 12:35:45
PDT; 6s ago<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"> Process:
29891 ExecStart=/usr/sbin/kamailio -P
/var/run/kamailio/kamailio.pid -f $CFGFILE -m $SHM_MEMORY -M
$PKG_MEMORY -u $USER -g $GROUP (code=exited, status=255)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Main PID: 27407
(code=exited, status=0/SUCCESS)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Jul 25 12:35:45
emps116 systemd[1]: Starting Kamailio (OpenSER) - the Open
Source SIP Server...<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Jul 25 12:35:45
emps116 kamailio[29891]: ERROR: <core> [cfg.y:3235]:
yyparse(): cfg. parser: failed to find command is_method
(params 1)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Jul 25 12:35:45
emps116 kamailio[29891]: CRITICAL: <core>
[cfg.y:3375]: yyerror_at(): parse error in config file
/etc/kamailio/kamailio.cfg, line 473, column 24: unknow<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Jul 25 12:35:45
emps116 kamailio[29891]: ERROR: bad config file (5 errors)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Jul 25 12:35:45
emps116 kamailio[29891]: loading modules under config path:
/usr/lib/x86_64-linux-gnu/kamailio/modules/<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Jul 25 12:35:45
emps116 systemd[1]: kamailio.service: Control process
exited, code=exited status=255<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Jul 25 12:35:45
emps116 systemd[1]: Failed to start Kamailio (OpenSER) - the
Open Source SIP Server.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Jul 25 12:35:45
emps116 systemd[1]: kamailio.service: Unit entered failed
state.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Jul 25 12:35:45
emps116 systemd[1]: kamailio.service: Failed with result
'exit-code'.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">root@emps116:/etc/kamailio#<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">root@emps116:/etc/kamailio#
kamailio -v<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">version:
kamailio 4.4.6 (x86_64/linux)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">flags: STATS:
Off, USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, DISABLE_NAGLE,
USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP, PKG_MALLOC,
Q_MALLOC, F_MALLOC, TLSF_MALLOC, DBG_SR_MEMORY, USE_FUTEX,
FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE, USE_DNS_FAILOVER,
USE_NAPTR, USE_DST_BLACKLIST, HAVE_RESOLV_RES<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">ADAPTIVE_WAIT_LOOPS=1024,
MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, MAX_URI_SIZE
1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">poll method
support: poll, epoll_lt, epoll_et, sigio_rt, select.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">id: unknown<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">compiled with
gcc 4.9.2<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">root@emps116:/etc/kamailio#<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext">Thanks,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext">Anu<o:p></o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1
1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="color:windowtext">From:</span></b><span
style="color:windowtext"> Daniel-Constantin Mierla
[<a class="moz-txt-link-freetext" href="mailto:miconda@gmail.com">mailto:miconda@gmail.com</a>]
<br>
<b>Sent:</b> Tuesday, July 25, 2017 12:42 AM<br>
<b>To:</b> Kamailio (SER) - Users Mailing List
<a class="moz-txt-link-rfc2396E" href="mailto:sr-users@lists.kamailio.org"><sr-users@lists.kamailio.org></a>; Anuradha Selvarajan
<a class="moz-txt-link-rfc2396E" href="mailto:anuradha.selvarajan@ericsson.com"><anuradha.selvarajan@ericsson.com></a><br>
<b>Subject:</b> Re: [SR-Users] Can kamaillio act as
user?<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p>Hello,<o:p></o:p></p>
<p>uac is the module that is able to do registrations to remote
servers. What are the error you get? Also, give the output of
kamailio -v<o:p></o:p></p>
<p>Cheers,<br>
Daniel<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">On 24.07.17 23:07, Anuradha Selvarajan
wrote:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal">Hello,<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">Can Kamaillio act as a user and send SIP
registration? If yes, how/which module and any sample
config?<o:p></o:p></p>
<p class="MsoNormal">I tried to use UAC module but errored
while loading the module inspite of loading it after TM/RR
module.<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">Thanks<o:p></o:p></p>
<p class="MsoNormal">Anu<o:p></o:p></p>
<p class="MsoNormal"><br>
<br>
<br>
<o:p></o:p></p>
<pre>_______________________________________________<o:p></o:p></pre>
<pre>Kamailio (SER) - Users Mailing List<o:p></o:p></pre>
<pre><a href="mailto:sr-users@lists.kamailio.org" moz-do-not-send="true">sr-users@lists.kamailio.org</a><o:p></o:p></pre>
<pre><a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" moz-do-not-send="true">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><o:p></o:p></pre>
</blockquote>
<p class="MsoNormal"><br>
<br>
<o:p></o:p></p>
<pre>-- <o:p></o:p></pre>
<pre>Daniel-Constantin Mierla<o:p></o:p></pre>
<pre><a href="http://www.twitter.com/miconda" moz-do-not-send="true">www.twitter.com/miconda</a> -- <a href="http://www.linkedin.com/in/miconda" moz-do-not-send="true">www.linkedin.com/in/miconda</a><o:p></o:p></pre>
<pre>Kamailio Advanced Training - <a href="http://www.asipto.com" moz-do-not-send="true">www.asipto.com</a><o:p></o:p></pre>
<pre>Kamailio World Conference - <a href="http://www.kamailioworld.com" moz-do-not-send="true">www.kamailioworld.com</a><o:p></o:p></pre>
</div>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla
<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 - <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
Kamailio World Conference - <a class="moz-txt-link-abbreviated" href="http://www.kamailioworld.com">www.kamailioworld.com</a></pre>
</body>
</html>