This was more or less a copy+paste of other related code we already have for other IPA based protocols in libosmo*. Change-Id: I21ade32fec3c1badfcf6bc9cd4ec845efed138e0