mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-06 12:36:58 +00:00
Cleanup approach in 217804 and don't reach inside the sig_pvt.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@217987 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -6357,10 +6357,7 @@ static int dahdi_fixup(struct ast_channel *oldchan, struct ast_channel *newchan)
|
|||||||
}
|
}
|
||||||
#ifdef HAVE_PRI
|
#ifdef HAVE_PRI
|
||||||
else if (dahdi_sig_pri_lib_handles(p->sig)) {
|
else if (dahdi_sig_pri_lib_handles(p->sig)) {
|
||||||
struct sig_pri_chan *pchan = p->sig_pvt;
|
sig_pri_fixup(oldchan, newchan, p->sig_pvt);
|
||||||
if (pchan->owner == oldchan) {
|
|
||||||
pchan->owner = newchan;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@@ -3198,4 +3198,11 @@ int pri_maintenance_bservice(struct pri *pri, struct sig_pri_chan *p, int change
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
void sig_pri_fixup(struct ast_channel *oldchan, struct ast_channel *newchan, struct sig_pri_chan *pchan)
|
||||||
|
{
|
||||||
|
if (pchan->owner == oldchan) {
|
||||||
|
pchan->owner = newchan;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#endif /* HAVE_PRI */
|
#endif /* HAVE_PRI */
|
||||||
|
@@ -266,4 +266,6 @@ int pri_send_callrerouting_facility_exec(struct sig_pri_chan *p, enum ast_channe
|
|||||||
int pri_maintenance_bservice(struct pri *pri, struct sig_pri_chan *p, int changestatus);
|
int pri_maintenance_bservice(struct pri *pri, struct sig_pri_chan *p, int changestatus);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
void sig_pri_fixup(struct ast_channel *oldchan, struct ast_channel *newchan, struct sig_pri_chan *pchan);
|
||||||
|
|
||||||
#endif /* _SIG_PRI_H */
|
#endif /* _SIG_PRI_H */
|
||||||
|
Reference in New Issue
Block a user