On Mon, 21 Sep 2015 06:48:52 +0000
Emil Ohlsson <[email protected]> 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:[email protected]
VoIP: sip:[email protected]
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users