Unstable ASTERISK peer connection to GSM Gateway

You can do it in the dialplan

This example should get you going. Two things I would change, 1- The obvious chan_sip. 2. Instead of going to the other context, I’d rather do it all in one with a WhileLoop