Looks like sh/bash problem.
My first line is:
#! /bin/sh
And may be you miss sh.
In my case, sh is soft link to dash. Please check your first line in init file, and see if it exists.
If you have bash, you can create soft link to it.


On Mon, Jun 3, 2013 at 12:02 PM, Ravindra Gowda <ravindra@thrikasa.in> wrote:
Dear All,


I am trying to integrate kamailio 4.0.1 server with Asterisk 11.4.0 in Ubuntu 12.04 LTS version. I tried it by using  the following link :

http://kb.asipto.com/asterisk:realtime:kamailio-4.0.x-asterisk-11.3.0-astdb.

But after all, when i tried to start Kmailio server with /etc/init.d/kamailio start command , i am getting the following errors:

asterisk-kamailio@asterisk-kamailio:/$ sudo /etc/init.d/kamailio start
[sudo] password for asterisk-kamailio:
/etc/init.d/kamailio: 1: /etc/init.d/kamailio: sed: not found
/etc/init.d/kamailio: 118: /etc/init.d/kamailio: arithmetic expression: expecting primary: ""
 
what could be the wrong, and how can i solve it?
Please share your valuable suggestions on this.

Any help will greatly appreciate.

Thank you and Best regards,
R Ravindra Gowda
Engineer - Systems and Products.

Thrikasa Technologies
| Office: +91 40 23260434
| Mob: +918885284050
| Fax:+91 40 23221045

'If you don't give up,you cannot fail'.

The information contained in this communication is proprietary to Thrikasa Technologies., and/or third parties, may contain classified or privileged information, and is intended only for the use of the intended addressee thereof. If you are not the intended addressee, please be aware that any use, disclosure, distribution and/or copying of this communication is strictly prohibited.If you receive this communication in error, please notify the sender immediately and delete it from your computer.

_______________________________________________
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