From: Jeff Peeler Date: Tue, 30 Sep 2008 22:21:19 +0000 (+0000) Subject: (closes issue #13337) X-Git-Tag: 1.6.2.0-beta1~1232 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=81415abc211bc8a6d24c749884c84a5d3aac8871;p=thirdparty%2Fasterisk.git (closes issue #13337) Reported by: pj Tested by: pj Set transport to SIP_TRANSPORT_UDP mode if not specified which fixes calls to get_transport returning UNKNOWN. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@145249 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 3bba054ea0..6e8e736806 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -20354,6 +20354,8 @@ static struct ast_channel *sip_request_call(const char *type, int format, void * ast_log(LOG_WARNING, "'%s' is not a valid transport option to Dial() for SIP calls, using udp by default.\n", trans); transport = SIP_TRANSPORT_UDP; } + } else { /* use default */ + transport = SIP_TRANSPORT_UDP; } if (!host) {