Hi all,
Ok so im running asterisk on a synology NAS. I know… Its not ideal but its my only option ATM.
SO the only access I have to asterisk here is through the web gui which I know is crap.
So im trying to add the following lines to the extensions.conf file, and im having to do so using the file editor in the web gui.
[quote][dialplan_name]
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,AGI(chatplan.php,${MESSAGE(from)})
;exten => _.,n,Set(ACTUALTO=${CUT(MESSAGE(to),@,1)})
;exten => _.,n,ExecIf($["${ACTUALTO}" != “sip:${EXTEN}”]?Set(ACTUALTO=sip:${EXTEN}))
exten => _.,n,MessageSend(${ACTUALTOS},${MESSAGE(from)})
exten => _.,n,NoOp(Send status is ${MESSAGE_SEND_STATUS})
exten => _.,n,GotoIf($["${MESSAGE_SEND_STATUS}" != “SUCCESS”]?sendfailedmsg)
exten => _.,n,Hangup()[/quote]
I add those lines and hit save, but this is what it actually saves…
[quote]exten=.,n,Set(ACTUALFROM=${CUT(ME_1,@,1)})
exten=.,n,MessageSend(${ACTUALFROM},ServiceCenter)
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,AGI(chatplan.php,${MESSAGE(from)})
exten=.,n,MessageSend(${ACTUALTOS},${MESSAGE(from)})
exten=.,n,NoOp(Send status is ${MESSAGE_SEND_STATUS})
exten=.,n,GotoIf($["${MESSAGE_SEND_STATUS}" != “SUCCESS”]?sendfailedmsg)
exten=_.,n,Hangup()
[/quote]
as you can see its removing the execif lines. and there are a few other things it tends to remove or it changes the order of what I actually put in resulting in errors.
SO my question is, whats causing this? and how can I fix it?
OR Is there another way to acess this asterisk install apart from the gui? I would love to be able to telnet into this, but doing so just lands me in the CLI for synology and not asterisk.
Anyone have any ideas here?