Hi, I have tried to use UserEvent() command to send data to Asterisk Manager from my dialplan. It works fine if the body only contains 1 line but I don't know how to send multiple arguments in the body. I have tested: UserEvent(eventname|body1|body2) UserEvent(eventname|body1\r\nbody2) But no one seems to work. Is it possible to do that and what is the correct syntax? Amaury BOSS? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20060105/7480bbf8/attachment.htm
Tony Mountifield
2006-Jan-05 13:49 UTC
[Asterisk-Users] Re: UserEvent() with multiple body lines
In article <689D21B66F7B4C46BB75A6B82D3A9114044B77@venus.cmm.local>, amaury BOSSE <a.bosse@courantmultimedia.fr> wrote:> > I have tried to use UserEvent() command to send data to Asterisk Manager from my dialplan. > > It works fine if the body only contains 1 line but I don't know how to send multiple > arguments in the body.I have never found a way. I did look at the code, and I don't think it's possible without changes (e.g. to convert | or \n to newlines). BTW, please post to the list in plain text, not HTML. Cheers Tony -- Tony Mountifield Work: tony@softins.co.uk - http://www.softins.co.uk Play: tony@mountifield.org - http://tony.mountifield.org