Пожалуйста, войдите здесь. Часто задаваемые вопросы О нас
Задайте Ваш вопрос

Elastix + GSM VoIP шлюз AddPac AP-GS1002

1

Здравствуйте, есть Elastix + GSM VoIP шлюз AddPac AP-GS1002, звонки идут.

Помогите пожалуйста настроить два отдельных транка в Еластиксе, для двух отдельных портов GSM шлюза.

Спасибо.

удалить закрыть спам изменить тег редактировать

спросил 2011-09-26 11:51:19 +0400

Sherkhan Gravatar Sherkhan
155 ● 14 ● 3 ● 15

Comments

Addpac'и очень логичные железки, если посидишь пару часиков то все поймешь что к чему, ничего сложного Ecuador ( 2011-09-26 12:59:24 +0400 )редактировать
Спасибо, уже звоним туда-сюда :) Только теперь требуется допились данное решение, чтобы можно было выходить с определенного транка в определенный порт. Sherkhan ( 2011-09-26 13:19:23 +0400 )редактировать
Dial pattern Ecuador ( 2011-09-26 15:38:08 +0400 )редактировать
Dial pattern и не надо ничего мудрить с Астериском, т.е. с его транками? Sherkhan ( 2011-09-26 15:46:30 +0400 )редактировать
Транк до Адпака должен быть, в него ты можешь посылать все что угодно, в рамках общей маски сотовых, а вот если надо по операторам разбить, это уже через паттерны разруливай, какого оператора через какой канал пускать Ecuador ( 2011-09-27 14:11:49 +0400 )редактировать
Прошу прощения за возможно не правильную формулировку вопроса. В общем необходимо осуществить: Создать два транка в Еластиксе, для каждого порта отдельно. Пользователи выходящие с одного транка, могут звонить только через свой порт не зависимо от оператора. Спасибо. Sherkhan ( 2011-09-27 14:36:52 +0400 )редактировать
у тя destination-pattern T поставь destination-pattern 01T для 1 порта и destination-pattern 02T к примеру alexcr ( 2011-09-27 14:40:21 +0400 )редактировать
Ну если Адпак позволит сделать 2 транка, то без проблем. В эластиксе останется только нужных пользователей привязать к требуемых транкам Ecuador ( 2011-09-27 14:40:36 +0400 )редактировать
Привет. В шлюзе можно как нибудь привязать к CallerID Еластикса к определенному порту? Sherkhan ( 2011-09-29 07:59:49 +0400 )редактировать
Возможно. Надо смотреть Ecuador ( 2011-09-29 08:49:55 +0400 )редактировать
Подскажите пожалуйста как это сделать, если знаете ... был бы идеальный вариант. Сейчас делаю так: в Еластиксе добавляю номер ... а в шлюзе убираю номер (destination-pattern 1T, forward-digits from 2 ) Спасибо. Sherkhan ( 2011-09-30 08:24:06 +0400 )редактировать

7 Ответов

1

http://www.xdsl.ru/svpro/
http://www.svpro.ru/faq_addpac.htm

ссылка удалить спам редактировать

ответил 2011-09-26 12:51:00 +0400

Ecuador Gravatar Ecuador
845 ● 10 ● 10 ● 24

обновил 2011-09-26 12:51:10 +0400

0

Привет. В шлюзе можно как нибудь привязать CallerID Еластикса к определенному порту?

ссылка удалить спам редактировать

ответил 2011-09-29 08:30:47 +0400

Sherkhan Gravatar Sherkhan
155 ● 14 ● 3 ● 15
0

Ребята, если я создам Custom Trunk SIP/7817$OUTNUM$@7817

и зарегистрирую учетную запись 7817 на GSM шлюзе

заработает?

ссылка удалить спам редактировать

ответил 2011-09-26 14:50:37 +0400

Sherkhan Gravatar Sherkhan
155 ● 14 ● 3 ● 15
0

http://www.pbxware.ru/products/gsm-gw/addpac/files/Addpac-web-interface.pdf

ссылка удалить спам редактировать

ответил 2011-09-26 12:54:56 +0400

alexcr Gravatar alexcr
3124 ● 10 ● 9 ● 51
http://asterisk-service.c...

Comments

Это было первое что я скачал :) Но тут мало чего можно решить. Спасибо. Sherkhan ( 2011-09-26 13:20:06 +0400 )редактировать
http://www.addpac.su/pdf/AddPac_Manual_RUS.pdfCheeZ ( 2011-09-27 11:05:36 +0400 )редактировать
http://www.addpac.com/addpac_eng2/down.php?file=AddPac_VoIP_Gateway_training_guide.pdfCheeZ ( 2011-09-27 11:09:19 +0400 )редактировать
http://www.addpac.com/addpac_eng2/down.php?file=APOS_eng.pdfCheeZ ( 2011-09-27 11:12:36 +0400 )редактировать
0

В общем разобрался, пользуйтесь кому надо :-)

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 
ссылка удалить спам редактировать

ответил 2011-09-27 09:25:01 +0400

Sherkhan Gravatar Sherkhan
155 ● 14 ● 3 ● 15

Comments

рано радовался ... что то не так :( звонит по своим приоритетам .. где копать? Sherkhan ( 2011-09-27 12:26:52 +0400 )редактировать
0

вот пример конфига:

 ! 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 ! 
ссылка удалить спам редактировать

ответил 2011-09-27 14:44:17 +0400

alexcr Gravatar alexcr
3124 ● 10 ● 9 ● 51
http://asterisk-service.c...

Comments

Спасибо. Что пишется в транке, на стороне астериска? У меня звонит только по статусу Register. Без Логина и Пароля не работает.

Sherkhan ( 2011-10-19 13:00:29 +0400 )редактировать
0

! 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-10-19 14:25:05 +0400

Sherkhan Gravatar Sherkhan
155 ● 14 ● 3 ● 15

Ваш ответ

Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!
[скрыть предварительный просмотр]

Закладки и информация

Добавить закладку

подписаться на rss ленту новостей

Статистика

Задан: 2011-09-26 11:51:19 +0400

Просмотрен: 4,998 раз

Обновлен: Oct 19 '11

Проект компании "АТС Дизайн"
Asterisk® и Digium® являются зарегистрированными торговыми марками компании Digium, Inc., США.
IP АТС Asterisk распространяется под лицензией GNU GPL.