Hi Richard,
your backtrace seems to indicate that you do not have an extension assigned to the subscriber with ID 1. Sending SMS from VTY will be performed as if it was sent from that 'magic' subscriber.
As indicated before, current SMS-from-VTY code is a big hack and needs reimplementation.