SMS senden mit smsdiscount.com

geistio

Neuer User
Mitglied seit
20 Okt 2007
Beiträge
52
Punkte für Reaktionen
0
Punkte
0
Hallo!
Kennt jemand oben genannten Provider?
Hat jemand vielleicht eine Ahnung wie ich smsdiscount.com so einbinde, dass ich über Asterisk SMS versenden kann?
Meine sip.conf sieht zur Zeit so aus:
Code:
register => user:[email protected]/smsdiscount

[smsdiscount]
type=peer
username=user
fromuser=user
secret=password
host=connectionserver.smsdiscount.com
fromdomain=connectionserver.smsdiscount.com
insecure=port,invite
Wie man sieht, sollte diese Konfiguration passen...
Code:
asterisk*CLI> sip show peer smsdiscount
asterisk*CLI> 

  * Name       : smsdiscount
  Secret       : <Set>
  MD5Secret    : <Not set>
  Context      : incoming-voip
  Subscr.Cont. : <Not set>
  Language     : de
  AMA flags    : Unknown
  Transfer mode: open
  CallingPres  : Presentation Allowed, Not Screened
  FromUser     : username
  FromDomain   : connectionserver.smsdiscount.com
  Callgroup    : 
  Pickupgroup  : 
  Mailbox      : 
  VM Extension : asterisk
  LastMsgsSent : 32767/65535
  Call limit   : 0
  Dynamic      : No
  Callerid     : "" <>
  MaxCallBR    : 384 kbps
  Expire       : -1
  Insecure     : port,invite
  Nat          : RFC3581
  ACL          : No
  T38 pt UDPTL : No
  CanReinvite  : No
  PromiscRedir : No
  User=Phone   : No
  Video Support: No
  Trust RPID   : No
  Send RPID    : No
  Subscriptions: Yes
  Overlap dial : Yes
  DTMFmode     : rfc2833
  LastMsg      : 0
  ToHost       : connectionserver.smsdiscount.com
  Addr->IP     : 194.221.62.197 Port 5060
  Defaddr->IP  : 0.0.0.0 Port 0
  Def. Username: username
  SIP Options  : (none)
  Codecs       : 0xc (ulaw|alaw)
  Codec Order  : (ulaw:20,alaw:20)
  Auto-Framing:  No 
  Status       : OK (51 ms)
  Useragent    : 
  Reg. Contact :

Also... Verbindung zum SIP server steht. Jetzt gilt es nur noch herauszufinden, wie SMS verschickt werden...
Hat jemand eine Idee?
 
Hallo!
Habe den Thread wohl etwas zu voreilig gestartet...
Die "Lösung" des Problems findet sich auf der etwas versteckten Seite: http://www.smsdiscount.com/en/sms_instructions.html
You can also send text messages (SMS) without using our software or accessing the website. Use the following link and fill in the desired data:

_https://myaccount.smsdiscount.com/clx/sendsms.php?username=xxxxxxxxxx​&password=xxxxxxxxxx&from=xxxxxxxxxx&to=xxxxxxxxxx&text=xxxxxxxxxx

Explanation of the variables:
username: your SMS Discount username
password: your SMS Discount password
from: your username or your verified phone number. Always use international format for the number starting with +, for instance +491701234567
to: the number you wish to send the sms to. Always use international format starting with +, for instance +491701234567
text: the message you want to send

Vielleicht braucht das ja mal jemand...
 
Ich würds auch gerne umsetzen. Aber ich würde das gerne mit so was hier kombinieren. Sprich: SMS von einem normalen, an einer FBF hängendem Festnetztelefon über smsdiscount versenden. Ideen?
 
Eigentlich müsste es ganz einfach gehen:
Erstmal ganz normal mit der Asterisk-application sms arbeiten, dann meldet mein DECT-Telefon (vom fritzisierten Speedport W501V), dass die sms gesendet wurde, dann befindet sich die sms in der Datei /var/log/asterisk/sms. Man müsste bloß mit normalen Linux-Befehlen wie grep und awk Die Nummer und den Text der sms aus der Datei rausfischen und dann in die URL einfügen und die URL dann einfach mit wget holen. Wget habe ich erfolgreich so probiert:
Code:
wget -O /dev/null "https://myaccount.smslisto.com/clx/sendsms.php?username=PsychoMantis&password=blablabla&from=+4915209876543&to=+49174798765432&text=Hallo. Welt?"
 
Kostenlos!

Statistik des Forums

Themen
248,887
Beiträge
2,303,985
Mitglieder
378,567
Neuestes Mitglied
MacOS