(closes issue #13337)
authorJeff Peeler <jpeeler@digium.com>
Tue, 30 Sep 2008 22:21:19 +0000 (22:21 +0000)
committerJeff Peeler <jpeeler@digium.com>
Tue, 30 Sep 2008 22:21:19 +0000 (22:21 +0000)
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

channels/chan_sip.c

index 3bba054..6e8e736 100644 (file)
@@ -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) {