[sr-dev] [kamailio/kamailio] uac_redirect: Module fails to load [regression] (Issue #3188)

Daniel-Constantin Mierla notifications at github.com
Wed Aug 10 22:28:55 CEST 2022


@gaaf: have you set the `acc_param` function to empty string? The condition is also with `uacred_acc_fct_s.s[0] != '\0'`.

In 5.5, the condition was similar, snippet next:

```
	if(rd_acc_fct == 0) {
		/* import the acc stuff */
		if(acc_fct_s != 0 && acc_fct_s[0] == '\0') {
			fct = find_export(acc_fct_s, 2, REQUEST_ROUTE);
			if(fct == 0)
				fct = find_export(acc_fct_s, 1, REQUEST_ROUTE);
			if(fct == 0) {
				LM_ERR("cannot import %s function; is acc loaded and"
						" configured\n", acc_fct_s);
				return E_UNSPEC;
			}
			rd_acc_fct = fct;
		}
	}
```

The `acc_fct_s` was renamed to `uacred_acc_fct_s` in 5.6.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/3188#issuecomment-1211233200
You are receiving this because you are subscribed to this thread.

Message ID: <kamailio/kamailio/issues/3188/1211233200 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20220810/5d724941/attachment.htm>


More information about the sr-dev mailing list