|
|
@ -1629,7 +1629,7 @@ struct sip_pvt {
|
|
|
|
int sessionversion; /*!< SDP Session Version */
|
|
|
|
int sessionversion; /*!< SDP Session Version */
|
|
|
|
int64_t sessionversion_remote; /*!< Remote UA's SDP Session Version */
|
|
|
|
int64_t sessionversion_remote; /*!< Remote UA's SDP Session Version */
|
|
|
|
int session_modify; /*!< Session modification request true/false */
|
|
|
|
int session_modify; /*!< Session modification request true/false */
|
|
|
|
int portinuri:1; /*!< Non zero if a port has been specified, will also disable srv lookups */
|
|
|
|
unsigned int portinuri:1; /*!< Non zero if a port has been specified, will also disable srv lookups */
|
|
|
|
struct sockaddr_in sa; /*!< Our peer */
|
|
|
|
struct sockaddr_in sa; /*!< Our peer */
|
|
|
|
struct sockaddr_in redirip; /*!< Where our RTP should be going if not to us */
|
|
|
|
struct sockaddr_in redirip; /*!< Where our RTP should be going if not to us */
|
|
|
|
struct sockaddr_in vredirip; /*!< Where our Video RTP should be going if not to us */
|
|
|
|
struct sockaddr_in vredirip; /*!< Where our Video RTP should be going if not to us */
|
|
|
@ -1875,7 +1875,7 @@ struct sip_peer {
|
|
|
|
struct ast_dnsmgr_entry *dnsmgr;/*!< DNS refresh manager for peer */
|
|
|
|
struct ast_dnsmgr_entry *dnsmgr;/*!< DNS refresh manager for peer */
|
|
|
|
struct sockaddr_in addr; /*!< IP address of peer */
|
|
|
|
struct sockaddr_in addr; /*!< IP address of peer */
|
|
|
|
int maxcallbitrate; /*!< Maximum Bitrate for a video call */
|
|
|
|
int maxcallbitrate; /*!< Maximum Bitrate for a video call */
|
|
|
|
int portinuri:1; /*!< Whether the port should be included in the URI */
|
|
|
|
unsigned int portinuri:1; /*!< Whether the port should be included in the URI */
|
|
|
|
|
|
|
|
|
|
|
|
/* Qualification */
|
|
|
|
/* Qualification */
|
|
|
|
struct sip_pvt *call; /*!< Call pointer */
|
|
|
|
struct sip_pvt *call; /*!< Call pointer */
|
|
|
@ -11875,10 +11875,9 @@ static enum parse_register_result parse_register_contact(struct sip_pvt *pvt, st
|
|
|
|
ast_log(LOG_NOTICE, "Not a valid SIP contact (missing sip:) trying to use anyway\n");
|
|
|
|
ast_log(LOG_NOTICE, "Not a valid SIP contact (missing sip:) trying to use anyway\n");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (!ast_strlen_zero(pt))
|
|
|
|
/* If we have a port number in the given URI, make sure we do remember to not check for NAPTR/SRV records.
|
|
|
|
peer->portinuri = 1;
|
|
|
|
The domain part is actually a host. */
|
|
|
|
else
|
|
|
|
peer->portinuri = !ast_strlen_zero(pt) ? TRUE : FALSE;
|
|
|
|
peer->portinuri = 0;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* handle the transport type specified in Contact header. */
|
|
|
|
/* handle the transport type specified in Contact header. */
|
|
|
|
if ((transport_type = get_transport_str2enum(transport))) {
|
|
|
|
if ((transport_type = get_transport_str2enum(transport))) {
|
|
|
|