This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
sdk:tcp2sms [2015/07/03 08:55] – fachet | sdk:tcp2sms [2015/07/03 09:00] – fachet | ||
---|---|---|---|
Line 2: | Line 2: | ||
/* DESC: This script send a SMS received by a TCP message "< | /* DESC: This script send a SMS received by a TCP message "< | ||
* Don't forget to configure and enable the SMS service first | * Don't forget to configure and enable the SMS service first | ||
+ | * The number format is international e.g. +4912345678 | ||
* Copyright (C) 2012 NetModule AG, Switzerland | * Copyright (C) 2012 NetModule AG, Switzerland | ||
*/ | */ | ||
Line 18: | Line 19: | ||
if (p = strchr(m, ":" | if (p = strchr(m, ":" | ||
if (nb_sms_send(left(m, | if (nb_sms_send(left(m, | ||
- | send(s, " | + | send(c, " |
else | else | ||
- | send(s, " | + | send(c, " |
} | } | ||
} | } | ||
</ | </ |