[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openser-users
Subject:    Re: [SR-Users] Question regarding calling a shell script from kamailio
From:       Anuradha Selvarajan <anuradha.selvarajan () ericsson ! com>
Date:       2017-06-29 16:58:53
Message-ID: 1E7B183A4D8EE449A35A38880469D41280DC6489 () eusaamb105 ! ericsson ! se
[Download RAW message or body]

Hello,

Resending as I didn't get any reply yet. I tried to use exec_msg to call a =
external script but that is not working as expected (used it under request_=
route function as suggested). Also exec_msg doesn't store any return value =
so not sure if this will help. Like mentioned in my previous email, looking=
 for calling a external shell script and use the return value in fork.cfg f=
ile. I need help with this asap. Appreciate some help!

Thanks a lot!
Anu

From: Anuradha Selvarajan
Sent: Wednesday, June 28, 2017 10:03 AM
To: Kamailio (SER) - Users Mailing List <sr-users@lists.sip-router.org>
Subject: Question regarding calling a shell script from kamailio

Hello,

I am using fork.cfg file and I want to call a shell script (which has curl =
commands extracting value from database and returns the value) and use the =
value in the fork.cfg. How can I do it?

Appreciate your help!

Thanksm
Anu

[Attachment #3 (text/html)]

<html xmlns:v="urn:schemas-microsoft-com:vml" \
xmlns:o="urn:schemas-microsoft-com:office:office" \
xmlns:w="urn:schemas-microsoft-com:office:word" \
xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" \
xmlns="http://www.w3.org/TR/REC-html40"> <head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<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;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:11.0pt;
	font-family:"Calibri",sans-serif;}
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;}
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;}
span.EmailStyle18
	{mso-style-type:personal;
	font-family:"Calibri",sans-serif;
	color:windowtext;}
span.EmailStyle19
	{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]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">Hello,<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">Resending as I didn&#8217;t get any reply yet. I tried to use \
exec_msg to call a external script but that is not working as expected (used it under \
request_route function as suggested). Also exec_msg doesn&#8217;t store any return \
value so not sure  if this will help. Like mentioned in my previous email, looking \
for calling a external shell script and use the return value in fork.cfg file. I need \
help with this asap. Appreciate some help!<o:p></o:p></p> <p \
class="MsoNormal"><o:p>&nbsp;</o:p></p> <p class="MsoNormal">Thanks a \
lot!<o:p></o:p></p> <p class="MsoNormal">Anu<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From:</b> Anuradha Selvarajan <br>
<b>Sent:</b> Wednesday, June 28, 2017 10:03 AM<br>
<b>To:</b> Kamailio (SER) - Users Mailing List \
&lt;sr-users@lists.sip-router.org&gt;<br> <b>Subject:</b> Question regarding calling \
a shell script from kamailio <o:p></o:p></p> </div>
</div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">Hello,<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">I am using fork.cfg file and I want to call a shell script \
(which has curl commands extracting value from database and returns the value) and \
use the value in the fork.cfg. How can I do it?<o:p></o:p></p> <p \
class="MsoNormal"><o:p>&nbsp;</o:p></p> <p class="MsoNormal">Appreciate your \
help!<o:p></o:p></p> <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">Thanksm<br>
Anu<o:p></o:p></p>
</div>
</body>
</html>


[Attachment #4 (unknown)]

_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic