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)

If you need help looking at your dialplan then throw it on pastebin.freeswitch.org and we'll take a peek at it.
-MC