Symptoms
- Specific Asterisk functionality is no longer available or completely non-functioning, but other Asterisk features and modules continue to function.
- Specific Asterisk CLI commands are no longer available.
Example:
No such command 'sip show peers'
We can presume that something is wrong with chan_sip module since we know it provides the ‘sip’ commands and sub-commands.
Problem
Asterisk has started successfully and the module providing the missing functionality either didn’t load at all, or it loaded but isn’t running.
The reason for the failure to load or run is typically invalid configuration or a failure to parse the configuration for the module.
- Symptoms
- Problem
- Solution
- Troubleshooting
- Check Module Loaded and Running States
- Make sure Asterisk is configured to load the module
- Check For Module Loading Issues on Asterisk Startup
Solution
Identify the state of the module. If the module is loaded but not running, or not loaded at all, then resolve file format, configuration syntax issues or unwanted modules.conf configuration for the specific module. Restart Asterisk.
Check Module Loaded and Running States
From the Asterisk CLI you can use the ‘module show’ commands to identify the state of a module.
Previous to Asterisk 12, you could only see if the module is loaded. However it may not actually be running (usable).
*CLI> module show like chan_sip.so Module Description Use Count chan_sip.so Session Initiation Protocol (SIP) 0 1 modules loaded
In Asterisk 12 and beyond you can quickly see if a module is loaded and whether it is running or not.
*CLI> module show like chan_sip.so Module Description Use Count Status chan_sip.so Session Initiation Protocol (SIP) 0 Not Running 1 modules loaded
Make sure Asterisk is configured to load the module
Modules.conf is a core configuration file that includes parameters affecting module loading and loading order. There are a few items to check.
Verify that autoload=yes is enabled if you are intending to load modules from the Asterisk modules directory automatically.
Verify that there is not a ‘noload’ line for the module that is failing to load. That is, if we had a line as follows:
That would tell Asterisk to not load chan_sip.so.
If you are not using autoload, then be sure you have a load line for the module you desire to load.
Check For Module Loading Issues on Asterisk Startup
Now that we know the suspect module should be loading, we can look at some logs that may tell us what is happening.
Stop Asterisk
Be sure Asterisk is stopped to avoid issues with making the logs confusing.
asterisk -rx "core stop now"
or
Enable logging channels
You can read in detail about Logging facilities on the wiki. In short, for this example, make sure you have the following lines uncommented in your logger.conf file.
[logfiles] full => notice,warning,error,debug,verbose
Clear out old logs
You don’t want to mistakenly look at an older log where Asterisk was loading appropriately.
Remove the most recent log file, or else move it somewhere you want to keep it.
# rm /var/log/asterisk/full
Start Asterisk with appropriate log levels
It is important to start Asterisk with log levels that will provide us enough information.
You’ll see a lot of information output in the terminal as Asterisk loads.
Stop Asterisk after it has finished loading
After the output calms down and Asterisk has finished loading, go ahead and stop Asterisk. The logs should have already been recorded.
Search the log file using keywords based on the specific module that appeared to be failing to load or run.
/var/log/asterisk# grep -i chan_sip full [Oct 9 14:54:43] VERBOSE[21809] chan_sip.c: SIP channel loading... [Oct 9 14:54:43] ERROR[21809] chan_sip.c: Contents of sip.conf are invalid and cannot be parsed /var/log/asterisk# grep -i sip.conf full [Oct 9 14:54:43] DEBUG[21809] config.c: Parsing /etc/asterisk/sip.conf [Oct 9 14:54:43] VERBOSE[21809] config.c: == Parsing '/etc/asterisk/sip.conf': Found [Oct 9 14:54:43] WARNING[21809] config.c: parse error: No category context for line 1 of /etc/asterisk/sip.conf [Oct 9 14:54:43] ERROR[21809] chan_sip.c: Contents of sip.conf are invalid and cannot be parsed [Oct 9 14:54:55] DEBUG[21809] config.c: Parsing /etc/asterisk/sip.conf [Oct 9 14:54:55] VERBOSE[21809] config.c: == Parsing '/etc/asterisk/sip.conf': Found [Oct 9 14:54:55] WARNING[21809] config.c: parse error: No category context for line 1 of /etc/asterisk/sip.conf
Based on the lines found, you can then use an editor like VIM to view the full log and jump to where the relevant messages are.
[Oct 9 14:54:43] VERBOSE[21809] chan_sip.c: SIP channel loading... [Oct 9 14:54:43] DEBUG[21809] config.c: Parsing /etc/asterisk/sip.conf [Oct 9 14:54:43] VERBOSE[21809] config.c: == Parsing '/etc/asterisk/sip.conf': Found [Oct 9 14:54:43] WARNING[21809] config.c: parse error: No category context for line 1 of /etc/asterisk/sip.conf [Oct 9 14:54:43] ERROR[21809] chan_sip.c: Contents of sip.conf are invalid and cannot be parsed
In this case, not much more is revealed past what we saw with grep. You can see that Asterisk tries to load and run chan_sip, it fails because the contents of sip.conf are invalid and cannot be parsed. The most specific clue is the WARNING:
WARNING[21809] config.c: parse error: No category context for line 1 of /etc/asterisk/sip.conf
If we look at line 1 of sip.conf we’ll spot the root problem.
general] context=public allowoverlap=no
For our example, a square bracket is missing from the context definition! Fix this issue, restart Asterisk and things should work assuming I don’t have any other syntax errors.
- Печать
Страницы: [1] 2 Все Вниз
Тема: Asterisk и Web интерфейс (Прочитано 26235 раз)
0 Пользователей и 1 Гость просматривают эту тему.

Asmodean
Добрый день.
Помогите прикрутить WEB интерфейс к Asterisk.
Asterisk поставил из портов. К нему прикрепил web интерфейс. Проверки прошли замечательно.
Но когда набираю в веб браузере строку http://localhost:8088/asterisk/static-http/config/index.html пишет: Попытка соединения не удалась.
Проверяю телнетом localhost 80 заходит, а вот дщсфдрщые 8088 нет.
Я так понимаю что делаю в файерволе, но я нигде не могу его найти. Правило iptables чистые…
Может кто-нибудь подскажет куда ковырять. Спасибо.

terrible_user
1 ) Какой именно из ГЕёВ
2 ) Прям так и пишет по русски: «Попытка соединения не удалась»
3) cat /etc/asterisk/http.conf ?
4) ls -la /var/lib/asterisk/static-http/ ?
Бери больше, кидай дальше

Asmodean
mas@127:~$ ls -la /var/lib/asterisk/static-http/
итого 16
пока не разобрался как вставлять коды.
drwxr-xr-x 3 asterisk asterisk 4096 2009-11-05 16:33 .
drwxr-xr-x 7 asterisk asterisk 4096 2009-11-05 16:33 ..
drwxrwxrwx 6 asterisk asterisk 4096 2009-11-05 16:33 config
-rw-r—r— 1 asterisk asterisk 216 2009-11-05 16:33 index.html
mas@127:~$ sudo cat /etc/asterisk/http.conf
[general]
enabled=yes
enablestatic=yes
bindaddr=127.0.0.1
bindport=8088
prefix=asterisk
А вот на подключение по telnet.
mas@127:~$ telnet localhost 8088
Trying ::1…
Trying 127.0.0.1…
telnet: Unable to connect to remote host: Connection refused

terrible_user
« Последнее редактирование: 06 Ноября 2009, 09:43:37 от terrible_user »
Бери больше, кидай дальше

Asmodean
mas@127:~$ sudo iptables-save
# Generated by iptables-save v1.4.4 on Fri Nov 6 09:49:04 2009
*filter
:INPUT ACCEPT [50832:25589657]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [16947:2172490]
COMMIT
# Completed on Fri Nov 6 09:49:04 2009
изменил ничего не помогает. все тоже самое.
И по поти static-http тоже не заходит.
« Последнее редактирование: 06 Ноября 2009, 09:52:11 от Asmodean »

terrible_user
sudo netstat -an | grep 8088
Если пусто, то веб сервер астерикса не запустился
посмотреть лог
Бери больше, кидай дальше

Asmodean
netstat ни чего не показывает.
mas@127:~$ cat /var/log/asterisk/messages
cat: /var/log/asterisk/messages: Permission denied
mas@127:~$ sudo cat /var/log/asterisk/messages
[Nov 6 10:44:44] WARNING[18512] config.c: parse error: No category context for line 1 of /etc/asterisk/http.conf
[Nov 6 10:44:44] NOTICE[18512] cdr.c: CDR simple logging enabled.
[Nov 6 10:44:44] NOTICE[18512] loader.c: 195 modules will be loaded.
[Nov 6 10:44:44] WARNING[18512] loader.c: Error loading module 'cdr_odbc.so': /usr/lib/asterisk/modules/cdr_odbc.so: undefined symbol: ast_odbc_request_obj
[Nov 6 10:44:44] WARNING[18512] loader.c: Error loading module 'app_speech_utils.so': /usr/lib/asterisk/modules/app_speech_utils.so: undefined symbol: ast_speech_start
[Nov 6 10:44:44] WARNING[18512] loader.c: Error loading module 'func_odbc.so': /usr/lib/asterisk/modules/func_odbc.so: undefined symbol: SQLFetch
[Nov 6 10:44:44] WARNING[18512] loader.c: Error loading module 'chan_gtalk.so': /usr/lib/asterisk/modules/chan_gtalk.so: undefined symbol: ast_aji_get_client
[Nov 6 10:44:44] WARNING[18512] loader.c: Error loading module 'cdr_adaptive_odbc.so': /usr/lib/asterisk/modules/cdr_adaptive_odbc.so: undefined symbol: ast_odbc_request_obj
[Nov 6 10:44:44] WARNING[18512] loader.c: Error loading module 'pbx_ael.so': /usr/lib/asterisk/modules/pbx_ael.so: undefined symbol: ast_compile_ael2
[Nov 6 10:44:44] NOTICE[18512] config.c: Registered Config Engine sqlite
[Nov 6 10:44:44] NOTICE[18512] res_odbc.c: res_odbc loaded.
[Nov 6 10:44:44] WARNING[18512] res_config_ldap.c: No directory user found, anonymous binding as default.
[Nov 6 10:44:44] ERROR[18512] res_config_ldap.c: No directory URL or host found.
[Nov 6 10:44:44] NOTICE[18512] res_config_ldap.c: Cannot load LDAP RealTime driver.
[Nov 6 10:44:44] NOTICE[18512] res_smdi.c: No SMDI interfaces are available to listen on, not starting SMDI listener.
[Nov 6 10:44:44] NOTICE[18512] chan_skinny.c: Configuring skinny from skinny.conf
[Nov 6 10:44:45] WARNING[18512] chan_skinny.c: Unable to get our IP address, Skinny disabled
[Nov 6 10:44:45] WARNING[18512] pbx_dundi.c: Unable to look up host '127.0.0.1 ubuntu.htservice.local localhost ubuntu'
[Nov 6 10:44:45] WARNING[18512] config.c: parse error: No category context for line 1 of /etc/asterisk/http.conf
[Nov 6 10:44:45] WARNING[18512] translate.c: plc_samples 160 format f
[Nov 6 10:44:45] NOTICE[18512] pbx_ael.c: Starting AEL load process.
[Nov 6 10:44:45] NOTICE[18512] pbx_ael.c: AEL load process: parsed config file name '/etc/asterisk/extensions.ael'.
[Nov 6 10:44:45] NOTICE[18512] pbx_ael.c: AEL load process: checked config file name '/etc/asterisk/extensions.ael'.
[Nov 6 10:44:45] NOTICE[18512] pbx_ael.c: AEL load process: compiled config file name '/etc/asterisk/extensions.ael'.
[Nov 6 10:44:45] NOTICE[18512] pbx_ael.c: AEL load process: merged config file name '/etc/asterisk/extensions.ael'.
[Nov 6 10:44:45] NOTICE[18512] pbx_ael.c: AEL load process: verified config file name '/etc/asterisk/extensions.ael'.
[Nov 6 10:44:45] WARNING[18512] chan_mgcp.c: Unable to get our IP address, MGCP disabled
[Nov 6 10:44:45] WARNING[18512] chan_dahdi.c: Ignoring any changes to 'userbase' (on reload) at line 23.
[Nov 6 10:44:45] WARNING[18512] chan_dahdi.c: Ignoring any changes to 'vmsecret' (on reload) at line 31.
[Nov 6 10:44:45] WARNING[18512] chan_dahdi.c: Ignoring any changes to 'hassip' (on reload) at line 35.
[Nov 6 10:44:45] WARNING[18512] chan_dahdi.c: Ignoring any changes to 'hasiax' (on reload) at line 39.
[Nov 6 10:44:45] WARNING[18512] chan_dahdi.c: Ignoring any changes to 'hasmanager' (on reload) at line 47.
[Nov 6 10:44:45] WARNING[18512] utils.c: trying to reset empty pool
[Nov 6 10:44:45] WARNING[18512] utils.c: trying to reset empty pool
[Nov 6 10:44:45] WARNING[18512] utils.c: trying to reset empty pool
[Nov 6 10:44:45] ERROR[18512] ais/clm.c: Could not initialize cluster membership service: Try Again
[Nov 6 10:44:45] NOTICE[18512] config.c: Registered Config Engine curl
[Nov 6 10:44:45] WARNING[18512] res_musiconhold.c: No music on hold classes configured, disabling music on hold.
« Последнее редактирование: 06 Ноября 2009, 10:58:42 от Asmodean »

terrible_user
No category context for line 1 of /etc/asterisk/http.conf
Unable to look up host ‘127.0.0.1 ubuntu.htservice.local localhost ubuntu’
Unable to get our IP address
Хз косяк на косяке, тебе надо на тематический форум или переставать попробовать если это приемлимо
Какая версия убунты ?
Бери больше, кидай дальше

Asmodean
версия 9.10
не помогает удалял и заново ставил, все равно с такими ошибками вываливается.

terrible_user
Бери больше, кидай дальше

Asmodean
не. мы не ищем легких путей. Будем мучать.
Пользователь решил продолжить мысль 06 Ноября 2009, 14:59:47:
обноржил, что asterisk не читает файл http.conf
так как, что бы в нем не изменял, вывод команды не изменяется постоянно одно и тоже.
ubuntu*CLI> http show status
HTTP Server Status:
Prefix:
Server Disabled
Enabled URI's:
/httpstatus => Asterisk HTTP General Status
/phoneprov/... => Asterisk HTTP Phone Provisioning Tool
/manager => HTML Manager Event Interface
/rawman => Raw HTTP Manager Event Interface
/static/... => Asterisk HTTP Static Delivery
/mxml => XML Manager Event Interface
Enabled Redirects:
None.
Пользователь решил продолжить мысль 06 Ноября 2009, 18:23:43:
Ответ содержался в этой строчке
No category context for line 1 of /etc/asterisk/http.conf
При внимательном рассмотрении выяснилось, что asterisk компилируется с такой ошибкой в этом файле в первой строке стоит +.
Убрав + все заработало.
Тему можно закрывать.
Спасибо terrible_user.
« Последнее редактирование: 06 Ноября 2009, 18:23:43 от Asmodean »

Varvar
Всем привет.
Такая же проблема, такие же исходные данные, тот же лог , та же проблемная 1-я строчка No category context for line 1 of /etc/asterisk/http.conf
Только вот не вижу никаких проблем с файлом http.conf
Хотя, возможно, проблема в смотрящем
Вот файл:
;
; Asterisk Builtin mini-HTTP server
;
;
[general]
;
; Whether HTTP interface is enabled or not. Default is no.
;
enabled=yes
;
; Whether Asterisk should serve static content from http-static
; Default is no.
;
enablestatic=yes
;
; Address to bind to. Default is 0.0.0.0
;
;bindaddr=127.0.0.1
;
; Port to bind to (default is 8088)
;
bindport=8088
;
; Prefix allows you to specify a prefix for all requests
; to the server. The default is «asterisk» so that all
; requests must begin with /asterisk
;
;prefix=asterisk
; The post_mappings section maps URLs to real paths on the filesystem. If a
; POST is done from within an authenticated manager session to one of the
; configured POST mappings, then any files in the POST will be placed in the
; configured directory.
;
;[post_mappings]
;
; In this example, if the prefix option is set to «asterisk», then using the
; POST URL: /asterisk/uploads will put files in /var/lib/asterisk/uploads/.
;uploads = /var/lib/asterisk/uploads/
;
Если можно, прошу ткнуть носом.
«Отродясь такого не было, и вот — опять» …приписывается Черномырдину В.С.

terrible_user
Ты очисти лог и перезапусти
Точно такое сообщение ?!
No category context for line 1 of /etc/asterisk/http.conf
значит удали все строки и пробелы в начале файла и что бы он (файл) начинался с
[general]
..
Бери больше, кидай дальше

Varvar
Лог почистил и перезапустил, но теперь он в него вообще ничего не пишет.
В http.conf все строки и пробелы до [general] удалил — не помогло.
Сообщение было точно такое.
Такое ощущение, что он вообще веб-сервер не запускает, по крайней мере на netstat -an | grep 8088 тишина в ответ, ничего не пишет. Также как и на 5038.
«Отродясь такого не было, и вот — опять» …приписывается Черномырдину В.С.

terrible_user
cat /etc/asterisk/http.conf -n
ls -l /etc/asterisk/http.conf
Бери больше, кидай дальше
- Печать
Страницы: [1] 2 Все Вверх
Модератор: april22
Установка и настройка Dahdi
Здравствуйте!
Настраиваю Dahdi!
Когда выполняю команду dahdi restart в консоле Астериск вылетаетает ошибка
- Код: выделить все
Oct 10 18:23:35] WARNING[3191]: config.c:1299 process_text_line: parse error: No category context for line 4 of /etc/asterisk/chan_dahdi.conf
[Oct 10 18:23:35] ERROR[3191]: chan_dahdi.c:18161 setup_dahdi_int: File chan_dahdi.conf cannot be parsed. Aborting.
С чем это может быть связано?*
- angol
- Сообщений: 10
- Зарегистрирован: 10 окт 2013, 19:17
Re: Установка и настройка Dahdi
Vlad1983 » 10 окт 2013, 19:30
context задается после group
- Vlad1983
- Сообщений: 4251
- Зарегистрирован: 09 авг 2011, 11:51
Re: Установка и настройка Dahdi
angol » 11 окт 2013, 10:05
Vlad1983 писал(а):context задается после group
А для особо одаренных можете объяснить
- angol
- Сообщений: 10
- Зарегистрирован: 10 окт 2013, 19:17
Re: Установка и настройка Dahdi
Wapo » 11 окт 2013, 10:08
Для «особо одаренных» — вы посмотрите-покажите свой chan-dahdi в том месте на которое указывается в ошибке.
-
Wapo - Сообщений: 795
- Зарегистрирован: 02 мар 2011, 18:53
Re: Установка и настройка Dahdi
angol » 11 окт 2013, 12:50
Wapo писал(а):Для «особо одаренных» — вы посмотрите-покажите свой chan-dahdi в том месте на которое указывается в ошибке.
- Код: выделить все
;General options
[b]usecallerid = yes[/b] - это место
hidecallerid = no
callwaiting = yes
threewaycalling = yes
transfer = yes
echocancel = yes
echocancelwhenbridged = yes
rxgain = 0.0
txgain = 0.0;FXS Modules
group = 1
signalling = fxo_ks
context = Internalchannel = 1
;FXO Modules
group = 2
echocancel = yes
signalling = fxs_ks
context = Incomingchannel = 2,3,4
- angol
- Сообщений: 10
- Зарегистрирован: 10 окт 2013, 19:17
Re: Установка и настройка Dahdi
zzuz » 11 окт 2013, 12:56
Где категория [channels] ? Читать мануалы в срочном порядке!
Линия24 — Системы Массового Телефонного Обслуживания
-
zzuz - Сообщений: 1658
- Зарегистрирован: 21 сен 2010, 13:33
-
- Сайт
- ICQ
Re: Установка и настройка Dahdi
angol » 11 окт 2013, 13:02
zzuz писал(а):Где категория [channels] ?
Когда добавляю категорию [channels] то происходят следующие ошибки
- Код: выделить все
[Oct 11 11:58:55] WARNING[3216]: chan_dahdi.c:4376 dahdi_open: Unable to specify channel 1: No such device or address
[Oct 11 11:58:55] WARNING[3216]: chan_dahdi.c:4376 dahdi_open: Unable to specify channel 1: No such device or address
[Oct 11 11:58:55] WARNING[3216]: chan_dahdi.c:4376 dahdi_open: Unable to specify channel 1: No such device or address
[Oct 11 11:58:55] WARNING[3216]: chan_dahdi.c:4376 dahdi_open: Unable to specify channel 1: No such device or address
[Oct 11 11:58:55] WARNING[3216]: chan_dahdi.c:4376 dahdi_open: Unable to specify channel 1: No such device or address
[Oct 11 11:58:55] WARNING[3216]: chan_dahdi.c:4376 dahdi_open: Unable to specify channel 1: No such device or address
[Oct 11 11:58:55] WARNING[3216]: chan_dahdi.c:4376 dahdi_open: Unable to specify channel 1: No such device or address
[Oct 11 11:58:55] ERROR[3216]: chan_dahdi.c:12390 mkintf: Unable to open channel 1: No such device or address
here = 0, tmp->channel = 1, channel = 1
[Oct 11 11:58:55] ERROR[3216]: chan_dahdi.c:16882 build_channels: Unable to register channel '1'
[Oct 11 11:58:55] WARNING[3216]: chan_dahdi.c:15194 dahdi_restart: Reload channels from dahdi config failed!
- angol
- Сообщений: 10
- Зарегистрирован: 10 окт 2013, 19:17
Re: Установка и настройка Dahdi
ded » 11 окт 2013, 13:09
Найти в тырнетах инструкцию (их много) по конфигурации, диагностике DAHDI и выполнить её буквально.
- ded
- Сообщений: 15466
- Зарегистрирован: 26 авг 2010, 19:00
Re: Установка и настройка Dahdi
angol » 11 окт 2013, 13:10
Буквально и выполнил
- angol
- Сообщений: 10
- Зарегистрирован: 10 окт 2013, 19:17
Re: Установка и настройка Dahdi
ded » 11 окт 2013, 13:11
Ну тогда у Вас всё в порядке.
Если не в порядке — см. п. 1.
- ded
- Сообщений: 15466
- Зарегистрирован: 26 авг 2010, 19:00
Вернуться в Конфигурация и настройка Asterisk
Кто сейчас на форуме
Сейчас этот форум просматривают: нет зарегистрированных пользователей и гости: 8
Asterisk/1.4.21.2~dfsg-1ubuntu3
Asterisk GUI-version : SVN-branch-2.0-r4589
Установка Asterisk
Установка необходимого набора утилит
sudo apt-get install build-essential sudo apt-get install subversion
Установка основного пакета
sudo apt-get install asterisk
backup основных настроек будет не лишним
sudo cp -rpv /etc/asterisk/ /etc/asterisk.bak
Установка GUI
Создание папки, где будут размещаться установочные файлы GUI и его загрузка с помощью утилиты svn
mkdir ~/asterisk-gui cd ~/asterisk-gui/ svn export http://svn.digium.com/svn/asterisk-gui/branches/2.0/ cd 2.0/
Конфигурирование и установка
./configure sudo make install
Установочная директория GUI /var/lib/asterisk/
на нее должны быть права у пользователя asterisk
Так как установка была от пользователя root, установим владельца и группу asterisk на всю директорию
sudo chown asterisk:asterisk -R /var/lib/asterisk/
Настроим доступ для управления Asterisk’ом с конфигурацией для пользователя admin и паролем 1234
/etc/asterisk/manager.conf
; ; Asterisk Call Management support ; ; By default asterisk will listen on localhost only. [general] enabled = yes port = 5038 ;bindaddr = 127.0.0.1 webenabled = yes ; No access is allowed by default. ; To set a password, create a file in /etc/asterisk/manager.d ; use creative permission games to allow other serivces to create their own ; files ;include "manager.d/*.conf" [admin] secret = 1234 read = system,call,log,verbose,command,agent,user,config write = system,call,log,verbose,command,agent,user,config
Настройка веб сервера Asterisk’a
/etc/asterisk/http.conf
; ; Asterisk Builtin mini-HTTP server ; ; [general] ; ; Whether HTTP interface is enabled or not. Default is no. ; enabled=yes ; ; Whether Asterisk should serve static content from http-static ; Default is no. ; enablestatic=yes ; ; Address to bind to. Default is 0.0.0.0 ; ;bindaddr=127.0.0.1 ; ; Port to bind to (default is 8088) ; bindport=8088 ; ; Prefix allows you to specify a prefix for all requests ; to the server. The default is "asterisk" so that all ; requests must begin with /asterisk ; ;prefix=asterisk ; The post_mappings section maps URLs to real paths on the filesystem. If a ; POST is done from within an authenticated manager session to one of the ; configured POST mappings, then any files in the POST will be placed in the ; configured directory. ; ;[post_mappings] ; ; In this example, if the prefix option is set to "asterisk", then using the ; POST URL: /asterisk/uploads will put files in /var/lib/asterisk/uploads/. ;uploads = /var/lib/asterisk/uploads/ ;
В Ubuntu 8.10 корневая директория веб сервера Asterisk’a располагается в /usr/share/asterisk/static-http/, а GUI устанавливается в /var/lib/asterisk/static-http/
поэтому необходимо удалить пустую папку
sudo rmdir /usr/share/asterisk/static-http/
и создать ссылку
sudo ln -s /var/lib/asterisk/static-http/ /usr/share/asterisk/
Выполним проверку (по прежнему находимся в директории ~/asterisk-gui/2.0)
sudo make checkconfig
Рестарт Asterisk’a
sudo /etc/init.d/asterisk restart
Заходим в панель управления
http://<you ip>:8088/asterisk/static/config/index.html
Адрес входа в панель может отличаться в разных дистрибутивах.
!Внимательно смотрите в чем разница!
http://<you ip>:8088/asterisk/static/config/index.html
/etc/asterisk/http.conf
; Prefix allows you to specify a prefix for all requests ; to the server. The default is "asterisk" so that all ; requests must begin with /asterisk ; ;prefix=asterisk
http://<you ip>:8088/static/config/index.html
/etc/asterisk/http.conf
; Prefix allows you to specify a prefix for all requests ; to the server. The default is blank. If uncommented ; all requests must begin with /asterisk ; ;prefix=asterisk
CLI команды
Вызов консоли CLI
asterisk -r
Перезагрузка конфигов (без обрыва текущих соединений)
CLI> reload
Не заходя в CLI
asterisk -rx reload
для совсем-совсем «новичка»
Откуда: саранск Сообщений: 273 |
Re: sip.confЗа флудом и прибаутками освоение потихоньку идет. Sipnet прикрутил, но кривенько. Входящие с сипнета есть , а исходящие в город после первого звонка отбиваются
[Dec 14 22:14:07] NOTICE[6138]: chan_sip.c:12377 handle_response_invite: Failed to authenticate on INVITE to ‘»User1″ <sip:200@87.119.241.12>;tag=as4825bc09’ |
Откуда: саранск Сообщений: 273 |
Re: sip.conflitnimax:
Проверил — все нормально! |
Сообщений: 6521 |
Re: sip.conffromdomain=sipnet.ru Вы хоть какие-то примеры пробовали за шутками-прибаутками? |
Откуда: саранск Сообщений: 273 |
Re: sip.confded:
C десяток примеров. Со времени последнего поста — 2. Так что все настройки похерены. Sorry… |
Откуда: саранск Сообщений: 273 |
Re: sip.confКиньте рабочие настройки, у кого есть. |
Сообщений: 6521 |
Re: sip.confusers.conf — неправильно, это старая идеология AsteriskNOW, которая уже AsteriskBEFORE http://asteriskforum.ru/viewtopic.php?t=789 |
Откуда: саранск Сообщений: 273 |
Re: sip.confЯ , по ходу, сам замотался и астериск замотал |
Откуда: Kiev Сообщений: 801 |
Re: sip.confПокажите весь свой sip.conf Лучший способ предвидеть будущее — изобрести его (Алан Кей, «Apple») |
Откуда: саранск Сообщений: 273 |
Re: sip.confbetman:
Привет! Разобрася уже;) |
Author | Message |
---|---|
Post subject: Manager.conf not working
|
|
|
Hi there, hi friends,
1)- When i create SIP or IAX friend and i hit the GENERATE_ADDITIONAL_A2BILLING_SIP.CONF, I am having the reply: Could not open buddy file ‘/etc/asterisk/additional_a2billing_sip.conf’. I even had to create the files additional_a2billing_sip.conf and additional_a2billing_iax.conf manually but the problem stands
2)- It is impossible to run the debug by typing asterisk -r |
Top |
|
Razer |
Post subject:
|
|
Looks like your Asterisk is not running in the first place and/or you are having permission issues. Make sure the files have Write Access. Cheers! |
Top |
|
Guest |
Post subject:
|
|
how to i set up the write access, i mean on what files? Please help… |
Top | |
unisport |
Post subject:
|
|
Please help:
I am having this issue again and again: this is what my /var/log/asterisk/messages says:
May 31 00:04:09 WARNING[1794] config.c: parse error: No category context for line 1 of manager.conf |
Top |
|
voippanel |
Post subject: How to run Asterisk, after installed/setup properly
|
|
|
Top |
|
unisport |
Post subject:
|
|
asterisk -vvvvvc
Having this warning in the output: As a result i can not open an asterisk console… Any idea on how to fix this? Thanks |
Top |
|
voippanel |
Post subject:
|
|
unisport wrote: asterisk -vvvvvc Having this warning in the output: As a result i can not open an asterisk console… Any idea on how to fix this? Thanks
Hello, First:- Check that all conf file under Asterisk having different port number. If all conf file under asterisk having different port number then, Second:- Is there any other application that running on the machine with Port number that is assigned also on Asterisk conf file. Either change the port number on that application OR in * conf file. Better practice is to load only those that you need in /etc/asterisk/modules.conf [all others noload] — it minimize the errors.
Also check that, you have all correct directory defined in asterisk.conf If you’ve anything wrong in *; fix it — and reboot the whole machine. OR get * fresh installation: http://www.digium.com/en/docs/asterisk_ … iling.html |
Top |
|
unisport |
Post subject:
|
|
Thanks for your help and support… I’ve done a fresh installation and it’s now working fine. Although, the SIP and AIX friends can’t still be created in to /etc/asterisk unless i do them manually all the time. Not able to use a2billing to do it… |
Top |
|
voippanel |
Post subject:
|
|
unisport wrote: Thanks for your help and support… I’ve done a fresh installation and it’s now working fine. Although, the SIP and AIX friends can’t still be created in to /etc/asterisk unless i do them manually all the time. Not able to use a2billing to do it… Hello, Its good news that you got working. Create first these two files [additional_a2billing_sip.conf & additional_a2billing_iax.conf ] manually under /etc/asterisk directory. Then follow Areski’s note exactly and set right permission. Just follow his installation giude — you will get everything working from his WEB admin control panel. |
Top |
|
toor |
Post subject:
|
|
unisport wrote: Thanks for your help and support… I’ve done a fresh installation and it’s now working fine. Although, the SIP and AIX friends can’t still be created in to /etc/asterisk unless i do them manually all the time. Not able to use a2billing to do it… oh, come on… |
Top |
|
unisport |
Post subject:
|
|
I have done it, but i am still getting the bellow error when trying to reload asterisk from a2billing WEBUI Could not open buddy file ‘/etc/asterisk/additional_a2billing_sip.conf’ Looks like a2billing does not communicate with asterisk as i cannot fine any of the card, Sip friend created in a2billing in SIP.conf and additional_a2billing_sip.conf. How can i get them to talk to each other? I mean asterisk and a2billing?
Also getting the error: chown: `wwwrun’: invalid user |
Top |
|
toor |
Post subject:
|
|
unisport wrote: I have done it, but i am still getting the bellow error when trying to reload asterisk from a2billing WEBUI Could not open buddy file ‘/etc/asterisk/additional_a2billing_sip.conf’ Looks like a2billing does not communicate with asterisk as i cannot fine any of the card, Sip friend created in a2billing in SIP.conf and additional_a2billing_sip.conf. How can i get them to talk to each other? I mean asterisk and a2billing? Also getting the error: chown: `wwwrun’: invalid user Man, before you type any CLI command you must have clear understanding what it’s doing. Otherwise you should not use CLI. wwwrun is a fake account to run your apache webserver. If you got «no such user» error message then your apache is using different account name. Like «www» or «nobody» or whatever else. Your another error message «Could not open buddy file» means that either apache or asterisk simply can’t get access to this file. Most probable reason is, again, wrong permissions settings on this file or on the directory. The easiest way is to screw all security measures and run Asterisk as root. Additionaly, you can set 666 on all your files within /etc/asterisk/ as well as 777 on all directories there. Also on /etc/asterisk itself. |
Top |
|
unisport |
Post subject:
|
|
Well, how do i get a2billing to talk to asterisk then? I really need help guys |
Top |
|
toor |
Post subject:
|
|
Wow. So loud, really. |
Top |
|
unisport |
Post subject:
|
|
Just sent you a pm!!!!!!!!!! Thanks for your help |
Top |
|