This is my actual externsions.conf Call setting is working fine but SMS is not working. I hope you could help me with this.
[general]
static=yes
writeprotect=no
autofallthrough=yes
extenpatternmatchnew=no
clearglobalvars=no
[globals]
[outgoing]
include => goip-out
include => goip-in
include => internal-extensions
include => voicemail
;========================================================================================
;================= OUTBOUND CALLS via GOIP DEVICE =====================================
;========================================================================================
[goip-out]
exten => _09XXXXXXXXX,1,NoOp()
exten => _09XXXXXXXXX,n,Dial(SIP/goip-trunk-outgoing/${EXTEN},30,t)
exten => 7XXX,2,SMS(send,SIP/goip-trunk,number,09XXXXXXXXX,text=This is a test message)
exten => _09XXXXXXXXX,n,Hangup()
;========================================================================================
;================= INCOMING CALLS via GOIP DEVICE =====================================
;========================================================================================
[goip-in]
exten => 7000,1,Answer() ;7000 will be the extension you will assign to the GOIP device to where the incoming calls will be forwarded.
exten => 7000,n,Dial(SIP/7001&SIP/7002&SIP/7003&SIP/7004&SIP/7005&SIP/7006,20) ;define extensions to where the calls will be forwarded simultaneously.
exten => 7000,n,Voicemail(7001@default,u)
exten => 7XXX,2,SMS(send,SIP/goip-trunk,number=${CALLERID(num)},text=Hello from Asterisk)
exten => 7000,n,Hangup()
;========================================================================================
;================= LOCAL EXTENSIONS CALLS | INTERNAL ==================================
;========================================================================================
[internal-extensions]
exten => _7XXX,1,NoOP(${CALLERID(num)})
exten => _7XXX,n,Set(MONITOR_FILENAME=/var/spool/asterisk/monitor/${CALLERID(num)}to${EXTEN}-${STRFTIME(${EPOCH},d%Y%m%d-t%H%M%S)}) ;this is for the recordings comment if not nedded
exten => _7XXX,n,MixMonitor(${MONITOR_FILENAME}.WAV) ;this is for the recordings comment if not nedded
exten => _7XXX,n,Verbose(Dialing support)
exten => _7XXX,n,Dial(SIP/${EXTEN},30,tr)
exten => _7XXX,n,Busy()
;Voicemail access
[voicemail]
exten => 500,1,Answer()
exten => 500,2,VoiceMailMain(@agents) ;agents will be base on the mailbox number you assigned in the voicemail(.)conf config
[msgcontext]
exten =>_X.,1,set(ACTUALTO=${CUT(MESSAGE(to),@1})
exten => _X.,n,MessageSend($ACTUALTO},${MESSAGE(from)})
exten => _X.,n,Hangup()
[sms]
type=friend
context=default
host=192.168.1.4
port=5060
dtmfmode=rfc2833
transport=udp
[sms]
exten => 7XXX,1,SMS(send=SIP/sms,number=09XXXXXXXXX,text=This is a test message)
[sms]
exten => 7XXX,1,SMS(send=SIP/goip-trunk,number=${CALLERID(num)},text=Hello from Asterisk)