СвязьПроект

Российский системный интегратор
Текущее время: 28 мар 2024, 19:22

Часовой пояс: UTC




Начать новую тему Ответить на тему  [ Сообщений: 3 ] 
Автор Сообщение
СообщениеДобавлено: 10 ноя 2016, 14:18 
Не в сети

Зарегистрирован: 10 июл 2015, 07:20
Сообщения: 5
Добрый вечер всем.

Имеется Asterisk + Addpac GS-1002 в локальной сети. В слот 1 на Addpac поставлен мегафон, в слот 2 билайн.
С билайном проблем нет, входящие и исходящие работают исправно. С мегафоном беда. Не работает ни то, ни другое. Идут гудки, но звонок в Asterisk не падает.

sip.conf

Код:
[general]
trustrpid=yes
tcpenable=yes
useragent=D-link ; типа реальное железо. чтобы меньше привлекать внимание хацкеров которые ищут астериски
externip=192.168.5.100
localnet=192.168.5.0/24
qualify=yes               ; проверка доступности абонента - 2s - если больше, что считаем что недоступен
prematuremedia = no
progressinband = never
srvlookup=no
canreinvite=no              ; разрешает (yes) или запрещает (no) установку прямого соединения(минуя Asterisk).
directmedia=no              ; гнать трафик напрямую
allowguest = no             ; запрет регистрации "левых" аккунтов
transfer=yes                ; запрет трансфера вызовов глобально, включать вручную для нужных пиров
allowsubscribe=no           ; отказ от использования voicemail и соответствующего спама в консоли
alwaysauthreject=yes        ; на REGISTER Asterisk станет отвечать «401 Unathorized»
jbenable = yes              ; Enables the use of a jitterbuffer on the receiving side of a SIP
jbforce = no                ; Forces the use of a jitterbuffer on the receive side of a SIP
jbmaxsize=300
jbimpl = adaptive           ; Jitterbuffer implementation, used on the receiving side of a SIP
jbresyncthreshold=100       ;adaptive jbimpl had troubles without thresh... Asterisk 1.6.2.9.
;jblog = yes                ; Enables jitterbuffer frame logging. Defaults to "no".
context=default             ; всех левых в дефротный контекст на отбой
relaxdtmf=yes
dtmfmode=auto
disallow=all
;allow=g729
;allow=g723
allow=alaw
allow=ulaw
allow=gsm
bindport=5182



[addpac_channels](!)            ; шаблон дублирующихся настроек для каналов шлюза
host=dynamic
;deny=0.0.0.0/0
permit=192.168.5.110
fromdomain=192.168.5.110
type=friend
context=from_trunk                ; входящие с SIP попадают в этот контекст в extensions.conf
qualify=yes
nat=no
canreinvite=no
insecure=port,invite            ; игнорировать порт и инвайт
disallow=all
allow=alaw
allow=ulaw
allow=gsm
maxcallbitrate=64
dtmfmode=rfc2833
port=5182


[79640095533](addpac_channels)
defaultuser=79640095533
secret=*******
call-limit=2
callerid=79640095533
relaxdtmf=yes

[79298835533](addpac_channels)
defaultuser=79298835533
secret=******
call-limit=1
callerid=79298835533
relaxdtmf=yes

[my_sip_user](!)
type=friend                   ; входящие и исходящие
Call-limit=2                  ; лимит количества одновременных звонков
host=dynamic                  ; обязательная регистрация
nat=force_rport,comedia       ; используется ли натирование адресов?
canreinvite=no                ; разрешает (yes) или запрещает (no) установку прямого соединения между участниками (минуя Asterisk).
directmedia=no                ; гнать трафик напрямую
dtmfmode=auto
disallow=all                  ; запретить все кодеки
;allow=alaw
;allow=ulaw
;allow=gsm                     ; разрешить нужные
;allow=g729
;allow=g723
port=5182
insecure=invite,port
context=_sip                  ; Контекст плана набора в extensions.conf, в который изначально попадают звонки с GSM-линий
transfer=yes
;transport=tcp                             ; В него включен основной контекст _sip для всего


При sip show оба пира register

Конфиг Addpac

Код:
!
! APOS(tm) configuration saved from vty
!  2016/11/06 19:41:52
!
version 8.51.011
!
hostname GS1002
!
username *****
!
!
script ntpdate default
 server ip time.nist.gov
 server ip time.windows.com
!
interface Loopback0
 ip address 127.0.0.1 255.0.0.0
!
interface FastEthernet0/0
 ip address 192.168.5.110 255.255.255.0
 speed auto
 no qos-control
!
interface FastEthernet0/1
 ip address 192.168.10.1 255.255.255.0
 speed auto
 no qos-control
!
ip route 0.0.0.0 0.0.0.0 192.168.5.254
!
!
!
!
http server
!
logging command
logging event 4-warning
logging on
!
!
!
!
! VoIP configuration.
!
!
! Voice service voip configuration.
!
voice service voip
 protocol sip
 dtmf-relay rfc-2833
 fax protocol t38 redundancy 0
 fax rate 9600
 h323 call start fast
 h323 call tunnel enable
 no call-barring unconfigured-ip-address
 no voip-inbound-call-barring enable
!
!
! Voice port configuration.
!
! GSM
voice-port 0/0
 connection plar 79298835533
 ring detect-timeout 70
 dial-tone-generate
 caller-id enable
 caller-id type etsi
!
!
! GSM
voice-port 0/1
 connection plar 79640095533
 ring detect-timeout 70
 dial-tone-generate
 caller-id enable
 caller-id type etsi
!
!
! FXO
voice-port 0/2
 no caller-id enable
!
!
! FXO
voice-port 0/3
 no caller-id enable
!
!
!
!
! service port group configuration.
!
!
!
! Pots peer configuration.
!
dial-peer voice 0 pots
 destination-pattern 00T
 port 0/0
 call-waiting
 user-name 79298835533
 user-password ****
 translate-outgoing called-number 0
 diversion 1
!
dial-peer voice 1 pots
 destination-pattern 01T
 port 0/1
 call-waiting
 user-name 79640095533
 user-password ***
 translate-outgoing called-number 1
 preference 2
 diversion 2
!
!
!
! Voip peer configuration.
!
dial-peer voice 2000 voip
 destination-pattern T
 session target sip-server
 session protocol sip
 voice-class codec 1
 no vad
 dtmf-relay rtp-2833
 description asterisk
!
!
!
dial-peer call-hold h
dial-peer call-transfer h
!
!
!
gatekeeper
!
!
! Gateway configuration.
!
gateway
 h323-id voip.192.168.5.100
 no ignore-msg-from-other-gk
!
!
! Codec classes configuration.
!
voice class codec 0
 codec preference 1 g711alaw
 codec preference 2 g711ulaw
 codec preference 3 g729
!
voice class codec 1
 codec preference 1 g711alaw
 codec preference 2 g711ulaw
 codec preference 3 g729
!
!
!
! Translation Rule configuration.
!
translation-rule 0
 rule 0      007T                     8T
!
translation-rule 1
 rule 0      017T                     8T
!
!
!
! SIP UA configuration.
!
sip-ua
 user-register
 sip-username addpac
 sip-password sip-secret
 sip-server 192.168.5.100 5182 1
 timeout treg 400
 called-party-number to-field
 remote-party-id
 session-refresh update
 register e164
!
!
! Tones
!
!
! SMS delivery configuration
!
sms-delivery
!
!
!
!
voip-interface ip FastEthernet0/0
!
line console
!
line vty
!
mobile dev-restart-by-unreg 180
mobile failed-call-retry 0
mobile ussd inter-frame-gap 100
mobile ussd balance-interval 120
mobile ussd retry-count 2
mobile ussd retry-interval 5
mobile ussd response-protection-time 5
mobile dev-restart-by-unknown-error
mobile cell-monitor 30
!
mobile 0/0
 gsm sms-language utf8
!
mobile 0/1
 gsm sms-language utf8
!


Вернуться к началу
 Профиль  
Ответить с цитатой  
СообщениеДобавлено: 10 ноя 2016, 14:19 
Не в сети

Зарегистрирован: 10 июл 2015, 07:20
Сообщения: 5
Дебаг на Addpac

Код:
Received SIP PDU from ( 192.168.5.100:5182 )
OPTIONS sip:79298835533@192.168.5.110 SIP/2.0
Via: SIP/2.0/UDP 192.168.5.100:5182;branch=z9hG4bK38acdae6
Max-Forwards: 70
From: "asterisk" <sip:asterisk@192.168.5.100:5182>;tag=as73d493c2
To: <sip:79298835533@192.168.5.110>
Contact: <sip:asterisk@192.168.5.100:5182>
Call-ID: 0cab9ef20d2b01d46b1eeae901b25c94@192.168.5.100:5182
CSeq: 102 OPTIONS
User-Agent: D-link
Date: Wed, 09 Nov 2016 22:39:18 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Content-Length: 0



        Sending SIP PDU to ( 192.168.5.100:5182 ) from 5060
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.5.100:5182;branch=z9hG4bK38acdae6
From: "asterisk" <sip:asterisk@192.168.5.100:5182>;tag=as73d493c2
To: <sip:79298835533@192.168.5.110>
Call-ID: 0cab9ef20d2b01d46b1eeae901b25c94@192.168.5.100:5182
CSeq: 102 OPTIONS
User-Agent: AddPac SIP Gateway
Accept: application/sdp
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, UPDATE, REFER, NOTIFY
Content-Length: 0


        Received SIP PDU from ( 192.168.5.100:5182 )
OPTIONS sip:79640095533@192.168.5.110 SIP/2.0
Via: SIP/2.0/UDP 192.168.5.100:5182;branch=z9hG4bK39ee3f91
Max-Forwards: 70
From: "asterisk" <sip:asterisk@192.168.5.100:5182>;tag=as61c3b219
To: <sip:79640095533@192.168.5.110>
Contact: <sip:asterisk@192.168.5.100:5182>
Call-ID: 5fcfbaef466b8f0c55781c4f095366c7@192.168.5.100:5182
CSeq: 102 OPTIONS
User-Agent: D-link
Date: Wed, 09 Nov 2016 22:39:18 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Content-Length: 0



        Sending SIP PDU to ( 192.168.5.100:5182 ) from 5060
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.5.100:5182;branch=z9hG4bK39ee3f91
From: "asterisk" <sip:asterisk@192.168.5.100:5182>;tag=as61c3b219
To: <sip:79640095533@192.168.5.110>
Call-ID: 5fcfbaef466b8f0c55781c4f095366c7@192.168.5.100:5182
CSeq: 102 OPTIONS
User-Agent: AddPac SIP Gateway
Accept: application/sdp
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, UPDATE, REFER, NOTIFY
Content-Length: 0


Вернуться к началу
 Профиль  
Ответить с цитатой  
СообщениеДобавлено: 16 дек 2016, 10:00 
Не в сети

Зарегистрирован: 14 фев 2011, 10:57
Сообщения: 428
Вы сделали лог на адпаке только Options. Нет звонков, так ничего нельзя сказать. Непонятно даже приходит ли звонок на адпак.
Сделайтdeb voip sip + deb voip call И совершите звонок.
Там посмотрите адпак отправляет ли что то на АТС, приходит ли звонок.


Вернуться к началу
 Профиль  
Ответить с цитатой  
Показать сообщения за:  Поле сортировки  
Начать новую тему Ответить на тему  [ Сообщений: 3 ] 

Часовой пояс: UTC


Кто сейчас на конференции

Сейчас этот форум просматривают: нет зарегистрированных пользователей и гости: 0


Вы не можете начинать темы
Вы не можете отвечать на сообщения
Вы не можете редактировать свои сообщения
Вы не можете удалять свои сообщения
Вы не можете добавлять вложения

Найти:
Перейти:  
cron
Создано на основе phpBB® Forum Software © phpBB Group
Русская поддержка phpBB