Как настроить siproxyd.
-
Проблема может быть в дупликации записей конфига в /conf/config.xml
-
Кусок config.xml относящийся (в этом не уверен) к siproxd. Настройки почему-то дублируются 4 раза
<siproxdsettings><config><config><if_inbound>lan</if_inbound>
<if_outbound>wan</if_outbound>
<port><defaulttimeout><rtpenable>1</rtpenable>
<rtplower><rtpupper><rtptimeout><rtp_input_dejitter><rtp_output_dejitter><tcp_timeout><tcp_connect_timeout><tcp_keepalive><authentication><outboundproxyhost><outboundproxyport><expeditedforwarding><expeditedsipforwarding><plugin_defaulttarget><plugin_defaulttarget_log><plugin_defaulttarget_target><plugin_fix_bogus_via><plugin_fix_bogus_via_networks><plugin_stun><plugin_stun_server><plugin_stun_port><plugin_stun_period><debug_level>0x00000000</debug_level></plugin_stun_period></plugin_stun_port></plugin_stun_server></plugin_stun></plugin_fix_bogus_via_networks></plugin_fix_bogus_via></plugin_defaulttarget_target></plugin_defaulttarget_log></plugin_defaulttarget></expeditedsipforwarding></expeditedforwarding></outboundproxyport></outboundproxyhost></authentication></tcp_keepalive></tcp_connect_timeout></tcp_timeout></rtp_output_dejitter></rtp_input_dejitter></rtptimeout></rtpupper></rtplower></defaulttimeout></port></config>
<config><if_inbound>lan</if_inbound>
<if_outbound>lan</if_outbound>
<port><defaulttimeout><rtpenable>1</rtpenable>
<rtplower><rtpupper><rtptimeout><rtp_input_dejitter><rtp_output_dejitter><tcp_timeout><tcp_connect_timeout><tcp_keepalive><authentication><outboundproxyhost><outboundproxyport><expeditedforwarding><expeditedsipforwarding><plugin_defaulttarget><plugin_defaulttarget_log><plugin_defaulttarget_target><plugin_fix_bogus_via><plugin_fix_bogus_via_networks><plugin_stun><plugin_stun_server><plugin_stun_port><plugin_stun_period><debug_level>0x00000000</debug_level></plugin_stun_period></plugin_stun_port></plugin_stun_server></plugin_stun></plugin_fix_bogus_via_networks></plugin_fix_bogus_via></plugin_defaulttarget_target></plugin_defaulttarget_log></plugin_defaulttarget></expeditedsipforwarding></expeditedforwarding></outboundproxyport></outboundproxyhost></authentication></tcp_keepalive></tcp_connect_timeout></tcp_timeout></rtp_output_dejitter></rtp_input_dejitter></rtptimeout></rtpupper></rtplower></defaulttimeout></port></config>
<config><if_inbound>lan</if_inbound>
<if_outbound>wan</if_outbound>
<port>5061</port>
<defaulttimeout>300</defaulttimeout>
<rtpenable>1</rtpenable>
<rtplower><rtpupper><rtptimeout><rtp_input_dejitter><rtp_output_dejitter><tcp_timeout><tcp_connect_timeout><tcp_keepalive><authentication><outboundproxyhost><outboundproxyport><expeditedforwarding><expeditedsipforwarding><plugin_defaulttarget><plugin_defaulttarget_log><plugin_defaulttarget_target><plugin_fix_bogus_via><plugin_fix_bogus_via_networks><plugin_stun><plugin_stun_server><plugin_stun_port><plugin_stun_period><debug_level>0x00000000</debug_level></plugin_stun_period></plugin_stun_port></plugin_stun_server></plugin_stun></plugin_fix_bogus_via_networks></plugin_fix_bogus_via></plugin_defaulttarget_target></plugin_defaulttarget_log></plugin_defaulttarget></expeditedsipforwarding></expeditedforwarding></outboundproxyport></outboundproxyhost></authentication></tcp_keepalive></tcp_connect_timeout></tcp_timeout></rtp_output_dejitter></rtp_input_dejitter></rtptimeout></rtpupper></rtplower></config>
<config><if_inbound>wan</if_inbound>
<if_outbound>lan</if_outbound>
<port><defaulttimeout><rtpenable>1</rtpenable>
<rtplower><rtpupper><rtptimeout><rtp_input_dejitter><rtp_output_dejitter><tcp_timeout><tcp_connect_timeout><tcp_keepalive><authentication><outboundproxyhost><outboundproxyport><expeditedforwarding><expeditedsipforwarding><plugin_defaulttarget><plugin_defaulttarget_log><plugin_defaulttarget_target><plugin_fix_bogus_via><plugin_fix_bogus_via_networks><plugin_stun><plugin_stun_server><plugin_stun_port><plugin_stun_period><debug_level>0x00000000</debug_level></plugin_stun_period></plugin_stun_port></plugin_stun_server></plugin_stun></plugin_fix_bogus_via_networks></plugin_fix_bogus_via></plugin_defaulttarget_target></plugin_defaulttarget_log></plugin_defaulttarget></expeditedsipforwarding></expeditedforwarding></outboundproxyport></outboundproxyhost></authentication></tcp_keepalive></tcp_connect_timeout></tcp_timeout></rtp_output_dejitter></rtp_input_dejitter></rtptimeout></rtpupper></rtplower></defaulttimeout></port></config></config></siproxdsettings>После нажатия Save System logs: System выдает вотэто
Jan 4 17:27:09 siproxd[3918]: readconf.c:309 ERROR:unknown keyword in config file, line:"plugindir=/usr/local/lib/siproxd/"
Jan 4 17:27:09 siproxd[3918]: readconf.c:309 ERROR:unknown keyword in config file, line:"load_plugin=plugin_logcall.la"
Jan 4 17:27:09 siproxd[3918]: siproxd.c:193 INFO:siproxd-0.7.0-4577 i386-unknown-freebsd7.0 starting up
Jan 4 17:27:09 siproxd[3920]: siproxd.c:241 INFO:daemonized, pid=3920
Jan 4 17:27:09 siproxd[3920]: sock.c:65 INFO:bound to port 5060
Jan 4 17:27:09 siproxd[3920]: siproxd.c:287 INFO:siproxd-0.7.0-4577 i386-unknown-freebsd7.0 started
Jan 4 17:27:12 check_reload_status: reloading filter
Jan 4 17:27:12 php: : Sipproxd is installed but not started. Not installing redirect rules.
Jan 4 17:27:17 siproxd[4084]: readconf.c:309 ERROR:unknown keyword in config file, line:"plugindir=/usr/local/lib/siproxd/"
Jan 4 17:27:17 siproxd[4084]: readconf.c:309 ERROR:unknown keyword in config file, line:"load_plugin=plugin_logcall.la"
Jan 4 17:27:17 siproxd[4084]: siproxd.c:193 INFO:siproxd-0.7.0-4577 i386-unknown-freebsd7.0 starting up
Jan 4 17:27:17 siproxd[4086]: siproxd.c:241 INFO:daemonized, pid=4086
Jan 4 17:27:17 siproxd[4086]: sock.c:65 INFO:bound to port 5060
Jan 4 17:27:17 siproxd[4086]: siproxd.c:287 INFO:siproxd-0.7.0-4577 i386-unknown-freebsd7.0 started
Jan 4 17:27:23 check_reload_status: reloading filter -
Оставьте в этой секции так:
<siproxdsettings><config> <if_inbound>lan</if_inbound> <if_outbound>wan</if_outbound> <port><defaulttimeout><rtpenable>1</rtpenable> <rtplower><rtpupper><rtptimeout><rtp_input_dejitter><rtp_output_dejitter><tcp_timeout><tcp_connect_timeout><tcp_keepalive><authentication><outboundproxyhost><outboundproxyport><expeditedforwarding><expeditedsipforwarding><plugin_defaulttarget><plugin_defaulttarget_log><plugin_defaulttarget_target><plugin_fix_bogus_via><plugin_fix_bogus_via_networks><plugin_stun><plugin_stun_server><plugin_stun_port><plugin_stun_period><debug_level>0x00000000</debug_level></plugin_stun_period></plugin_stun_port></plugin_stun_server></plugin_stun></plugin_fix_bogus_via_networks></plugin_fix_bogus_via></plugin_defaulttarget_target></plugin_defaulttarget_log></plugin_defaulttarget></expeditedsipforwarding></expeditedforwarding></outboundproxyport></outboundproxyhost></authentication></tcp_keepalive></tcp_connect_timeout></tcp_timeout></rtp_output_dejitter></rtp_input_dejitter></rtptimeout></rtpupper></rtplower></defaulttimeout></port></config></siproxdsettings>
Затем удалите файл /tmp/config.cache и настройте конфигурацию siproxyd заново.
-
Проблема решилась?Столкнулся с тем же что и ТС.
-
Если делать как говорит dvserg,то веб морда ломается и приходится делать restore.
-
Если делать как говорит dvserg,то веб морда ломается и приходится делать restore.
Значит неправильно делаете, где-то лишнее удаляете - скобку какую или лишние пустые строки оставляете.
Уберите все между <siproxdsettings>и</siproxdsettings> . -
Не работает.
Мои действия:
1)Установил Siproxd
2)зашел в настройки siproxd, изменил значения и нажал save.
3)открываю конфиг и удаляю то что вы указали.
4)открываю файл config.cache и удаляю его содержимое.в итоге морда ломается и приходится все возвращать.
-
Порядок: 1->3->4->2
Цель - удалить лишние записи в конфиге и создать их заново
В п.4 файл config.cache нужно удалить вообще, чтобы перечитался config.xml -
Как открыть,изменить и сохранить знаю.как удалить не подскажите? ??? ???
-
удалить файл - rm
удалить строчку в редакторе vi - нажать два раза d -
сделал все таки.
-
настройки сохраняются но в логах System вот такое вылазит.
Jan 9 07:45:41 siproxd[50948]: readconf.c:309 ERROR:unknown keyword in config file, line:"plugindir=/usr/local/lib/siproxd/" Jan 9 07:45:41 siproxd[50948]: readconf.c:309 ERROR:unknown keyword in config file, line:"load_plugin=plugin_logcall.la" Jan 9 07:45:41 siproxd[50948]: siproxd.c:193 INFO:siproxd-0.7.0-4577 i386-unknown-freebsd7.0 starting up Jan 9 07:45:41 siproxd[50950]: siproxd.c:241 INFO:daemonized, pid=50950 Jan 9 07:45:41 siproxd[50950]: sock.c:65 INFO:bound to port 5080 Jan 9 07:45:41 siproxd[50950]: siproxd.c:287 INFO:siproxd-0.7.0-4577 i386-unknown-freebsd7.0 started Jan 9 07:45:46 check_reload_status: reloading filter Jan 9 07:45:49 php: : Sipproxd is installed but not started. Not installing redirect rules. Jan 9 07:45:50 siproxd[51132]: readconf.c:309 ERROR:unknown keyword in config file, line:"plugindir=/usr/local/lib/siproxd/" Jan 9 07:45:50 siproxd[51132]: readconf.c:309 ERROR:unknown keyword in config file, line:"load_plugin=plugin_logcall.la" Jan 9 07:45:50 siproxd[51132]: siproxd.c:193 INFO:siproxd-0.7.0-4577 i386-unknown-freebsd7.0 starting up Jan 9 07:45:50 siproxd[51134]: siproxd.c:241 INFO:daemonized, pid=51134 Jan 9 07:45:51 siproxd[51134]: sock.c:65 INFO:bound to port 5080 Jan 9 07:45:51 siproxd[51134]: siproxd.c:287 INFO:siproxd-0.7.0-4577 i386-unknown-freebsd7.0 started
-
удалить файл - rm
удалить строчку в редакторе vi - нажать два раза dА что редактор ee не проще будет чем vi ?
-
-
Отредактировал Config.xml
Удалил config.cashe
Настройки sipproxid стали сохраняться, но упал squid.
Чтото наверно случайно зацепил , попробую все с нуля сделать.