First time here? Check out the FAQ!

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

Telphin + Asterisk за NAT

0

Перетащил атс за нат, перестали работать входящие вызовы.

Дебаг говорит, что информацию телфин принимает не правильную, а то есть в поле contact мой локальный IP. externip и localnet указал.

Вот дебаг

--- (9 headers 0 lines) --- Responding to challenge, registration to domain/host name sip.telphin.com REGISTER 11 headers, 0 lines Reliably Transmitting (no NAT) to 213.170.92.166:5068: REGISTER sip:sip.telphin.com SIP/2.0 Via: SIP/2.0/UDP 192.168.0.253:5060;branch=z9hG4bK7f3fba2d Max-Forwards: 70 From: <sip:000105144@sip.telphin.com>;tag=as09c80f7e To: <sip:000105144@sip.telphin.com> Call-ID: 06158c1a52e1dbc4373e90af35fabdcb@127.0.0.1 CSeq: 103 REGISTER User-Agent: FPBX-2.8.1(11.13.0) Authorization: Digest username="000105144", realm="sip.telphin.com", algorithm=MD5, uri="sip:sip.telphin.com:5068", nonce="VHN2t1RzdYt5MBUqIL9yeSJQ1hcAY9aX", response="d8b7c44ab5eda2af5a6b7e1cc3c02102" Expires: 120 Contact: <sip:000105144@192.168.0.253:5060> Content-Length: 0

<--- SIP read from UDP:213.170.92.166:5068 ---> SIP/2.0 200 Ok Via: SIP/2.0/UDP 192.168.0.253:5060;branch=z9hG4bK442c8f47;received=3x.2xx.2xx.xx From: "Unknown" <sip:000105144@192.168.0.253>;tag=as45927297 To: <sip:sip.telphin.com>;tag=599861ab72d4f5a03e7b922e1a9ee85b.912b Call-ID: 78b8a12e579173bd2e8e711f07dcb933@192.168.0.253:5060 CSeq: 102 OPTIONS Server: Telphin SoftSwitch Content-Length: 0

Мой внешний IP который должен быть в Contact 3x.2xx.2xx.xx

PEER Details:

externip
=3x.2xx.2xx.xx
localnet
=192.168.0.0/24
username
=000105144
type
=peer
secret
=
promiscredir
=yes
port
=5068
host
=sip.telphin.com
fromuser
=000105144
dtmfmode
=auto
context
=inbound_telphin
callerid
=000105144
nat
=yes

USER
Details:
username
=000105144
type
=friend
secret
=
registersip
=yes
registeriax
=no
qualify
=yes
port
=5068
insecure
=invite
host
=sip.telphin.com
hassip
=yes
hasiax
=no
fromuser
=000105144
fromdomain
=sip.telphin.com
dtmfmode
=rfc2833
disallow
=all
canreinvite
=no
allow
=alaw&ulaw

Registration => 000105144:pass@sip.telphin.com:5068/000105144

спросил Nov 24 '14

DSRClient Gravatar DSRClient
1 7 1 2

обновил Nov 24 '14

Comments

externip и localnet прописываются в совсем в другом месте .

zzuz (Nov 24 '14)edit

Подскажи в каком ?

DSRClient (Nov 25 '14)edit

в general settings файла sip.conf

romariosar (Nov 25 '14)edit

Спасибо. помогло

DSRClient (Nov 25 '14)edit

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

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

Статистика

Задан: Nov 24 '14

Просмотрен: 737 раз

Обновлен: Nov 24 '14

Похожие вопросы:

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