get_redirects(max, reason) did not properly send the value of reason to the 
accounting function resulting in a NULL reason code, and a reason of 
"Unspecified" in the accounting log, db, aaa or other storage.

This properly sends the reason to the accounting function as ```pv_elem_t```, 
instead of the ```acc_param```

Documentation is also updated to reflect how ```reason``` should be formatted.
You can view, comment on, or merge this pull request online at:

  https://github.com/OpenSIPS/opensips/pull/442

-- Commit Summary --

  * Fix get_redirects(max, reason) so that reason is properly transferred to 
the acc module function

-- File Changes --

    M modules/uac_redirect/README (13)
    M modules/uac_redirect/doc/uac_redirect_admin.xml (10)
    M modules/uac_redirect/redirect.c (48)

-- Patch Links --

https://github.com/OpenSIPS/opensips/pull/442.patch
https://github.com/OpenSIPS/opensips/pull/442.diff

---
Reply to this email directly or view it on GitHub:
https://github.com/OpenSIPS/opensips/pull/442
_______________________________________________
Devel mailing list
Devel@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel

Reply via email to