0

I have a Skype Connect SIP profile set up on a small Freeswitch setup. All seems fine - I can make incoming and outgoing calls. Problem is - if there is no activity for a while, incoming calls time out and drop. That is, the caller hears a long ring and then the call drops without connecting.

If I restart Freeswitch, the problem goes away. If an outgoing call or another incoming call has happened recently, the problem does not occur.

I see frequent messages in my Freeswitch log as follows:

2012-10-09 16:12:04.043891 [NOTICE] sofia_reg.c:415 Registering skype
2012-10-09 16:16:51.184120 [NOTICE] sofia_reg.c:415 Registering skype
2012-10-09 16:21:38.324166 [NOTICE] sofia_reg.c:415 Registering skype

A call immediately after one of these registrations succeeds.

I am off the opinion that the registration is timing out and dropping. Upon detection by Freeswitch it reconnects, but during the window when it is down, incoming calls fail.

I have replaced my router which has not made a big pile of difference.

External Sip Profile is as follows:

<include>
  <gateway name="skype">
  <param name="realm" value="sip.skype.com"/>
  <param name="proxy" value="sip.skype.com"/>
  <param name="from-domain" value="sip.skype.com"/>
  <param name="username" value="XXXXXXXXXXXXX"/>
  <param name="from-user" value="XXXXXXXXXXXXX"/>
  <param name="password" value="XXXXXXXXXXXXX"/>
  <param name="contact-params" value="XXXXXXXXXXXXX@sip.skype.com"/>
  <param name="extension" value="XXXXXXXXXXXXX"/>
  <param name="extension-in-contact" value="true"/>
  <param name="retry-seconds" value="0"/>
  <param name="caller-id-in-from" value="false"/>
  <param name="ping" value="30"/>
  </gateway>
</include>

username and password have been replaced with XXXXs for obvious reasons. any help would be appreciated.

4

2 回答 2

2

听起来您并没有告诉 FS 发送保持活动的数据包。

对于 Natted 软电话,在你的sofia.conf中试试这个:
< param name="nat-options-ping" value="true" />

对于所有已注册的软电话,请尝试:
< param name="all-reg-options-ping" value="true" />

于 2012-10-13T02:34:58.210 回答
0

我认为将“过期秒数”设置为某个较低的值是有意义的,这应该会迫使 FreeSWITCH 更频繁地重新注册(默认为 3600)。此外,查看在 REGISTER 和 ACK 消息中来回发送的“过期”参数是有意义的。

于 2012-10-09T16:03:40.307 回答