I would guess that you have an issue in your dialplan somewhere. Notice that there is no gateway name specified in this bridge call:
EXECUTE sofia/internal/1000@192.168.0.5 bridge(sofia/gateway//15551234567)