freeswitchforum.com

Форум поддержки FreeSWITCH

FreeSWITCH is a registered trademark of Anthony Minessale. Official FreeSWITCH site.

Текущее время: 28 мар 2024 23:55

Часовой пояс: UTC + 4 часа




Начать новую тему Ответить на тему  [ Сообщений: 66 ]  На страницу Пред.  1, 2, 3, 4, 5 ... 7  След.
Автор Сообщение
 Заголовок сообщения: Re: Cisco 7961/7962
СообщениеДобавлено: 19 май 2017 19:17 
FreeSWITCH_GuRu

Зарегистрирован: 22 авг 2012 09:52
Сообщения: 1710
смотреть с какого порта летит сигналка и на какой ответ

_________________
ЛС: @rostel
Сообщество: @ru_freeswitch


Вернуться к началу
 Профиль  
 
 Заголовок сообщения: Re: Cisco 7961/7962
СообщениеДобавлено: 19 май 2017 20:16 

Зарегистрирован: 13 май 2015 15:53
Сообщения: 124
Вложение:
Снимок.PNG
Снимок.PNG [ 11.49 КБ | Просмотров: 9230 ]

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


Вернуться к началу
 Профиль  
 
 Заголовок сообщения: Re: Cisco 7961/7962
СообщениеДобавлено: 20 май 2017 17:59 

Зарегистрирован: 23 авг 2014 11:49
Сообщения: 368
Откуда: Казань
внутри два фрагмента
[+] рабочие фрагменты
...
<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-адрес

_________________
Пути IP-пакета неисповедимы


Вернуться к началу
 Профиль  
 
 Заголовок сообщения: Re: Cisco 7961/7962
СообщениеДобавлено: 21 май 2017 12:24 

Зарегистрирован: 13 май 2015 15:53
Сообщения: 124
видимо это что-то связанное с этим?

[+] 
Код:
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.


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


Вернуться к началу
 Профиль  
 
 Заголовок сообщения: Re: Cisco 7961/7962
СообщениеДобавлено: 21 май 2017 16:11 
FreeSWITCH_GuRu

Зарегистрирован: 22 авг 2012 09:52
Сообщения: 1710
из сего следует что это поделие не будет работать из-за NAT или если профиль FS настроен с преодолением NAT.

_________________
ЛС: @rostel
Сообщество: @ru_freeswitch


Вернуться к началу
 Профиль  
 
 Заголовок сообщения: Re: Cisco 7961/7962
СообщениеДобавлено: 22 май 2017 10:12 

Зарегистрирован: 13 май 2015 15:53
Сообщения: 124
попробовал запустить FS с ключем -nonat
ничего не дало, порты так и различаются. Подскажете, что ещё можно попробовать с этим сделать?


Вернуться к началу
 Профиль  
 
 Заголовок сообщения: Re: Cisco 7961/7962
СообщениеДобавлено: 22 май 2017 11:24 
FreeSWITCH_GuRu

Зарегистрирован: 22 авг 2012 09:52
Сообщения: 1710
параметр запуска " -nonat" никак не повлияет на решение проблемы, ибо это влияет на FS когда NAT перед ним, но не перед клиентом

_________________
ЛС: @rostel
Сообщество: @ru_freeswitch


Вернуться к началу
 Профиль  
 
 Заголовок сообщения: Re: Cisco 7961/7962
СообщениеДобавлено: 22 май 2017 11:40 

Зарегистрирован: 13 май 2015 15:53
Сообщения: 124
А что можно сделать? ната между телефоном и ФС нет и не предвидится.


Вернуться к началу
 Профиль  
 
 Заголовок сообщения: Re: Cisco 7961/7962
СообщениеДобавлено: 22 май 2017 12:00 
FreeSWITCH_GuRu

Зарегистрирован: 22 авг 2012 09:52
Сообщения: 1710
отключить все что связано с преодолением NAT в sofia-профиле, на который регается это поделие

_________________
ЛС: @rostel
Сообщество: @ru_freeswitch


Вернуться к началу
 Профиль  
 
 Заголовок сообщения: Re: Cisco 7961/7962
СообщениеДобавлено: 22 май 2017 12:18 

Зарегистрирован: 13 май 2015 15:53
Сообщения: 124
а может помочь sip-force-contact ?

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


Вернуться к началу
 Профиль  
 
Показать сообщения за:  Поле сортировки  
Начать новую тему Ответить на тему  [ Сообщений: 66 ]  На страницу Пред.  1, 2, 3, 4, 5 ... 7  След.

Часовой пояс: UTC + 4 часа


Кто сейчас на конференции

Сейчас этот форум просматривают: нет зарегистрированных пользователей и гости: 34


Вы не можете начинать темы
Вы не можете отвечать на сообщения
Вы не можете редактировать свои сообщения
Вы не можете удалять свои сообщения
Вы не можете добавлять вложения

Найти:
Перейти:  
cron
Powered by phpBB® Forum Software © phpBB Group
Русская поддержка phpBB