[OpenSIPS-Users] is_request(), is_reply() functions in OpenSips
Răzvan Crainea
razvan at opensips.org
Thu Feb 20 10:25:29 EST 2020
Hi, Grant!
I'd go with the $rs checking, as implementation-wise translates to a
simple checking a field in a structure. Using params is not such a big
penalty, but I'd say it is a bit more expensive - at least one search is
done to match the param's name.
Best regards,
Răzvan
On 2/20/20 12:23 AM, Grant Bagdasarian wrote:
> Hi Răzvan,
>
> Thanks! I totally forgot about that option!
> Would there be a performance difference when using route params vs just
> testing the $rs value? Since route params are totally new to me, I’m not
> sure if they require additional processing time. Pretty sure performance
> wouldn’t be an issue since we’re dealing with OpenSips built to be high
> performance.
>
> Regards,
>
> Grant
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
--
Răzvan Crainea
OpenSIPS Core Developer
http://www.opensips-solutions.com
More information about the Users
mailing list