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

История изменений [назад]

нажмите, чтобы скрыть/показать версии 1
изначальная версия
редактировать

спросил 2014-11-24 22:31:23 +0400

DSRClient Gravatar DSRClient

Telphin + Asterisk за NAT

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

Дебаг говорит, что информацию телфин принимает не правильную, а то есть в поле 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

Telphin + Asterisk за NAT

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

Дебаг говорит, что информацию телфин принимает не правильную, а то есть в поле 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

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