Hello,
I need help trying to determine if a specific behavior in Asterisk is a bug or just me not understanding how Asterisk is supposed to work.
Setup: Asterisk 17.5.1, PJSIP, and ARI with Automatic Context Creation (no dialplan).
I’m subscribing 3 ARI applications to events with subscribeAll=false :
wss://…/ari/events?app=CallControl,CallQueueing,CallDialing& subscribeAll=false &api_key=uuu:pwd
Then I’m originating a call using originate: POST /channels from the CallDialing application:
…/ari/channels?endpoint=PJSIP/0001130& app=CallDialing &appArgs=&callerId=%22The%22%20%3C8001112222%3E&timeout=30
My understanding is that the application that originates a channel (CallDialing in this case) should receive the channel events (Dial, ChannelDestroyed, etc.) exclusively because subscribeAll=false was specified. But what is actually happening is that ARI generates some events (Dial, ChannelHangupRequest, and ChannelDestroyed) for both, CallDialing and CallControl. Is this by design or a bug?
Note: The PJSIP endpoints are created with context = stasis-CallControl because I need the CallControl application to take control when a call is dialed by the softphone. Not sure if this has anything to do with this issue though.
Thanks,
Marcelo