-
-
Save ionutrazvanionita/1e911974013e8778db4a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
debug=3 | |
log_stderror=yes | |
log_facility=LOG_LOCAL0 | |
fork=yes | |
children=4 | |
listen=udp:xx.xx.xx.xx:5060 | |
mpath="modules/" | |
loadmodule "proto_udp.so" | |
loadmodule "cfgutils.so" | |
loadmodule "signaling.so" | |
loadmodule "sl.so" | |
loadmodule "tm.so" | |
modparam("tm", "fr_timeout", 2) | |
modparam("tm", "fr_inv_timeout", 3) | |
modparam("tm", "restart_fr_on_each_reply", 0) | |
modparam("tm", "onreply_avp_mode", 1) | |
#### Record Route Module | |
loadmodule "rr.so" | |
/* do not append from tag to the RR (no need for this script) */ | |
modparam("rr", "append_fromtag", 0) | |
#### MAX ForWarD module | |
loadmodule "maxfwd.so" | |
#### SIP MSG OPerationS module | |
loadmodule "sipmsgops.so" | |
#### FIFO Management Interface | |
loadmodule "mi_fifo.so" | |
modparam("mi_fifo", "fifo_name", "/tmp/opensips_fifo") | |
modparam("mi_fifo", "fifo_mode", 0666) | |
#### URI module | |
loadmodule "uri.so" | |
modparam("uri", "use_uri_table", 0) | |
loadmodule "db_mysql.so" | |
loadmodule "dialog.so" | |
modparam("dialog", "db_url", "mysql://xxxx:xxxx@xx.xx.xx.xx/opensips") | |
modparam("dialog", "db_mode", 1) | |
modparam("dialog", "default_timeout", 1) | |
loadmodule "aaa_radius.so" | |
modparam("aaa_radius", "sets", "set4=(Sip-Uri-User=$ru)") | |
modparam("aaa_radius", "radius_config", "/usr/local/etc/radiusclient/radiusclient.conf") | |
route{ | |
if (is_method("INVITE")) { | |
create_dialog("B"); | |
} | |
$ru="sip:xx.xx.xx.xx:5080"; | |
t_relay(); | |
} | |
local_route { | |
radius_send_acct("set4"); | |
} |
I understand, it's my mistake. Thank you and sorry for your time.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hmmm. Maybe because you send it manually from local_route?
If opensips in my setup sends accounting in main route after set aaa_flag, I expected it will do the same when it generates BYE.
Should I send it manually from local route as you did?