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

Addpac 1100F + FreePBX 2.10. Разделение входящих по транкам.

0

Шлюз 8 портовый, исходящая связь работает, проблемы со входящей. В Freepbx завел 4ре транка, все транки регистрируются, проблема возникает со входящими вызовами, все входящие вызовы идут от одного транка, хотя я указал в роутах как должен идти звонок. Конфиг аддпака:

version 8.30N

!
hostname AP1100F

!
!
no bridge spanning-tree
!
dhcp-list 1 type server 
dhcp-list 1 address server  10.1.1.2 10.1.1.126 255.255.255.128
!
!
ip-share enable

ip-share interface net-side ether0.0
ip-share interface local-side ether1.0
!
interface ether0.0
 ip address 192.168.28.175 255.255.255.0
!
interface ether1.0
 no ip address
!
snmp name AP1100F 
snmp enable-trap dn-register 300 forcely-block
!
no arp reset
!
! 
! 
! 
! 
! VoIP configuration. 
! 
! 
! Voice service voip configuration. 
! 
voice service voip 
 fax protocol t38 redundancy 0 
 fax rate 9600 
 h323 call start fast 
 h323 call tunnel enable 
! 
! 
! Voice port configuration. 
!             
! FXO 
voice-port 0/0 
 input gain 4 
 output gain 4 
 connection plar 216 
 ring detect-timeout 70 
 high-dtmf-gain  -7 
 caller-id enable 
 caller-id type etsi 
 caller-id name disable
! 
! 
! FXO 
voice-port 0/1 
 input gain 8 
 output gain 8 
 connection plar 124 
 ring detect-timeout 70 
 high-dtmf-gain  -7 
 caller-id enable 
 caller-id type etsi 
 caller-id name disable
! 
! 
! FXO 
voice-port 0/2 
 input gain 4 
 output gain 4 
 connection plar 116 
 ring detect-timeout 70 
 high-dtmf-gain  -7 
 caller-id enable 
 caller-id type etsi-dtmf 
 caller-id name disable
! 
! 
! FXO 
voice-port 0/3 
 input gain 2 
 output gain 2 
 connection plar 201 
 ring detect-timeout 70 
 high-dtmf-gain  -7 
 caller-id enable 
 caller-id type etsi 
 caller-id name disable
! 
! 
! FXO 
voice-port 1/0 
 caller-id enable 
! 
! 
! FXO 
voice-port 1/1 
 no caller-id enable 
! 
! 
! FXO 
voice-port 1/2 
 no caller-id enable 
! 
! 
! FXO 
voice-port 1/3 
 no caller-id enable 
! 
! 
! 
! 
! Pots peer configuration. 
! 
dial-peer voice 0 pots
! 
dial-peer voice 1 pots
 destination-pattern 5T 
 port 0/0 
 user-name AP_28.175_0.0_216 
 user-password 1234aa 
! 
dial-peer voice 2 pots
 destination-pattern 4T 
 port 0/1 
 user-name AP_28.175_0.1_124 
 user-password 1234aa 
! 
dial-peer voice 3 pots
 destination-pattern 3T 
 port 0/2 
 user-name AP_28.175_0.2_116 
 user-password 1234aa 
! 
dial-peer voice 4 pots
 destination-pattern 2T 
 port 0/3 
! 
! 
! 
! Voip peer configuration. 
! 
dial-peer voice 1000 voip 
 destination-pattern .T 
 session target 192.168.28.59  
 session protocol sip 
 codec g711alaw 
 voice-class codec 1 
 dtmf-relay rtp-2833 
 no vad
 translate-outgoing called-number 1 
 fax protocol t38 redundancy 1 
! 
! 
! 
! 
! 
! 
gatekeeper
! 
! 
! Gateway configuration. 
! 
gateway 
 h323-id voip.192.168.28.59 
 no ignore-msg-from-other-gk 
! 
! 
! Codec classes configuration. 
! 
voice class codec 1 
 codec preference 1 g711alaw 
 codec preference 2 g711ulaw 
 codec preference 4 g711alaw 
! 
! 
! 
! SIP UA configuration. 
! 
sip-ua 
 user-register 
 sip-server 192.168.28.59 
 timeout treg 3600 
 register e164 
! 
! 
! MGCP configuration. 
! 
mgcp 
 codec g711ulaw 
 vad 
! 
! 
! Tones 
voice class clear-down-tone 0 400 0 250 250 
!
!             
! 
!

Транки завел со следующими настройками:

host=dynamic
type=friend
username=AP_28.175_X.X_XXX
secret=1234aa
insecure=invite,port
qualify=yes
context=from-trunk

Уже третий день бьюсь с настройкой, помогите пожалуйста, может где то что то надо дописать чтобы астер понял с какого транка ей принимать звонок.

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

спросил 2012-08-14 07:50:19 +0400

nehalem Gravatar nehalem
11 8 1 8

Comments

после insecure=invite,port можете и не пытаться.

zzuz ( 2012-08-14 11:01:59 +0400 )редактировать

Эта опция включена была для эксперимента, сейчас описание транка имеет вид: host=dynamic type=friend username=AP28.1750.2116 secret=1234aa fromuser=AP28.1750.2116 qualify=yes context=from-internal + еще включил на шлюзе remote party id, и все заработало, видимо DID не передавался или передавался как то не так. Просто еще разбираюсь как надо настраивать *. Теперь стала другая беда, номер приходит как имя транка.

nehalem ( 2012-08-14 14:11:36 +0400 )редактировать

trustrpid=yes в sip.conf надо включить, где в freepbx это включается не знаю.

Master135 ( 2012-08-14 14:25:15 +0400 )редактировать

в sip_general_custom.conf

zzuz ( 2012-08-14 16:19:52 +0400 )редактировать

Будьте первым, кто ответит на этот вопрос!

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 ленту новостей

Статистика

Задан: 2012-08-14 07:50:19 +0400

Просмотрен: 1,082 раз

Обновлен: Aug 14 '12

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