pespin has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-msc/+/40631?usp=email )
Change subject: ran_peer: Avoid paging attempt if not ready ......................................................................
ran_peer: Avoid paging attempt if not ready
If the link is not ready it will fail to transmit the msg anyway, so there's no use in trying to submit a page over it.
Change-Id: Ia858291f4454e4caf293e1aaf60ea04d2d4a64e9 --- M src/libmsc/ran_peer.c 1 file changed, 4 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-msc refs/changes/31/40631/1
diff --git a/src/libmsc/ran_peer.c b/src/libmsc/ran_peer.c index bef753a..07e4328 100644 --- a/src/libmsc/ran_peer.c +++ b/src/libmsc/ran_peer.c @@ -682,6 +682,10 @@ { struct msgb *l2;
+ /* ran_peer is not ready for paging (link not ready). */ + if (!rp->fi || rp->fi->state != RAN_PEER_ST_READY) + return 0; + /* There are also the RAN peers that are configured in the neighbor ident for Handover, but if those aren't * connected, then we can't Page there. */ if (!cell_id_list_find(&rp->cells_seen, page_id, 0, false))