Jump to content
Калькуляторы

Настройка AddPac AP100 SIPID с дефисом

Добрый день!

Есть AddPac AP100.

К Sipnet подключается и работает.

У Zadarma логин имеет вид 1234-101.

Destination-pattern не воспринимает такую запись.

Как обойти это?

Спасибо.

 

Конфиг:

 

! Voice port configuration.

!

! FXS

voice-port 0/1

no caller-id enable

!

! Pots peer configuration.

!

dial-peer voice 0 pots

destination-pattern SIPID

port 0/1

!

! Voip peer configuration.

!

dial-peer voice 1000 voip

destination-pattern T

session target sip-server

session protocol sip

voice-class codec 0

dtmf-relay rtp

no vad

huntstop

!

dial-peer ipaddr-prefix n

dial-peer call-hold h

dial-peer call-transfer h

!

! Codec classes configuration.

!

voice class codec 0

codec preference 1 g711alaw

codec preference 2 g729

!

! SIP UA configuration.

!

sip-ua

sip-username SIPID

sip-password PASSWORD

sip-server SIPSERVER.RU

srv enable

register e164

!

Edited by yurigs

Share this post


Link to post
Share on other sites

в destination-pattern должен быть ваш телефонный номер

Share this post


Link to post
Share on other sites

Попробуйте вот так:

dial-peer voice 0 pots
destination-pattern <номер-только цифры>
port 0/0
user-name <логин>
user-password <пароль>

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this