I have followed this link and used exec_msg("./test.sh '$$SIP_OUSER'"); Opensips is running, but i doubt whether it is the correct way to use it.