Nexmo is a San Francisco based company that provides sms service with direct routes to many countries.
Field params looks like this:

"api_key": "n3xm0rocks",
"api_secret": "12ab34cd"
type: transceiver
provider: nexmo

SQL request to create sms gate in Navixy system:
(previously you’ll need to be registered on Nexmo web site and get api_key and api_secret)

INSERT INTO `google`.`sms_gates` (`type`, `provider`, `params`, `enabled`, `class_filter`) VALUES ('transceiver', 'nexmo', '{"api_key":"n3xm0rocks", "api_secret":"12ab34cd"}',1,'*');

According to Nexmo docs you can find your api_key and api_secret in the Nexmo Dashboard.
Update phone number that will be used as sender phone.

UPDATE `google`.`dealers` SET `master_phone` = "NEXMO_PHONE",`from_sms`="NEXMO_PHONE" WHERE dealer_id=1;

In the request shown above you should insert your nexmo phone number instead of NEXMO_PHONE.

Also if you are writing script you should escape all backticks.

Incoming messages

To get incoming messages via Nexmo, please add the following URL using the Nexmo web-interface:


Where $IPADDR is an ip address of the server or its domain name
$GATEID – id of sms gate which is processing incoming messages
22000 – port used to listen connects(default value)
Also you can add URL using Nexmo API by calling a request

wget --header="Content-Type:application/x-www-form-urlencoded" --post-data="account/settings/$API_KEY/$API_SECRET?&moCallBackUrl=http%3A%2F%2F$IPADDR%3A22000%2Fsms%2F$GATEID%2Fincoming&drCallBackUrl=http%3A%2F%2F$IPADDR%3A22000%2Fsms%2F$GATEID%2Fdlr"


curl -X POST -H "Content-Type:application/x-www-form-urlencoded"$API_KEY/$API_SECRET?&moCallBackUrl=http%3A%2F%2F$IPADDR%3A22000%2Fsms%2F$GATEID%2Fincoming&drCallBackUrl=http%3A%2F%2F$IPADDR%3A22000%2Fsms%2F$GATEID%2Fdlr

All variables are the same as above.
For more information, please see Nexmo docs

We use сookies to improve our website, products and related services, analyze site traffic, and serve targeted advertisements. If you continue to use our services, you consent to our use of сookies. Read more