@billsimon I should just be able to do this to hook into the SMS connector module to send from another module right?
FreePBX::create()->Smsconnector->processOutboundSip($to, $from, $message)
@billsimon I should just be able to do this to hook into the SMS connector module to send from another module right?
FreePBX::create()->Smsconnector->processOutboundSip($to, $from, $message)
Yes, worked for me:
require_once('/etc/freepbx.conf'); // main bootstrap
$FreePBX = FreePBX::Create();
$FreePBX->Smsconnector->processOutboundSip("<pstn number>", "1101", "howdy there");
note that $to is a PSTN target and $from is an extension number on the system. This method (hopefully obvious) is for originating messages from SIP clients.
Thanks for confirming.
I’m glad to know you’re building something with SMS Connector. I haven’t heard much about it lately which means either people aren’t using it or they’re using it successfully and not asking questions.
I’d say the latter. 10DLC approval was where the headache is not the SMS connector