Re: [SR-Users] failed to find append_branch

2017-03-23 Thread Anuradha Selvarajan
Thank you for your reply! I figured it out yesterday but couldn’t remove my 
question from the mailing list☺

Thanks!

From: Daniel-Constantin Mierla [mailto:mico...@gmail.com]
Sent: Thursday, March 23, 2017 4:55 AM
To: Kamailio (SER) - Users Mailing List <sr-users@lists.sip-router.org>
Cc: Anuradha Selvarajan <anuradha.selvara...@ericsson.com>
Subject: Re: [SR-Users] failed to find append_branch

Hello,
the function was in core, but then moved to the corex module a while ago.
Functions from the core are documented in the cookbook:

  - https://www.kamailio.org/wiki/cookbooks/5.0.x/core
For the functions exported by modules, you can find an alphabetic index at:

  - https://www.kamailio.org/wiki/alphaindexes/5.0.x/modfunctions
Searching in this two documents should help finding where a function is 
implemented.
Cheers,
Daniel

On Thu, Mar 23, 2017 at 12:01 AM, Anuradha Selvarajan 
<anuradha.selvara...@ericsson.com<mailto:anuradha.selvara...@ericsson.com>> 
wrote:
Hello,

I am a new user to kamailio. I am trying to use the fork.cfg to send sip 
registration to 2 destination. I get the following error but I have added 
loadmodule tm.so, why am I still getting this error?

Mar 22 15:53:48 emps116 kamailio[14065]: ERROR:  [cfg.y:3295]: yyparse(): 
cfg. parser: failed to find command append_branch (params 1)
Mar 22 15:53:48 emps116 kamailio[14065]: :  [cfg.y:3435]: yyerror_at(): 
parse error in config file /etc/kamailio/fork.cfg, line 45, column 43: unknown 
command, mi
Mar 22 15:53:48 emps116 kamailio[14065]: ERROR: bad config file (1 errors)
Mar 22 15:53:48 emps116 kamailio[14065]: loading modules under config path: 
/usr/lib/x86_64-linux-gnu/kamailio/modules
Mar 22 15:53:48 emps116 kamailio[14065]: loading modules under config path: 
/usr/lib/x86_64-linux-gnu/kamailio/modules/
Mar 22 15:53:48 emps116 kamailio[14065]: INFO:  [sctp_core.c:53]: 
sctp_core_destroy(): SCTP API not initialized
Mar 22 15:53:48 emps116 systemd[1]: kamailio.service: Control process exited, 
code=exited status=255
Mar 22 15:53:48 emps116 systemd[1]: Failed to start Kamailio (OpenSER) - the 
Open Source SIP Server.

My script looks like this (default one):

mpath="/usr/lib/x86_64-linux-gnu/kamailio/modules"


loadmodule "sl.so"
loadmodule "tm.so"
.
.
.
.
route{
# for testing purposes, simply okay all REGISTERs
if (method=="REGISTER") {
log("REGISTER");
sl_send_reply("200", "ok");
exit;
};
# try these two destinations first in parallel; the second
# destination is targeted to sink port -- that will make ser
# wait until timer hits
seturi("sip:nob...@kamailio.org<mailto:sip%3anob...@kamailio.org>");

append_branch("sip:paral...@kamailio.org<mailto:sip%3aparal...@kamailio.org>");
# if we do not get a positive reply, continue at reply_route[1]
#t_on_failure("1");
# forward the request to all destinations in destination set now
t_relay();
}


Appreciate any help!
Thanks
Anu

___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org<mailto:sr-users@lists.sip-router.org>
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users



--
Daniel-Constantin Mierla - http://www.asipto.com
http://twitter.com/#!/miconda - 
http://www.linkedin.com/in/micond<http://www.linkedin.com/in/miconda>
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] failed to find append_branch

2017-03-23 Thread Daniel-Constantin Mierla
Hello,

the function was in core, but then moved to the corex module a while ago.

Functions from the core are documented in the cookbook:

  - https://www.kamailio.org/wiki/cookbooks/5.0.x/core

For the functions exported by modules, you can find an alphabetic index at:

  - https://www.kamailio.org/wiki/alphaindexes/5.0.x/modfunctions

Searching in this two documents should help finding where a function is
implemented.

Cheers,
Daniel

On Thu, Mar 23, 2017 at 12:01 AM, Anuradha Selvarajan <
anuradha.selvara...@ericsson.com> wrote:

> Hello,
>
>
>
> I am a new user to kamailio. I am trying to use the fork.cfg to send sip
> registration to 2 destination. I get the following error but I have added
> loadmodule tm.so, why am I still getting this error?
>
>
>
> Mar 22 15:53:48 emps116 kamailio[14065]: ERROR:  [cfg.y:3295]:
> yyparse(): cfg. parser: failed to find command append_branch (params 1)
>
> Mar 22 15:53:48 emps116 kamailio[14065]: :  [cfg.y:3435]:
> yyerror_at(): parse error in config file /etc/kamailio/fork.cfg, line 45,
> column 43: unknown command, mi
>
> Mar 22 15:53:48 emps116 kamailio[14065]: ERROR: bad config file (1 errors)
>
> Mar 22 15:53:48 emps116 kamailio[14065]: loading modules under config
> path: /usr/lib/x86_64-linux-gnu/kamailio/modules
>
> Mar 22 15:53:48 emps116 kamailio[14065]: loading modules under config
> path: /usr/lib/x86_64-linux-gnu/kamailio/modules/
>
> Mar 22 15:53:48 emps116 kamailio[14065]: INFO:  [sctp_core.c:53]:
> sctp_core_destroy(): SCTP API not initialized
>
> Mar 22 15:53:48 emps116 systemd[1]: kamailio.service: Control process
> exited, code=exited status=255
>
> Mar 22 15:53:48 emps116 systemd[1]: Failed to start Kamailio (OpenSER) -
> the Open Source SIP Server.
>
>
>
> My script looks like this (default one):
>
>
>
> mpath="/usr/lib/x86_64-linux-gnu/kamailio/modules"
>
>
>
>
>
> loadmodule "sl.so"
>
> loadmodule "tm.so"
>
> .
>
> .
>
> .
>
> .
>
> route{
>
> # for testing purposes, simply okay all REGISTERs
>
> if (method=="REGISTER") {
>
> log("REGISTER");
>
> sl_send_reply("200", "ok");
>
> exit;
>
> };
>
> # try these two destinations first in parallel; the second
>
> # destination is targeted to sink port -- that will make ser
>
> # wait until timer hits
>
> seturi("sip:nob...@kamailio.org");
>
> append_branch("sip:paral...@kamailio.org");
>
> # if we do not get a positive reply, continue at reply_route[1]
>
> #t_on_failure("1");
>
> # forward the request to all destinations in destination set now
>
> t_relay();
>
> }
>
>
>
>
>
> Appreciate any help!
>
> Thanks
> Anu
>
> ___
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users@lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
>


-- 
Daniel-Constantin Mierla - http://www.asipto.com
http://twitter.com/#!/miconda - http://www.linkedin.com/in/micond

___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] failed to find append_branch

2017-03-23 Thread Ginhoux, Patrick
Hi,

I'm a new user too and I'm working on a 'migration' from kamailio 3.3.x to 
5.0.x.

So first, what is the level of kamailio you use ?

Then what is the content of line 45, column 43, where kamailio finds a 'mi' 
command ?

At least, on the web you can see similar examples as yours : 
https://github.com/sipwise/kamailio/blob/master/examples/kamailio/fork.cfg . 
From your extract I see a difference in the following line:

append_branch("sip:paral...@kamailio.org:9");

Yours is :

append_branch("sip:paral...@kamailio.org");


I don't know much about this,and I hope this help.

Cordialement
Patrick GINHOUX

De : sr-users [mailto:sr-users-boun...@lists.sip-router.org] De la part de 
Anuradha Selvarajan
Envoyé : jeudi 23 mars 2017 00:02
À : sr-users@lists.sip-router.org
Objet : [SR-Users] failed to find append_branch

Hello,

I am a new user to kamailio. I am trying to use the fork.cfg to send sip 
registration to 2 destination. I get the following error but I have added 
loadmodule tm.so, why am I still getting this error?

Mar 22 15:53:48 emps116 kamailio[14065]: ERROR:  [cfg.y:3295]: yyparse(): 
cfg. parser: failed to find command append_branch (params 1)
Mar 22 15:53:48 emps116 kamailio[14065]: :  [cfg.y:3435]: yyerror_at(): 
parse error in config file /etc/kamailio/fork.cfg, line 45, column 43: unknown 
command, mi
Mar 22 15:53:48 emps116 kamailio[14065]: ERROR: bad config file (1 errors)
Mar 22 15:53:48 emps116 kamailio[14065]: loading modules under config path: 
/usr/lib/x86_64-linux-gnu/kamailio/modules
Mar 22 15:53:48 emps116 kamailio[14065]: loading modules under config path: 
/usr/lib/x86_64-linux-gnu/kamailio/modules/
Mar 22 15:53:48 emps116 kamailio[14065]: INFO:  [sctp_core.c:53]: 
sctp_core_destroy(): SCTP API not initialized
Mar 22 15:53:48 emps116 systemd[1]: kamailio.service: Control process exited, 
code=exited status=255
Mar 22 15:53:48 emps116 systemd[1]: Failed to start Kamailio (OpenSER) - the 
Open Source SIP Server.

My script looks like this (default one):

mpath="/usr/lib/x86_64-linux-gnu/kamailio/modules"


loadmodule "sl.so"
loadmodule "tm.so"
.
.
.
.
route{
# for testing purposes, simply okay all REGISTERs
if (method=="REGISTER") {
log("REGISTER");
sl_send_reply("200", "ok");
exit;
};
# try these two destinations first in parallel; the second
# destination is targeted to sink port -- that will make ser
# wait until timer hits
seturi("sip:nob...@kamailio.org");
append_branch("sip:paral...@kamailio.org");
# if we do not get a positive reply, continue at reply_route[1]
#t_on_failure("1");
# forward the request to all destinations in destination set now
t_relay();
}


Appreciate any help!
Thanks
Anu
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] failed to find append_branch

2017-03-22 Thread Anuradha Selvarajan
Hello,

I am a new user to kamailio. I am trying to use the fork.cfg to send sip 
registration to 2 destination. I get the following error but I have added 
loadmodule tm.so, why am I still getting this error?

Mar 22 15:53:48 emps116 kamailio[14065]: ERROR:  [cfg.y:3295]: yyparse(): 
cfg. parser: failed to find command append_branch (params 1)
Mar 22 15:53:48 emps116 kamailio[14065]: :  [cfg.y:3435]: yyerror_at(): 
parse error in config file /etc/kamailio/fork.cfg, line 45, column 43: unknown 
command, mi
Mar 22 15:53:48 emps116 kamailio[14065]: ERROR: bad config file (1 errors)
Mar 22 15:53:48 emps116 kamailio[14065]: loading modules under config path: 
/usr/lib/x86_64-linux-gnu/kamailio/modules
Mar 22 15:53:48 emps116 kamailio[14065]: loading modules under config path: 
/usr/lib/x86_64-linux-gnu/kamailio/modules/
Mar 22 15:53:48 emps116 kamailio[14065]: INFO:  [sctp_core.c:53]: 
sctp_core_destroy(): SCTP API not initialized
Mar 22 15:53:48 emps116 systemd[1]: kamailio.service: Control process exited, 
code=exited status=255
Mar 22 15:53:48 emps116 systemd[1]: Failed to start Kamailio (OpenSER) - the 
Open Source SIP Server.

My script looks like this (default one):

mpath="/usr/lib/x86_64-linux-gnu/kamailio/modules"


loadmodule "sl.so"
loadmodule "tm.so"
.
.
.
.
route{
# for testing purposes, simply okay all REGISTERs
if (method=="REGISTER") {
log("REGISTER");
sl_send_reply("200", "ok");
exit;
};
# try these two destinations first in parallel; the second
# destination is targeted to sink port -- that will make ser
# wait until timer hits
seturi("sip:nob...@kamailio.org");
append_branch("sip:paral...@kamailio.org");
# if we do not get a positive reply, continue at reply_route[1]
#t_on_failure("1");
# forward the request to all destinations in destination set now
t_relay();
}


Appreciate any help!
Thanks
Anu
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users