Здравствуйте, есть Elastix + GSM VoIP шлюз AddPac AP-GS1002, звонки идут.
Помогите пожалуйста настроить два отдельных транка в Еластиксе, для двух отдельных портов GSM шлюза.
Спасибо.
http://www.xdsl.ru/svpro/
http://www.svpro.ru/faq_addpac.htm
Привет. В шлюзе можно как нибудь привязать CallerID Еластикса к определенному порту?
Ребята, если я создам Custom Trunk SIP/7817$OUTNUM$@7817
и зарегистрирую учетную запись 7817 на GSM шлюзе
заработает?
http://www.pbxware.ru/products/gsm-gw/addpac/files/Addpac-web-interface.pdf
В общем разобрался, пользуйтесь кому надо :-)
running-config AddPac`a:
Welcome, APOS(tm) Kernel Version 8.51.002. Copyright (c) 1999-2010 AddPac Technology Co., Ltd. AddPac1# show run AddPac1# show running-config Building configuration... Current configuration: ! version 8.51.002 ! hostname AddPac1 ! username root password router administrator username guest password guest user ! ! interface Loopback0 ip address 127.0.0.1 255.0.0.0 ! interface FastEthernet0/0 ip address 192.168.42.24 255.255.255.0 speed auto no qos-control ! interface FastEthernet0/1 ip address 192.168.1.55 255.255.255.0 speed auto no qos-control ! ! ! ! http server ! logging command logging event 4-warning logging on ! ! ! ! ! VoIP configuration. ! ! ! Voice service voip configuration. ! voice service voip protocol sip dtmf-relay out-of-band 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 8777XXXXXXX - номер для входящих звонков в Elastix caller-id enable caller-id type etsi ! ! ! GSM voice-port 0/1 connection plar 8707XXXXXXX - номер для входящих звонков в Elastix caller-id enable caller-id type etsi ! ! ! ! ! service port group configuration. ! ! ! ! Pots peer configuration. ! dial-peer voice 1 pots destination-pattern T port 0/0 user-name 100200 user-password 100200 ! dial-peer voice 2 pots destination-pattern T port 0/1 user-name 100201 user-password 100201 ! ! ! ! Voip peer configuration. ! dial-peer voice 3 voip destination-pattern T session target ip 192.168.42.228 session protocol sip codec g711alaw no vad dtmf-relay info ! ! ! ! ! ! gatekeeper ! ! ! Gateway configuration. ! gateway h323-id voip.192.168.42.24 no ignore-msg-from-other-gk ! ! ! Translation Rule configuration. ! translation-rule 10100 rule 0 0 0 ! ! ! ! SIP UA configuration. ! sip-ua sip-server 192.168.42.228 ! ! ! Tones ! ! ! ! line console ! line vty ! gsm dev-restart-by-unreg 300 ! gsm 0/0 sms-language utf8 ! gsm 0/1 sms-language utf8 ! end AddPac1#
Настройки транка, через GUI:
Trunk Description: trunkaddpac1 Dial Rules: "." - без ковычек, только точка Trunk Name: trunkaddpac1 PEER Details: username=100200 type=friend secret=100200 qualify=yes port=5060 nat=no host=192.168.42.24 dtmfmode=info context=from-pstn canreinvite=no
вот пример конфига:
! 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 201 caller-id enable ! ! ! GSM voice-port 0/1 connection plar 202 caller-id enable ! ! ! FXO voice-port 0/2 connection plar 203 caller-id enable ! ! ! FXO voice-port 0/3 connection plar 204 caller-id enable ! ! ! ! ! service port group configuration. ! ! ! ! Pots peer configuration. ! dial-peer voice 2024 pots destination-pattern T port 0/2 no register e164 preference 9 ! dial-peer voice 2025 pots destination-pattern T port 0/3 no register e164 preference 9 ! dial-peer voice 3048 pots destination-pattern 01T port 0/0 no register e164 translate-outgoing called-number 1 ! dial-peer voice 3049 pots destination-pattern 02T port 0/1 no register e164 translate-outgoing called-number 2 ! ! ! ! Voip peer configuration. ! dial-peer voice 10100 voip destination-pattern T session target ip 192.168.101.1 5060 session protocol sip voice-class codec 0 no vad dtmf-relay rtp-2833 description atc translate-outgoing called-number 10100 ! ! ! ! ! ! gatekeeper ! ! ! Gateway configuration. ! gateway h323-id voip.192.168.101.10 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 ! ! ! ! Translation Rule configuration. ! translation-rule 1 rule 0 01T T rule 1 01T T ! translation-rule 2 rule 0 02T T rule 2 02T T ! translation-rule 10100 rule 0 T %01%99 ! translation-rule 3 rule 0 03T T ! translation-rule 4 rule 0 04T T ! ! ! ! SIP UA configuration. ! sip-ua sip-server 192.168.101.1 5060 126 ! ! ! Tones ! ! ! ! line console ! line vty ! gsm dev-restart-by-unreg 300 ! gsm 0/0 sms-language utf8 ! gsm 0/1 sms-language utf8 !
Спасибо. Что пишется в транке, на стороне астериска? У меня звонит только по статусу Register. Без Логина и Пароля не работает.
Sherkhan ( 2011-10-19 13:00:29 +0400 )редактировать! Pots peer configuration.
!
dial-peer voice 1 pots
destination-pattern 1T
port 0/0
forward-digits from 2
user-name 100200
user-password 100200
!
вот так, звонок сбрасывается...
Как только добавляю второй Диал-пиир, звонки зависают .. но при этом все работает.
!
dial-peer voice 2 pots
destination-pattern 2T
port 0/1
forward-digits from 2
user-name 100201
user-password 100201
!
!
Задан: 2011-09-26 11:51:19 +0400
Просмотрен: 4,998 раз
Обновлен: Oct 19 '11
Проект компании "АТС Дизайн"
Asterisk® и Digium® являются зарегистрированными торговыми марками компании Digium, Inc., США.
IP АТС Asterisk распространяется под лицензией GNU GPL.