[OpenSIPS-Users] Function exec_msg() and exec module

Bogdan-Andrei Iancu bogdan at voice-system.ro
Tue Nov 17 13:13:07 CET 2009


exec_msg() is not returning the output to the script (see 
http://www.opensips.org/html/docs/modules/devel/exec.html#id228165)

If you need to fetch the output, see exec_avp() function 
(http://www.opensips.org/html/docs/modules/devel/exec.html#id228229)

Regards,
Bogdan

Jennifer-4 wrote:
> Thanks, now I can execute the echo command and store its result in a file.  
> exec_msg("echo HOLA > fich.txt")
>
> But when I try to do something like "exec_msg("echo HOLA")", where is the
> command being executed?
>
> I can´t see the message of the echo. Do I need to do something more?
>
> Regards,
>
>
>
> Bogdan-Andrei Iancu wrote:
>   
>> you have them in modules/exec/
>>
>> Also, after doing "make all", you will get the exec.so lib there.
>>
>> By default, the "exec" modules is installed.
>>
>> Regards,
>> Bogdan
>>
>> Jennifer-4 wrote:
>>     
>>> I read the doc, but I think I need files like exec.h or exec.c, to load
>>> the
>>> module with exec.so
>>>
>>> Regards
>>>
>>>
>>> Bogdan-Andrei Iancu wrote:
>>>   
>>>       
>>>> Hi,
>>>>
>>>> Jennifer-4 wrote:
>>>>     
>>>>         
>>>>> Hi!
>>>>>
>>>>> I want to send a command from "opensips.cfg", so in the main route, I´m
>>>>> trying to do:
>>>>> exec_msg("echo HOLA");
>>>>>   
>>>>>       
>>>>>           
>>>> check the docs http://www.opensips.org/html/docs/modules/devel/exec.html
>>>>     
>>>>         
>>>>> I have read that I need a module called "exec", but I don´t know where
>>>>> I
>>>>> can
>>>>> find the files needed.
>>>>>   
>>>>>       
>>>>>           
>>>> What file are you referring at?
>>>>
>>>>         


-- 
Bogdan-Andrei Iancu
www.voice-system.ro




More information about the Users mailing list