[OpenSER-Users] Ignore CPL script

Jesus Rodriguez jesusr at voztele.com
Fri Dec 21 00:14:59 CET 2007


Hello Martin,

Please, keep always the list in copy as more people can be interested  
in the replies.


> I am beginner in this. I have this as project to school. In which  
> part of
> config file I have to write  
> cpl_run_script("incoming","force_stateful") ?


You can have something like:


if (is_method("INVITE") {
	# run incoming script
         if ( !cpl_run_script("incoming","force_stateful") ) {
             # script execution failed
             sl_send_reply("500","CPL script execution failed");
             exit;
         };
};


Regards.

Saludos
JesusR.




>> Hi Martin,
>>
>>
>> El 20/12/2007, a las 16:28, Martin Kardi escribió:
>>
>> [...]
>>
>>> and this is easy cpl script:
>>>
>>> <?xml version="1.0" encoding="UTF-8"?>
>>>
>>> <cpl>
>>> <incoming>
>>>   <reject status="400" reason="Busy" />
>>> </incoming>
>>> </cpl>
>>>
>>> Upload of this cpl script to DB is correct, record in table "cpl" is
>>> created
>>> for "user" but when I am calling to this "user", openser ignores
>>> this script
>>> and phone is ringing.
>>> I don't know what is problem, could somebody help me?
>>
>>
>> You need to call the cpl_run_script() function to execute the  
>> uploaded
>> cpl script. Something like:
>>
>> cpl_run_script("incoming","force_stateful")
>>
>> Regards.
>>
>> Saludos
>> JesusR.
>>
>> ------------------------------------
>> Jesus Rodriguez
>> VozTelecom Sistemas, S.L.
>> jesusr at voztele.com
>> http://www.voztele.com
>> Tel. 902360305
>> -------------------------------------
>>
>>
>>
>>
>>
>
>
>





Saludos
JesusR.

------------------------------------
Jesus Rodriguez
VozTelecom Sistemas, S.L.
jesusr at voztele.com
http://www.voztele.com
Tel. 902360305
-------------------------------------








More information about the Users mailing list