[OpenSIPS-Users] Correct syntax with statement if

Dmitry Ponomaryov iamhalje at gmail.com
Tue Oct 31 09:37:00 UTC 2023


Have a nice day, everyone, there are cases in routing when in if there is
only one command, for example:

### example 1 if ( has_body("application/sdp") ) {

rtpengine_offer();

}

In this case, how different will this expression be from: ### example 2 if
( has_body("application/sdp") ) rtpengine_offer();

To what extent is it correct to use one or another type of if statement? I
understand that if we have to use else, then only the first option will
suit us, but here it’s more about a single if.. thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20231031/ba74db50/attachment.html>


More information about the Users mailing list