[OpenSER-Users] Editing of SDP's?

Klaus Darilion klaus.mailinglists at pernau.at
Fri Jun 29 15:14:11 CEST 2007



Geir O. Jensen wrote:
> strings, I can't match the entire string as it's unknown...

That's why regular expressions exists.

>  
>> Geir O. Jensen wrote:
>>> Hm, my problem escalated a bit... Apparently... If I do this in my 
>>> .cfg
>>>
>>> if (has_body()){
>>> 	xlog("L_INFO","- body found");
>>> };
>> Do you use it in a reply route? It should work in reply-route 
>> too. If not, it is a bug.
> 
> I did this in the main route just after the sanity checks and before the
> loose_route. Has_body() triggers only on outgoing messages containing a sdp
> (i.e. invites) - not on replies (i.e. 200 OK w/SDP).
> 
> Soo... Is it a bug?

No. Replies do not enter route{}, thus the function is never called. You 
either have to explicitly activate a reply route (tm module README, 
             t_on_reply("1") ) or use the default reply route ( 
onreply_route{...}).

regards
klaus






More information about the Users mailing list