wardmundy
Nerd Uno
- Joined
- Oct 12, 2007
- Messages
- 19,201
- Reaction score
- 5,220
We're putting the finishing touches on a new SMS interface to Incredible PBX using SMS-enabled DIDs from Vitelity and VoIP.ms. The idea is you can send an SMS message to your server, and it will call you back or perform the task you requested.
If you'd like to try it out from your smartphone (in the U.S. only), send an SMS message to 843-606-0444 with one of the following words as your message. Upper and lower case don't matter.
news
weather
help
wolfram
asteridex
odbc
cf on (see next message)
cf off (see next message)
cf status
When you get a callback, the first 3 are self-explanatory. For Wolfram Alpha, say something like: "What planes are flying overhead now?" For AsteriDex, this is the Voice Dialer using IBM Voice Recognition. Say "Delta Airlines" or "American Airlines." For ODBC, this documents how to interface Asterisk to an existing MySQL database, AsteriDex in this example. When prompted for DialCode, enter 335 (DELta airlines) or 263 (AMErican airlines). This obviously could be any ODBC-aware database or CRM software.
Other ideas for content are welcomed!
When we turn this loose to implement on your own server, we'll add DISA, SMS, and TM3 support which will make it helpful when you're outside your local country/area and wish to make calls/send messages at cheaper rates from or login to your own PBX. The 10-digit DISA dialing limitation could obviously be reworked for international use as well.
If you'd like to try it out from your smartphone (in the U.S. only), send an SMS message to 843-606-0444 with one of the following words as your message. Upper and lower case don't matter.
news
weather
help
wolfram
asteridex
odbc
cf on (see next message)
cf off (see next message)
cf status
When you get a callback, the first 3 are self-explanatory. For Wolfram Alpha, say something like: "What planes are flying overhead now?" For AsteriDex, this is the Voice Dialer using IBM Voice Recognition. Say "Delta Airlines" or "American Airlines." For ODBC, this documents how to interface Asterisk to an existing MySQL database, AsteriDex in this example. When prompted for DialCode, enter 335 (DELta airlines) or 263 (AMErican airlines). This obviously could be any ODBC-aware database or CRM software.
Other ideas for content are welcomed!
When we turn this loose to implement on your own server, we'll add DISA, SMS, and TM3 support which will make it helpful when you're outside your local country/area and wish to make calls/send messages at cheaper rates from or login to your own PBX. The 10-digit DISA dialing limitation could obviously be reworked for international use as well.
Code:
[custom-disa]
exten => s,1,Answer
exten => s,n,Wait(1)
exten => s,n,Set(TIMEOUT(digit)=7)
exten => s,n,Background(enter-password)
exten => s,n,Read(MYCODE,beep,7)
exten => s,n,GotoIf($["${MYCODE}" = "902101"]?disago:bad)
exten => s,n(disago),Set(TIMEOUT(absolute)=9000)
exten => s,n,Read(NUM2CALL,pls-entr-num-uwish2-call,10)
exten => s,n,Background(calling)
exten => s,n,SayDigits("${NUM2CALL}")
exten => s,n,Goto(outbound-allroutes,${NUM2CALL},1)
exten => s,n(bad),Hangup
Code:
[whitelist-ip]
exten => s,1,Answer
exten => s,n,Wait(1)
exten => s,n,Set(TIMEOUT(digit)=7)
exten => s,n,Background(enter-password)
exten => s,n,Read(MYCODE,beep,7)
exten => s,n,GotoIf($["${MYCODE}" = "902101"]?ipgo:bad)
exten => s,n(ipgo),Set(TIMEOUT(absolute)=9000)
exten => s,n,Background(please-enter-your)
exten => s,n,Read(IPADDR,address,15)
exten => s,n,Set(IPADDRESS=${REPLACE(IPADDR,*,.)})
exten => s,n,Background(you-entered)
exten => s,n,SayAlpha(${IPADDRESS})
exten => s,n,Read(continue,1-yes-2-no,1)
exten => s,n,GotoIf($["${continue}" = "1"]?ipproceed:bad)
exten => s,n(ipproceed),System(sudo /sbin/iptables -A INPUT -s ${IPADDRESS} -j ACCEPT)
exten => s,n,Playback(address)
exten => s,n,Playback(has-been-set-to)
exten => s,n,SayAlpha(${IPADDRESS})
exten => s,n(bad),Playback(goodbye)
exten => s,n,Hangup
Last edited: