freeswitchforum.com
https://freeswitchforum.com/

Cisco 7961/7962
https://freeswitchforum.com/viewtopic.php?f=6&t=663
Страница 2 из 7

Автор:  Vlad1983 [ 19 май 2017 19:17 ]
Заголовок сообщения:  Re: Cisco 7961/7962

смотреть с какого порта летит сигналка и на какой ответ

Автор:  Demon [ 19 май 2017 20:16 ]
Заголовок сообщения:  Re: Cisco 7961/7962

Вложение:
Снимок.PNG
Снимок.PNG [ 11.49 КБ | Просмотров: 9398 ]

да, похоже оно. Только где это можно исправить?

Автор:  error [ 20 май 2017 17:59 ]
Заголовок сообщения:  Re: Cisco 7961/7962

внутри два фрагмента
[+] рабочие фрагменты
...
<callManagerGroup>
<tftpDefault>false</tftpDefault>
<members>
<member priority="0">
<callManager>
<name>10.10.10.10</name>
<description>10.10.10.10</description>
<ports>
<ethernetPhonePort>2000</ethernetPhonePort>
<sipPort>5060</sipPort>
<securedSipPort>5061</securedSipPort>
<mgcpPorts>
<listen>2427</listen>
<keepAlive>2428</keepAlive>
</mgcpPorts>
</ports>
<processNodeName>10.10.10.10</processNodeName>
</callManager>
</member>
</members>
</callManagerGroup>
....

<line button="1" lineIndex="1">
<featureID>9</featureID>
<featureLabel></featureLabel>
<proxy>USECALLMANAGER</proxy>
<port>5060</port>
<name>9999</name>
<authName>9999</authName>
<authPassword>auth_password</authPassword>
<displayName></displayName>
<autoAnswer>
<autoAnswerEnabled>2</autoAnswerEnabled>
</autoAnswer>
<callWaiting>3</callWaiting>
<sharedLine>false</sharedLine>
<messageWaitingLampPolicy>3</messageWaitingLampPolicy>
<messageWaitingAMWI>0</messageWaitingAMWI>
<messagesNumber></messagesNumber>
<ringSettingIdle>4</ringSettingIdle>
<ringSettingActive>5</ringSettingActive>
<contact></contact>
<forwardCallInfoDisplay>
<callerName>true</callerName>
<callerNumber>false</callerNumber>
<redirectedNumber>false</redirectedNumber>
<dialedNumber>true</dialedNumber>
</forwardCallInfoDisplay>
<maxNumCalls>4</maxNumCalls>
<busyTrigger>2</busyTrigger>
</line>
....


cp7941 в качестве callManager понимает dns-имя (вместо "10.10.10.10"), но регистрация все равно идет на ip-адрес

Автор:  Demon [ 21 май 2017 12:24 ]
Заголовок сообщения:  Re: Cisco 7961/7962

видимо это что-то связанное с этим?

[+] 
Код:
4. Note that as of version 8.0(2)SR1 the phone sends UDP SIP requests from a high source port. This means that it will send from (for example) source port 50116 to SIP port 5060 on the SIP server. This is acceptable behaviour as per the SIP RFC, but it is different to the Cisco ATA and 7940 SIP software (and many but not all phones) and may have ramifications on your firewall rules if you are expecting the phone to send packets out from source port 5060 as well (as you may have with 7940 and ATAs etc). There are a few phones around which behave in the same way although most don't - this is not a cisco specific behaviour and is NOT a bug.
It seems that the phone drops all control traffic destined for it sent on any port other than port 5060 - and as per the SIP RFCs no server should ever do this anyway, but Asterisk configured with NAT=yes behind a NAT does work this way for return traffic from the server to the phone. This was a major problem as my phone service provider (who have their Asterisk server behind a NAT device) were returning traffic on high ports to my phone which it in turn dropped it. I requested them turn NAT off for my extension, and now my phone works perfectly. Ethereal analysis will show this up as return UDP traffic destined for other than port 5060, and a failure of the phone to register due to it not receiving the return messages from the server requesting the phone authenticate (or if no authentication, the phone will never see a SIP 200 OK message after registering). The problem is further complicated by SIP enabled routers, known as SIP Application Layer Gateway (ALG), under normal conditions, the router will 'smartly' alter outgoing SIP register packets by altering the port within it to match the source port of the device, so the port becomes bound to the device in NAT. So when Cisco 7961 behind a SIP-ALG NAT enabled router send a request to register from port 49521, and requests a reply to 5060, the router will replace the '5060' with '49521'. Your server will then reply to this port, despite setting nat=no, the phone will never receive the data, and will never register. Either disable the ALG in your router, use a non-SIP-ALG router, or use a different port on the server other than 5060. If you control your own asterisk, you can set your firewall to port 5060 from say, port 5061.


но как это пофиксить в фрисвитче? ума не приложу

Автор:  Vlad1983 [ 21 май 2017 16:11 ]
Заголовок сообщения:  Re: Cisco 7961/7962

из сего следует что это поделие не будет работать из-за NAT или если профиль FS настроен с преодолением NAT.

Автор:  Demon [ 22 май 2017 10:12 ]
Заголовок сообщения:  Re: Cisco 7961/7962

попробовал запустить FS с ключем -nonat
ничего не дало, порты так и различаются. Подскажете, что ещё можно попробовать с этим сделать?

Автор:  Vlad1983 [ 22 май 2017 11:24 ]
Заголовок сообщения:  Re: Cisco 7961/7962

параметр запуска " -nonat" никак не повлияет на решение проблемы, ибо это влияет на FS когда NAT перед ним, но не перед клиентом

Автор:  Demon [ 22 май 2017 11:40 ]
Заголовок сообщения:  Re: Cisco 7961/7962

А что можно сделать? ната между телефоном и ФС нет и не предвидится.

Автор:  Vlad1983 [ 22 май 2017 12:00 ]
Заголовок сообщения:  Re: Cisco 7961/7962

отключить все что связано с преодолением NAT в sofia-профиле, на который регается это поделие

Автор:  Demon [ 22 май 2017 12:18 ]
Заголовок сообщения:  Re: Cisco 7961/7962

а может помочь sip-force-contact ?

хотя уже проверил, не помогло. А можно ткнуть меня носом, о каких именно параметрах идет речь? agressive_nat_detection отключал, wiki полистал, ничего ещё, кроме этого и apply-nat-acl не нашел.

Страница 2 из 7 Часовой пояс: UTC + 4 часа
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/