Sendmessage ari nodejs

[EDIT]
Hi,
In nodejs I try to send a SMS to my personal phone using:
chan._client.endpoints.sendMessage({
from:‘mysip’,
to:‘+33XXXXXXXXX@mysip’,
variables:{
“body”: “this is a test”
}
})
.then(function () {console.log(‘no error’)})
.catch(function (err) {console.log(err)});

In sip.conf:
[general]
register=>PHONENUMBER:PASSWORD@XXX.sip.ovh:5060

[mysip]
type=friend
host=xxxx.sip.ovh
context=incoming
language=fr
insecure=peer
username=PHONENUMBER
secret=PASSWORD

There is no error when I run the code but I don’t receive any sms in my personnal smartphone.
Someone can help please?

ASTERISK 20

Are there any errors in your provider’s logs ? Perhaps you can find these in their web interface ?

Also, chan_sip is deprecated; for new installations, chan_pjsip is recommended.

Hi,
Thank you for your answer.
I finnaly moved to another option for the SMS, using an API.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.