[asterisk-dev] oej: trunk r128290 - /trunk/channels/chan_sip.c

Johansson Olle E oej at edvina.net
Sun Jul 6 03:05:13 CDT 2008


>
>
>> -	/* Saving TCP connections is useless, we won't be able to
>> reconnect */
>> +	/* Saving TCP connections is useless, we won't be able to reconnect
>> +		XXX WHY???? XXX
>> +		\todo check this
>> +	*/
>
> A bug was reported that connecting to a peer that registered via TCP
> after an Asterisk restart was sometimes being done using UDP.  This
> would happen if the connection happened before the peer re-registered.
>
> The astdb entries did not reflect the transport.  For now, we just
> didn't save TCP/TLS registrations.  For a number of reasons, there is
> a good chance you can't connect back to them if the connection is
> closed.  There is some room for improvement, but it's a reasonable
> assumption to make most of the time.

TCP/TLS has the same properties as UDP here. If you have a NAT,
neither UDP, TCP or TLS can reconnect after a long period of
downtime. But I fail to see a separate issue for TCP and TLS
without NAT.

/O



More information about the asterisk-dev mailing list