Now with SMS ! New
or create new account

FAQ Sections
Configure Asterisk to send and receive SMS over SIP

Anveo supports SMS over SIP. Asterisk can be configured to send and receive messages through Anveo.
Below is a sample configuration only. You must modify it according to your needs and security standards.
sip.conf
Append the following to the end of sip.conf
[anveo]
type=peer
host=sip.anveo.com
port=5010
username=ACCOUNT_NUMBER
secret=password
insecure=port,invite
disallow=all
allow=ulaw
allow=alaw
allow=g729
dtmfmode=rfc2833
context=from-anveo
Locate [general] secion and add the following
register => ACCOUNT_NUMBER:SIP_PASSWORD@sip.anveo.com:5010

**** the "register => ACCOUNT_NUMBER:SIP_PASSWORD@sip.anveo.com:5010" statement should be the first thing under [general]
extensions.conf
Append the following dial plans to the end of extension.conf and customize them according to your needs.
[from-anveo]
exten => s,1,Verbose(Incoming SMS from ${CALLERID(num)})
exten => s,n,Answer
exten => s,n,Set(SMSINRAW=${MESSAGE(body)})
exten => s,n,Set(SMSIN=${URIENCODE(${SMSINRAW})})
exten => s,n,NoOp(Saving SMS message to a file)
exten => s,n,Set(FILE(/var/spool/asterisk/sms/${STRFTIME(${EPOCH},,%F-%T)}-${CALLERID(num)}-${EXTEN}.txt,a)=${MESSAGE(body)})
exten => s,n,Hangup

[smsdial]
exten => 1,1,NoOp(Sending a Message)
exten => 1,n,Set(MESSAGE(body)=Hello)
exten => 1,n,MessageSend(sip:<RECIPIENT_NUMBER@sip.anveo.com:5010>,<ACCOUNT_NUMBER_ONLY>)
:.:
News Blog About Anveo Terms of Use Privacy Policy FAQ Contact Us © 2024 Anveo Inc.