[OpenSIPS-Users] How to identify a 4xx, or 5xx, or 6xx SIP response in OpenSIPS script?

Eric Tamme eric at uphreak.com
Fri Nov 6 15:15:22 CET 2015


https://www.google.com/?gws_rd=ssl#q=opensips+response+status
...

http://www.opensips.org/Documentation/Script-CoreVar-2-2#toc73

...

if($rs~="20[0-9]")



On 11/06/2015 07:07 AM, Rodrigo Pimenta Carvalho wrote:
>
>
> Hi OpenSIPS-users,
>
>
> In the OpenSIPS script I can identify SIP requests, like 
> is_method("INVITE") or is_method("BYE").
>
>
> How to identify SIP responses, based on its codes that can be 4xx, or 
> 5xx, or 6xx?
>
> For example, how to identify that occurred a SIP response with code 483?
>
>
> I just need to know that a SIP INVITE didn't succeeded.
>
>
> What could be a elegant way to detect that a SIP INVITE was not answered?
>
>
>
> Best regards.
>
>
> RODRIGO PIMENTA CARVALHO
> Inatel Competence Center
> Software
> Ph: +55 35 3471 9200 RAMAL 979
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20151106/48324a4b/attachment.htm>


More information about the Users mailing list