Hello,
I am running a Freepbx distro v14 and configure it for chan_sip sms between extensions using the below setup:
Sip settings
accept_outofcall_message=yes
outofcall_message_context=astsms
And added to the extensions_custom.conf file
exten => _.,1,NoOp(SMS receiving dialplan invoked)
exten => _.,n,NoOp(To ${MESSAGE(to)})
exten => _.,n,NoOp(From ${MESSAGE(from)})
exten => _.,n,NoOp(Body ${MESSAGE(body)})
exten => _.,n,Set(ACTUALTO=${CUT(MESSAGE(to),@,1)})
exten => _.,n,MessageSend(${ACTUALTO},${MESSAGE(from)})
exten => _.,n,NoOp(Send status is ${MESSAGE_SEND_STATUS})
exten => _.,n,GotoIf($["${MESSAGE_SEND_STATUS}" != “SUCCESS”]?sendfailedmsg)
exten => _.,n,Hangup()
;
; Handle failed messaging
exten => _.,n(sendfailedmsg),Set(MESSAGE(body)="[${STRFTIME(${EPOCH},%d%m%Y-%H:%M:%S)}] Your message to ${EXTEN} has failed. Retry later.")
exten => _.,n,Set(ME_1=${CUT(MESSAGE(from),<,2)})
exten => _.,n,Set(ACTUALFROM=${CUT(ME_1,@,1)})
exten => _.,n,MessageSend(${ACTUALFROM},ServiceCenter)
exten => _.,n,Hangup()
exten => _.,n,Hangup()
It worked for years but stopped, (the latest sms was at 19/01/2019), the only change was system and module updates.
GS Wave SIP Massage log shows sip/2.0 404 not found as a reply when I send a message!
When it works the responsed was sip/2.0 202 accepted.
I would like to ask if there are any changes of how Freepbx handles custom.conf files or any change that may affect the above functionality?
Thank you very much in advance!