This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
tutorials:faq:main [2020/10/19 21:05] miconda |
tutorials:faq:main [2020/10/19 21:20] miconda |
||
---|---|---|---|
Line 606: | Line 606: | ||
However, if return code is 0, the next action after function() is not executed. It can be used only of positive or negative response code. | However, if return code is 0, the next action after function() is not executed. It can be used only of positive or negative response code. | ||
+ | |||
+ | On the other hand, the pseudo-variables (including $rc) have to be compared as an integer, the rules for evaluating return code of the functions do not apply, for example: | ||
+ | |||
+ | <code c> | ||
+ | $var(x) = 0; | ||
+ | if($var(x) == 0) { | ||
+ | # do something | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | For pseudo-variables, | ||
+ | |||
+ | <code c> | ||
+ | $var(x) = 1; | ||
+ | if($var(x)) { | ||
+ | # do something | ||
+ | } | ||
+ | </ | ||
??? How is the SIP request retransmission handled? | ??? How is the SIP request retransmission handled? |