jabber+asterisk - нет подключенных пользователей
при проверке подключенного юзера выходит что его и нет
jabber show connections
Jabber Users and their status:
----
Number of users: 0
конфиг jabber.conf
[general]
;debug=no ; Enable debugging (disabled by default).
;autoprune=yes ; Auto remove users from buddy list. Depending on your
; setup (ie, using your personal Gtalk account for a test)
; you might lose your contacts list. Default is 'no'.
;autoregister=yes ; Auto register users from buddy list.
;collection_nodes=yes ; Enable support for XEP-0248 for use with
; distributed device state. Default is 'no'.
;pubsub_autocreate=yes ; Whether or not the PubSub server supports/is using
; auto-create for nodes. If it is, we have to
; explicitly pre-create nodes before publishing them.
; Default is 'no'.
;auth_policy=accept ; Auto accept users' subscription requests (default).
; Set to deny for auto denial.
;[asterisk]
;type=client ; Client or Component connection
;serverhost=шз ; Route to server for example, talk.google.com
;pubsub_node=pubsub.astjab.org ; Node to use for publishing events via PubSub
;username=asterisk@sip.ip-ufa.ru ; Username with optional resource.
;secret=asterisk ; Password
;priority=1 ; Resource priority
;port=5222 ; Port to use defaults to 5222
;usetls=yes ; Use tls or not
;usesasl=yes ; Use sasl or not
;buddy=mail@sip.ip-ufa.ru ; Manual addition of buddy to list.
; For distributed events, these buddies are
; automatically added in the whitelist as
; 'owners' of the node(s).
;distribute_events=yes ; Whether or not to distribute events using
; this connection. Default is 'no'.
;status=available ; One of: chat, available, away, xaway, or dnd
;statusmessage="Online" ; Have custom status message for Asterisk
;timeout=5 ; Timeout (in seconds) on the message stack, defaults to 5.
; Messages stored longer than this value will be deleted by Asterisk.
; This option applies to incoming messages only, which are intended to
; be processed by the JABBER_RECEIVE dialplan function.
;debug=no ; Enable debugging (disabled by default).
;autoprune=yes ; Auto remove users from buddy list. Depending on your
; setup (ie, using your personal Gtalk account for a test)
; you might lose your contacts list. Default is 'no'.
;autoregister=yes ; Auto register users from buddy list.
;collection_nodes=yes ; Enable support for XEP-0248 for use with
; distributed device state. Default is 'no'.
;pubsub_autocreate=yes ; Whether or not the PubSub server supports/is using
; auto-create for nodes. If it is, we have to
; explicitly pre-create nodes before publishing them.
; Default is 'no'.
;auth_policy=accept ; Auto accept users' subscription requests (default).
; Set to deny for auto denial.
;[asterisk]
;type=client ; Client or Component connection
;serverhost=шз ; Route to server for example, talk.google.com
;pubsub_node=pubsub.astjab.org ; Node to use for publishing events via PubSub
;username=asterisk@sip.ip-ufa.ru ; Username with optional resource.
;secret=asterisk ; Password
;priority=1 ; Resource priority
;port=5222 ; Port to use defaults to 5222
;usetls=yes ; Use tls or not
;usesasl=yes ; Use sasl or not
;buddy=mail@sip.ip-ufa.ru ; Manual addition of buddy to list.
; For distributed events, these buddies are
; automatically added in the whitelist as
; 'owners' of the node(s).
;distribute_events=yes ; Whether or not to distribute events using
; this connection. Default is 'no'.
;status=available ; One of: chat, available, away, xaway, or dnd
;statusmessage="Online" ; Have custom status message for Asterisk
;timeout=5 ; Timeout (in seconds) on the message stack, defaults to 5.
; Messages stored longer than this value will be deleted by Asterisk.
; This option applies to incoming messages only, which are intended to
; be processed by the JABBER_RECEIVE dialplan function.
на опенфайре пользователей создал, через джаббер клиенты проверял - ок.
что делал:jabber reload, делал аплоад/лоад модуля res_jabber.so - не помогает
что возможно еще сделать в данной ситуации? вообще как нибудь можно посмотреть логи данного модуля?
Последний раз редактировалось: bdyl (Чт Фев 19, 2015 10:48)
[general]
debug=no
usetls=no
usesasl=yes
type=component
serverhost=ip адрес сервера jabber - типа jabber-serv.super.perm.local
username=asterisk123@jabber-serv.super.perm.local
secret=Пароль пользователя asterisk123 на jabber сервере
port=5275
_________________
платный суппорт по мере возможностей
| awsswa @ Чт Фев 19, 2015 09:02 писал(а): |
| ну во первых все уже на xmpp.conf |
Возможно ли что из-за того что астериск и опенфайр подняты на одной машине нужно указать серверхост - localhost? хотя тут мне кажется я не прав.
_________________
платный суппорт по мере возможностей
хм, а всё таки где логи джаббер модуля астериска посмотреть можно, не знаете ли? в логах астериска пусто по джаберу кроме как то что модуль запущен, в опенфайре тоже тишина. сколько гуглил не могу найти.
логи openfire в его каталоге /opt/openfire/
_________________
платный суппорт по мере возможностей
[Feb 19 12:46:24] VERBOSE[46120] loader.c: -- Reloading module 'res_jabber.so' (AJI - Asterisk Jabber Interface)
[Feb 19 12:47:25] VERBOSE[46120] config.c: == Parsing '/usr/local/etc/asterisk/jabber.conf': [Feb 19 12:47:25] VERBOSE[46120] config.c: == Found
[Feb 19 12:47:25] VERBOSE[46120] loader.c: Loaded res_jabber.so => (AJI - Asterisk Jabber Interface)
[Feb 19 13:32:54] VERBOSE[46120] loader.c: -- Reloading module 'res_jabber.so' (AJI - Asterisk Jabber Interface)
т.е ничего касательного попыток соединения.
логи опенфайра смотрел и до этого, попыток нет. даже не знаю в какую сторону бить в бубен.
да, прощу прошения.
| Код: |
| debug=no autoregister=yes collection_nodes=yes type=client serverhost=sip.ip-ufa.ru pubsub_node=pubsub.astjab.org username=asterisk@sip.ip-ufa.ru secret=asterisk priority=1 port=5222 usetls=yes usesasl=yes timeout=5 |
Последний раз редактировалось: bdyl (Чт Фев 19, 2015 10:57)
| Код: |
| [code][/code] |
код использовал
| Код: |
| [general] debug=no autoregister=yes collection_nodes=yes [connection1] type=client serverhost=sip.ip-ufa.ru pubsub_node=pubsub.astjab.org username=asterisk@sip.ip-ufa.ru secret=asterisk priority=1 port=5222 usetls=yes usesasl=yes timeout=5 |
Added after 1 minutes:
Ну и usetls=noдля начала.
| Код: |
| [general] ;debug=no . ;autoprune=yes ;autoregister=yes ;collection_nodes=yes ;pubsub_autocreate=yes ;auth_policy=accept ;[asterisk] ;type=client ;serverhost=sip.ip-ufa.ru ;pubsub_node=pubsub.astjab.org ;username=asterisk@sip.ip-ufa.ru ;secret=asterisk ;priority=1 ;port=5222 ;usetls=yes ;usesasl=yes ;buddy=mail@sip.ip-ufa.ru ;distribute_events=yes ;status=available ;statusmessage="Online" ;timeout=5 |
я привел вам не полный конфиг, вот полный, теперь я и понял что за секции. получается они есть.
Added after 3 minutes:
| Код: |
| usetls=no usesasl=no |
однако заметил что когда подключаюсь с любого другого джаббер клиента выдает что не проходит сертификат. думаю может в эту сторону копать?
знак ";" перед строкой означает что данная строка является комментарием и НЕ БУДЕТ обработана никак.
| xelas @ Чт Фев 19, 2015 11:22 писал(а): |
| Вы опять привели конфиг в котором ВСЁ закометарено! знак ";" перед строкой означает что данная строка является комментарием и НЕ БУДЕТ обработана никак. |
прошу прощения, я новичок во фряхе. т.е. мне надо убрать ; из конфига и все будет ок?
И не забудте про usetls=no
Ураа! работает!