host=sip.primatel.ru
username=1*****
secret=********
type=peer
Установки для входящих соединений:
secret=**********
insecure=yes
context=from-trunk
Создана исходящая маршрутизация и входящая (переброс звонка на абонента). Исходящие звонки работают, входящий нет (абонент не отвечает или не доступен).
Я к тому, что Вы регистрировали свой астериск у оператора или он напрямую, без регистрации, маршрутизирует звонки к Вам?
Как только ответите, в первую очередь себе, на эти вопросы, посмотрите в консоль или логи своего сервера.
Это Вам информация в какую сторону копать.
_________________
http://zemlyakovmp.ru - Мой блог о VoIP, Linux, Asterisk.
Имя^w Логи сестра!
Зайти в консоль и asterisk -rvvvv
Там напишут в чем проблема.
_________________
Мы всегда можем уметь...
Using INVITE request as basis request - 4665ade01d4768e06d65c67c70ea67b4@193.104.248.120
Found peer 'primatel01' for '9611835250' from 193.104.248.120:5060
[2012-10-01 17:24:58] WARNING[2702]: chan_sip.c:14491 check_auth: username mismatch, have , digest has
[2012-10-01 17:24:58] NOTICE[2702]: chan_sip.c:22726 handle_request_invite: Failed to authenticate device "9611835250" ;tag=as692d60b9
SIP/2.0 403 Forbidden
Via: SIP/2.0/UDP 193.104.248.120:5060;branch=z9hG4bK2552f933;received=193.104.248.120;rport=5060
From: "9611835250" ;tag=as692d60b9
To: ;tag=as54964373
Call-ID: 4665ade01d4768e06d65c67c70ea67b4@193.104.248.120
CSeq: 103 INVITE
Server: FPBX-2.10.1(1.8.15.0)
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Length: 0
Scheduling destruction of SIP dialog '4665ade01d4768e06d65c67c70ea67b4@193.104.248.120' in 32000 ms (Method: INVITE)
ACK sip:1002717@192.168.170.232:5060 SIP/2.0
Via: SIP/2.0/UDP 193.104.248.120:5060;branch=z9hG4bK2552f933;rport
From: "9611835250" ;tag=as692d60b9
To: ;tag=as54964373
Contact:
Call-ID: 4665ade01d4768e06d65c67c70ea67b4@193.104.248.120
CSeq: 103 ACK
User-Agent: XIP Server
Max-Forwards: 70
Remote-Party-ID: "9611835250" ;privacy=off;screen=no
Content-Length: 0
я так понимаю не может зарегистрировать звонок??
Попробуйте
type=user
insecure=port,invite
Спасибо.
_________________
Мы всегда можем уметь...
По моему в 1.8 уже username не работает.
Пробуйте
fromuser
defaultuser
кстати
type=friend
и еще. В sip.conf достаточно примеров-параметров. Смотрите fromhost, fromdomain и т.д.
_________________
P4 3.0 + 1Gb CentOS 5.7 Aster 1.8.15.1
Не люблю gui-сборки: натуральный продукт вкуснее.
И еще: я ПРОФИ так как НЕ ЛЕНЮСЬ читать литературу.
гм.
1. Дайте из sip.conf полную настройку для транка.
2. Перезагрузили sip?
Спасибо.
_________________
Мы всегда можем уметь...
; Copyright (C) 2007 Astrogen LLC (USA)
[general]
; These files will all be included in the [general] context
;
#include sip_general_additional.conf
;sip_general_custom.conf is the proper file location for placing any sip general
;options that you might need set. For example: enable and force the sip jitterbuffer.
;If these settings are desired they should be set the sip_general_custom.conf file.
;
; jbenable=yes
; jbforce=yes
;
;It is also the proper place to add the lines needed for sip nat'ing when going
;through a firewall. For nat'ing you'd need to add the following lines:
; nat=yes , externip= , localhost= , and optionally fromdomain= .
;
#include sip_general_custom.conf
;sip_nat.conf is here for legacy support reasons and for those that upgrade
;from previous versions. If you have this file with lines in it please make
;sure they are not duplicated in sip_general_custom.conf, if so remove them
;from sip_nat.conf as sip_general_custom.conf will have precedence.
#include sip_nat.conf
;sip_registrations_custom.conf is for any customizations you might need to do to
;the automatically generated registrations that FreePBX makes.
;
#include sip_registrations_custom.conf
#include sip_registrations.conf
; These files should all be expected to come after the [general] context
;
#include sip_custom.conf
#include sip_additional.conf
;sip_custom_post.conf If you have extra parameters that are needed for a
;extension to work to for example, those go here. So you have extension
;1000 defined in your system you start by creating a line [1000](+) in this
;file. Then on the next line add the extra parameter that is needed.
;When the sip.conf is loaded it will append your additions to the end of
;that extension.
;
#include sip_custom_post.
посмотрите sip_additional.conf по ранее созданому транку!
deny=0.0.0.0/0.0.0.0
secret=Pol200
dtmfmode=rfc2833
canreinvite=no
context=from-internal
host=dynamic
trustrpid=yes
sendrpid=no
type=friend
nat=no
port=5060
qualify=yes
qualifyfreq=60
transport=udp
encryption=no
callgroup=
pickupgroup=
dial=SIP/200
mailbox=200@device
permit=0.0.0.0/0.0.0.0
callerid=Admin
callcounter=yes
faxdetect=no
cc_monitor_policy=generic
[in]
secret=password
type=friend
context=from-trunk
[out]
host=sip.primatel.ru
username=sipid
secret=password
type=peer
context=from-trunk-sip-out
Вы же уважаемый сказали что insecure=port,invite добавили?
В целом подозрительно мало как то настроек.
| Код: |
| [in] context=from-trunk type=friend host=************ user=Ваш логин fromuser=Ваш логин defaultuser=Ваш логин secret=Ваш пароль insecure=port,invite dtmfmode=rfc2833 (у меня авто, надо тестить) disallow=all allow=g729 если есть конечно =) allow=alaw |
Спасибо.
_________________
Мы всегда можем уметь...
Зайдите в asterisk -rvvvv и посмотрите вывод астера.
Очень интересно посмотреть, что он сам пишет.
Что говорит Ваш провайдер? У него точно есть информация по проблеме.
_________________
Мы всегда можем уметь...
В раздел [general]
register => username:password@IP_SIP_PROVIDER/username~1800
Далее в консоли астера sip reload и смотрим что пишет
_________________
Мы всегда можем уметь...
Заработало..Входящий звонок пошел
Added after 1 hours 40 minutes:
| nikto @ Чт Окт 04, 2012 15:31 писал(а): |
| так, финт ушами В раздел [general] register => username:password@IP_SIP_PROVIDER/username~1800 Далее в консоли астера sip reload и смотрим что пишет |
А подскажите, что означает ~1800?
http://www.voip-info.org/wiki/view/Asterisk+config+sip.conf
_________________
Мы всегда можем уметь...
| Цитата: |
| у меня дистриб FreePBX это в sip_additional.conf добавлять? |
| Код: |
| username:password@IP_SIP_PROVIDER/username~1800 |
это надо добавить в настройки транка, в freepbx, поле "Register String: ", иначе файл перезапишется после применения настроек
Я так и сделал. спасибо!
Added after 42 seconds:
| nikto @ Пт Окт 05, 2012 08:04 писал(а): |
| Это то же что и defaultexpiry (время перерегистрации по умолчанию) только для конкретной регистрации (то есть если у Вас defaultexpiry=3600 а провайдер требует 1800 то для данной регистрации можно вконец поставить ~1800), более подробно http://www.voip-info.org/wiki/view/Asterisk+config+sip.conf |
Спасибо огромное