I connect to Asterisk AMI and I want to receive only Newchannel and DialBegin events from the extension 222, for this i perform the following command:
Filter: (Newchannel|DialBegin)(\n.*)*Channel: PJSIP/222-
Asterisk returns success, but when I do call from 222 to any phone, it does not come any event. What am I doing wrong?