Hello, I wrote a c# client to connect to Asterisk 13. It is a simple code, where I mainly open a socket, connect to the Asterisk and then I send an originate.
My dialplan is also really simple, please take a look at it below:
[originate_context] exten => s,1,Verbose(Tech example context originate_context) exten => s,n,UserEvent(event_entereddialplano, fabio carvalho) exten => s,n,Hangup()
All the communication works fine, I am able to start a call with the originate and i can receive all the events coming from Asterisk.
But when i decided to read the body of the user event, in my dial plan “fabio carvalho” for example, i can’t get it in my socket connection.
According to the documentation, the UserEvent data model contains the following fields:
Event: UserEvent Channel: <value> ChannelState: <value> ChannelStateDesc: <value> CallerIDNum: <value> CallerIDName: <value> ConnectedLineNum: <value> ConnectedLineName: <value> Language: <value> AccountCode: <value> Context: <value> Exten: <value> Priority: <value> Uniqueid: <value> Linkedid: <value> UserEvent: <value>
And this is exactly what I can read.
My question is, how can I read the body (or the params) I can pass in the UserEvent ?
Thanks in advance,