Why I Get Repeat Messages Many Times

Home » Asterisk Users » Why I Get Repeat Messages Many Times
Asterisk Users 3 Comments

I am using the asterisk 13 and I config my dialplan for the SIP messaging as the following :
http://highsecurity.blogspot.com/2012/03/asterisk-10-110-sms-messaging-or-sip.html
[astsms]
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()

With this configuration I could send message, but I don’t know what wrong with it as sometimes I get the repeat messages many times. do you have any idea?

3 thoughts on - Why I Get Repeat Messages Many Times

  • I am using the asterisk 13 and I config my dialplan for the SIP messaging as the following :
    http://highsecurity.blogspot.com/2012/03/asterisk-10-110-sms-messaging-or-sip.html
    [astsms]
    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()

    With this configuration I could send message, but I don’t know what wrong with it as sometimes I get the repeat messages many times. do you have any idea?

  • No, It directly goes the context astsms when we send the message. but it still repeats the message sometimes.