mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
added restart all interfaces Restart_Indicator, to automatically send a RESTART after the L2 of a PTP Port comes up. Also fixed some places where we have send a RELEASE without need for it.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@89172 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -840,8 +840,13 @@ static msg_t *build_restart (struct isdn_msg msgs[], struct misdn_bchannel *bc,
|
||||
#if DEBUG
|
||||
printf("Building RESTART Msg\n");
|
||||
#endif
|
||||
enc_ie_channel_id(&restart->CHANNEL_ID, msg, 1,bc->channel, nt,bc);
|
||||
enc_ie_restart_ind(&restart->RESTART_IND, msg, 0x80, nt, bc);
|
||||
|
||||
if (bc->channel > 0) {
|
||||
enc_ie_channel_id(&restart->CHANNEL_ID, msg, 1,bc->channel, nt,bc);
|
||||
enc_ie_restart_ind(&restart->RESTART_IND, msg, 0x80, nt, bc);
|
||||
} else {
|
||||
enc_ie_restart_ind(&restart->RESTART_IND, msg, 0x87, nt, bc);
|
||||
}
|
||||
|
||||
cb_log(0,bc->port, "Restarting channel %d\n", bc->channel);
|
||||
|
||||
|
Reference in New Issue
Block a user