On Tue, Jul 6, 2010 at 8:31 AM, Premalatha Kuppan <span dir="ltr"><<a href="mailto:premalatha@ngintech.com">premalatha@ngintech.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Thanks. I have tried $rU, but is executing as null,<br><br>executing [./etc/opensips/test.sh <null>]<br><br>Is exec_msg is teh correct command to use to execute shell script ?<br><br></blockquote></div><br><div>It's been a while since I've used it, but I think so. The point of the _msg version of it is that it makes the whole SIP message available to the shell script. </div>
<div><br></div><div>exec_msg("test.sh $rU");</div><div><br></div><div>should work...</div><div><br></div><div>You shouldn't really need to pass in $rU since I believe rU is available in variables inside your script. </div>
<div><br></div><div>Is there a reason you are doing what you are doing with exec instead of other modules? I used to use it when I was learning SER back in the day, but really, it's just a very expensive shortcut.</div>
<div><br></div><div>Maybe we can help you use some of the other modules to achieve what you need?<br>-Brett</div>