[sr-dev] current runnin action

Daniel-Constantin Mierla miconda at gmail.com
Mon Feb 1 23:03:40 CET 2010



On 2/1/10 10:27 PM, Jan Janak wrote:
> On 22-01 13:06, Andreea Ancuta Onofrei wrote:
>    
>> Dear all,
>>
>> Is it possible to retrieve the current action that the script is
>> running?
>>      
> If you mean from C functions then no, not easily.
>
>    
for some particular cases the functions exported to cfg can get the 
action in fixup function -- if they have at least one parameter. latest 
xlog (k) uses such mechanism to get the line of cfg from action 
structure to print at runtime.

Daniel

-- 
Daniel-Constantin Mierla
eLearning class for Kamailio 3.0.0
Starting Feb 8, 2010
* http://www.asipto.com/




More information about the sr-dev mailing list