I found the problem:
In each trunk form, the field "Registration String:" was blank except for one.
After re-filling these fields, registration lines show up in iax.conf.
The patch you provided in your post displays this field, but it was empty, or I committed with empty fields.
In my understanding, the version update did not carry over all values for this field.