Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 275394 | Differences between
and this patch

Collapse All | Expand All

(-)asterisk-trunk.orig/channels/chan_sip.c (-1 / +3 lines)
Lines 11396-11401 Link Here
11396
	char tmp[80];
11396
	char tmp[80];
11397
	char addr[80];
11397
	char addr[80];
11398
	struct sip_pvt *p;
11398
	struct sip_pvt *p;
11399
	struct sip_peer *peer;
11399
	int res;
11400
	int res;
11400
	char *fromdomain;
11401
	char *fromdomain;
11401
	char *domainport = NULL;
11402
	char *domainport = NULL;
Lines 11410-11417 Link Here
11410
11411
11411
	if (r->dnsmgr == NULL) {
11412
	if (r->dnsmgr == NULL) {
11412
		char transport[MAXHOSTNAMELEN];
11413
		char transport[MAXHOSTNAMELEN];
11414
		peer = find_peer(r->hostname, NULL, TRUE, FINDPEERS, FALSE);
11413
		snprintf(transport, sizeof(transport), "_sip._%s", get_transport(r->transport)); /* have to use static get_transport function */
11415
		snprintf(transport, sizeof(transport), "_sip._%s", get_transport(r->transport)); /* have to use static get_transport function */
11414
		ast_dnsmgr_lookup(r->hostname, &r->us, &r->dnsmgr, sip_cfg.srvlookup ? transport : NULL);
11416
		ast_dnsmgr_lookup(peer ? peer->tohost : r->hostname, &r->us, &r->dnsmgr, sip_cfg.srvlookup ? transport : NULL);
11415
	}
11417
	}
11416
11418
11417
	if (r->call) {	/* We have a registration */
11419
	if (r->call) {	/* We have a registration */

Return to bug 275394