I’m having trouble working out the requirement here. Knowing the ultimate goal might help.
I assume directly to a line means an analogue Dahdi line, and, if you expect any dialtone, other than the one you have configured with Asterisk, so already know, I assume it is via an FXO line card.
I think you can only listen to the dialtone as (early) media, and you would have to dial a number which was zero length or only contained pauses.
Using ARI I am able to call my mobile number ,but when I try to get events for the application may give me required results in error “AttributeError: ‘WebSocket’ object has no attribute ‘raise_for_status’”