I am new to asterisk. My last company used 3CX, but this place uses asterisk, which I like better for its simplicity.
I am however having trouble getting messaging setup with users.
this is my test group in my sip conf
accept_outofcall_message = yes
outofcall_message_context=astsms
[1001]
type=friend
context=internal
host=dynamic
secret=Chaz1429
callerid="Upstairs Office" <1001>
mailbox=1001@default
disallow=all
allow=ulaw
allow=alaw
allow=gsm
nat=force_rport,comedia
directmedia=no
message_context=astsms
[1005]
type=friend
context=internal
host=dynamic
secret=Chaz1429
callerid="Charles Mobile" <1005>
mailbox=1005@default
disallow=all
allow=ulaw
allow=alaw
allow=gsm
nat=force_rport,comedia
directmedia=no
message_context=astsms
[1006]
type=friend
context=internal
host=dynamic
secret=Chaz1429
callerid="Home PC" <1006>
mailbox=1006@default
disallow=all
allow=ulaw
allow=alaw
allow=gsm
nat=force_rport,comedia
directmedia=no
message_context=astsms
and this is my extensions.conf
[astsms]
exten => _X.,1,NoOp(SMS receiving dialplan invoked)
exten => _X.,n,NoOp(To ${MESSAGE(to)})
exten => _X.,n,NoOp(From ${MESSAGE(from)})
exten => _X.,n,NoOp(Body ${MESSAGE(body)})
exten => _X.,n,Set(ACTUALTO=${CUT(MESSAGE(to),@,1)})
exten => _X.,n,MessageSend(sip:${ACTUALTO}@SipServerIP,${MESSAGE(from)})
exten => _X.,n,NoOp(Send status is ${MESSAGE_SEND_STATUS})
exten => _X.,n,GotoIf($["${MESSAGE_SEND_STATUS}" != "SUCCESS"]?sendfailedmsg)
exten => _X.,n,Hangup()
exten => _X.,n(sendfailedmsg),Set(MESSAGE(body)="${STRFTIME(${EPOCH},,%d%m%Y-H:%M:%S)}] Your message to ${EXTEN} has failed. Retry later.")
exten => _X.,n,Set(ME_1=${CUT(MESSAGE(from),<,2)})
exten => _X.,n,Set(ACTUALFROM=${CUT(ME_1,@,1)})
exten => _X.,n,MessageSend(sip:${ACTUALFROM}@SipServerIP,ServiceCenter)
exten => _X.,n,Hangup()
and this is my log when I send a message
-- Executing [1005@astsms:1] NoOp("Message/ast_msg_queue", "SMS receiving dialplan invoked") in new stack
-- Executing [1005@astsms:2] NoOp("Message/ast_msg_queue", "To sip:1005@SipServerIP") in new stack
-- Executing [1005@astsms:3] NoOp("Message/ast_msg_queue", "From "Home PC" <sip:1006@SipServerIP>") in new stack
-- Executing [1005@astsms:4] NoOp("Message/ast_msg_queue", "Body hi") in new stack
-- Executing [1005@astsms:5] Set("Message/ast_msg_queue", "ACTUALTO=sip:1005") in new stack
-- Executing [1005@astsms:6] MessageSend("Message/ast_msg_queue", "sip:sip:1005@SipServerIP,"Home PC" <sip:1006@SipServerIP>") in new stack
-- Executing [1005@astsms:7] NoOp("Message/ast_msg_queue", "Send status is SUCCESS") in new stack
-- Executing [1005@astsms:8] GotoIf("Message/ast_msg_queue", "0?sendfailedmsg") in new stack
-- Executing [1005@astsms:9] Hangup("Message/ast_msg_queue", "") in new stack
== Spawn extension (astsms, 1005, 9) exited non-zero on 'Message/ast_msg_queue'
-- Executing [1006@astsms:1] NoOp("Message/ast_msg_queue", "SMS receiving dialplan invoked") in new stack
-- Executing [1006@astsms:2] NoOp("Message/ast_msg_queue", "To sip:1006@SipServerIP;transport=UDP") in new stack
-- Executing [1006@astsms:3] NoOp("Message/ast_msg_queue", "From <sip:1005@SipServerIP;transport=UDP>") in new stack
-- Executing [1006@astsms:4] NoOp("Message/ast_msg_queue", "Body Yo") in new stack
-- Executing [1006@astsms:5] Set("Message/ast_msg_queue", "ACTUALTO=sip:1006") in new stack
-- Executing [1006@astsms:6] MessageSend("Message/ast_msg_queue", "sip:sip:1006@SipServerIP,<sip:1005@SipServerIP;transport=UDP>") in new stack
-- Executing [1006@astsms:7] NoOp("Message/ast_msg_queue", "Send status is SUCCESS") in new stack
-- Executing [1006@astsms:8] GotoIf("Message/ast_msg_queue", "0?sendfailedmsg") in new stack
-- Executing [1006@astsms:9] Hangup("Message/ast_msg_queue", "") in new stack
== Spawn extension (astsms, 1006, 9) exited non-zero on 'Message/ast_msg_queue'
Any help would be greatly appreciated