Revert "sccp_simple_client: only restart ASP if it was created"
This reverts commit ec20a6164b
.
Reason for revert: this patch makes specific variants of 'cs7'
config fail. In short, if AS and ASP are configured and connected,
the ASP is never started. See OS#4635 for elaborate details.
Related: OS#4635
Change-Id: Id6e1fd69f312e5dc74e8718b2e2e678ad54bc16b
This commit is contained in:
parent
6ebfc047dd
commit
5c48fb8e8d
|
@ -597,16 +597,16 @@ osmo_sccp_simple_client_on_ss7_id(void *ctx, uint32_t ss7_id, const char *name,
|
|||
talloc_free(asp_name);
|
||||
|
||||
osmo_ss7_as_add_asp(as, asp->cfg.name);
|
||||
|
||||
/* Ensure that the ASP we use is set to client mode. */
|
||||
asp->cfg.is_server = false;
|
||||
asp->cfg.role = OSMO_SS7_ASP_ROLE_ASP;
|
||||
|
||||
/* Restart ASP */
|
||||
if (prot != OSMO_SS7_ASP_PROT_IPA)
|
||||
osmo_ss7_asp_use_default_lm(asp, LOGL_DEBUG);
|
||||
osmo_ss7_asp_restart(asp);
|
||||
}
|
||||
|
||||
/* Ensure that the ASP we use is set to client mode. */
|
||||
asp->cfg.is_server = false;
|
||||
asp->cfg.role = OSMO_SS7_ASP_ROLE_ASP;
|
||||
|
||||
/* Restart ASP */
|
||||
if (prot != OSMO_SS7_ASP_PROT_IPA)
|
||||
osmo_ss7_asp_use_default_lm(asp, LOGL_DEBUG);
|
||||
osmo_ss7_asp_restart(asp);
|
||||
LOGP(DLSCCP, LOGL_NOTICE, "%s: Using ASP instance %s\n", name,
|
||||
asp->cfg.name);
|
||||
|
||||
|
|
Loading…
Reference in New Issue