Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 195830 Details for
Bug 275394
Asterisk DNS Manager fails on registrations with asterisk 1.6.1.0 and above
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
added unref peer as stated by russel bryant on IRC
chan_sip_bug_15052_[20090626204511].patch (text/plain), 1.43 KB, created by
Federico Santulli
on 2009-06-26 18:51:04 UTC
(
hide
)
Description:
added unref peer as stated by russel bryant on IRC
Filename:
MIME Type:
Creator:
Federico Santulli
Created:
2009-06-26 18:51:04 UTC
Size:
1.43 KB
patch
obsolete
>--- asterisk-trunk.ORIG/channels/chan_sip.c 2009-06-26 20:34:08.732262132 +0200 >+++ asterisk-trunk/channels/chan_sip.c 2009-06-26 20:38:50.869261871 +0200 >@@ -11394,30 +11394,35 @@ > { > struct sip_request req; > char from[256]; > char to[256]; > char tmp[80]; > char addr[80]; > struct sip_pvt *p; >+ struct sip_peer *peer; > int res; > char *fromdomain; > char *domainport = NULL; > > /* exit if we are already in process with this registrar ?*/ > if (r == NULL || ((auth == NULL) && (r->regstate == REG_STATE_REGSENT || r->regstate == REG_STATE_AUTHSENT))) { > if (r) { > ast_log(LOG_NOTICE, "Strange, trying to register %s@%s when registration already pending\n", r->username, r->hostname); > } > return 0; > } > > if (r->dnsmgr == NULL) { > char transport[MAXHOSTNAMELEN]; >+ peer = find_peer(r->hostname, NULL, TRUE, FINDPEERS, FALSE); > snprintf(transport, sizeof(transport), "_sip._%s", get_transport(r->transport)); /* have to use static get_transport function */ >- ast_dnsmgr_lookup(r->hostname, &r->us, &r->dnsmgr, sip_cfg.srvlookup ? transport : NULL); >+ ast_dnsmgr_lookup(peer ? peer->tohost : r->hostname, &r->us, &r->dnsmgr, sip_cfg.srvlookup ? transport : NULL); >+ if (peer) { >+ unref_peer(peer, "removing peer ref for dnsmgr_lookup"); >+ } > } > > if (r->call) { /* We have a registration */ > if (!auth) { > ast_log(LOG_WARNING, "Already have a REGISTER going on to %s@%s?? \n", r->username, r->hostname); > return 0; > } else {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 275394
:
195749
|
195830
|
196163
|
196166