UserEvent appears to corrupt event parsing
Reported by Jason Goecke | February 11th, 2009 @ 08:22 PM | in 0.8.5
If a user invokes the AGI command UserEvent (http://www.voip-info.org/wiki/vi... two things happen:
- The UserEvent never appears to be processed in events.rb
- The next calls that come in after the first call with UserEvent, no longer have any events
It would appear that the UserEvent is causing Ragel to lose itself and then it no longer processes events.
First call:
Second call:
Comments and changes to this ticket
-
Jason Goecke February 11th, 2009 @ 08:28 PM
It appears that if a UserEvent is sent like this:
exten => _X.,1,UserEvent(EVENTHIS|billing=yes)
This is when Ragel gets confused. While on the other hand if you do something like:
exten => _X.,1,UserEvent(LOGVARIABLES|invoice:yes)
We then get the events in Adhearsion as follows:
INFO event_logger: Adhearsion::VoIP::Asterisk::Manager::ManagerInterfaceEvent: #<Adhearsion::VoIP::Asterisk::Manager::ManagerInterfaceEvent:0x175f110 @headers={"invoice"=>"yes", "Privilege"=>"user,all", "UserEvent"=>"LOGVARIABLES"}, @name="UserEvent">
Which corresponds to the AMI this way:
Event: UserEvent Privilege: user,all UserEvent: LOGVARIABLES invoice:yes
So, two things here:
- We need to ensure we document how to use custom events on the Wiki for Adhearsion to be done properly
- We need to ensure that the Ragel parsing is more robust so that it drops events not understood and moves on to the next one, as opposed to not parsing anything going forward
-
Jay Phillips March 24th, 2009 @ 06:47 PM
- State changed from new to open
-
Jay Phillips March 24th, 2009 @ 06:47 PM
- Milestone cleared.
-
Ben Klang August 7th, 2010 @ 01:57 PM
- Assigned user changed from Jay Phillips to Ben Klang
- Milestone order changed from 0 to 0
This is a duplicate of ticket #84.
-
Ben Klang August 7th, 2010 @ 02:02 PM
- Milestone set to 0.8.5
- State changed from open to duplicate
- Milestone order changed from 2999 to 0
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
People watching this ticket
Referenced by
- 100 sandbox.rb line #58 This is the code around line #58 (case) in sandbox.rb file
- 84 Unable to process UserEvent This is a duplicate of ticket #58
- 84 Unable to process UserEvent Information from #58. Jason Goecke wrote: