| 99 | } |
| 100 | |
| 101 | static inline const str *get_adv_port(const struct socket_info *send_sock) |
| 102 | { |
| 103 | if(send_sock->adv_port_str.len) |
| 104 | return &(send_sock->adv_port_str); |
| 105 | else if (default_global_port->s) |
| 106 | return default_global_port; |
| 107 | else |
| 108 | return &(send_sock->port_no_str); |
| 109 | } |
| 110 | |
| 111 | static inline const str *_get_adv_host(const struct socket_info *send_sock, |
| 112 | struct sip_msg *msg) |
no outgoing calls
no test coverage detected