Question about how $rc works

Joel Serrano via sr-users <[email protected]>
Newsgroups gmane.comp.voip.ser
Message-ID <CAMtXxQnCmTAPYTRUfJYUZPazg0BeV4EbMPeAV9gBFs=Rk0nVZg@mail.gmail.com>
Hi All,

I have a simple doubt: are these snippets the same?

*One:*

    secf_check_country($hdr(X-SRC-IP-CC));
    $var(secf_cc_rc) = $rc;
    if ($var(secf_cc_rc) == -2) {
    ...

*Two:*

    $var(secf_cc_rc) = secf_check_country($hdr(X-SRC-IP-CC));
    if ($var(secf_cc_rc) == -2) {
    ...

They both seem to work, the docs say to use option -one-.
In case they do the same, is there a reason I should pick one over the
other? Or is this purely cosmetic?

Thanks,
Joel.

__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions -- [email protected]
To unsubscribe send an email to [email protected]
Important: keep the mailing list in the recipients, do not reply only to the sender!
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.