User Tools

Site Tools


tutorials:faq:main

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

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
 +}
 +</code>
 +
 +For pseudo-variables, the non-zero value is evaluated to true and zero to false, for example:
 +
 +<code c>
 +$var(x) = 1;
 +if($var(x)) {
 +  # do something
 +}
 +</code>
  
 ??? How is the SIP request retransmission handled? ??? How is the SIP request retransmission handled?
tutorials/faq/main.txt ยท Last modified: 2021/08/27 08:11 by miconda