[asterisk-users] Respond to an out of call SIP MESSAGE

D'Arcy J.M. Cain darcy at Vex.Net
Mon Sep 21 09:45:19 CDT 2015


On Mon, 21 Sep 2015 06:48:52 +0000
Emil Ohlsson <emo at svep.se> wrote:
> [sip-im]
> exten _X!, 1, NoOp(Got message)
> exten _X!, n, Answer()
> exten _X!, n, Agi(agi://localhost/messagehandler.agi?...)
> exten _X!, n, SendText(Message received)

I am not an expert but perhaps you want this.

[sip-im]
  exten s,1,NoOp(Got message)
    same,n,Answer()
    same,n,Agi(agi://localhost/messagehandler.agi?...)
    same,n,SendText(Message received)

Replacing "exten _X!" with "same" is just a shortcut.  I find that
there are lots of places where spaces cause problems so I just remove
them all for good measure.  Finally, I am not sure what the mechanism
is here but if it is like a goto then I think that you want the 's'
priority.

Or, I totally don't know what I am talking about and my education will
be advanced by the replies to this message.  :-)

-- 
D'Arcy J.M. Cain
System Administrator, Vex.Net
http://www.Vex.Net/ IM:darcy at Vex.Net
VoIP: sip:darcy at Vex.Net



More information about the asterisk-users mailing list