[OpenSIPS-Users] is_request(), is_reply() functions in OpenSips

Răzvan Crainea razvan at opensips.org
Tue Feb 18 11:11:32 EST 2020


Hi, Grant!

A "quick" way of checking if a message is a reply is to check the $rs 
(reply status) variable - if NULL, then the message is a request, 
otherwise a reply.

Best regards,
Răzvan

On 2/18/20 10:22 AM, Grant Bagdasarian wrote:
> Hi Callum,
> 
> Thanks for the help.
> The route parameters were new for me as well, I came across the feature 
> when literally going through all the docs trying to find equivalents of 
> the request and reply functions :).
> 
> All the best.
> 
> 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