I am already on a stage where I can initiate a outbound call through a stasis application.
But I cannot achieve few things that I want to get help on.
To achieve an outbound call:
- I called originate on a sip peer registered on asterisk. (A zoiper extension)
- I called originate on sip trunk on my number.
- I created a bridge.
- Once I got StasisStart event on a channel I add that channel to that bridge. Same with other channel.
Now both the sip extension and my phone can talk to each other.
But what I want to achieve is that the extension should listen the ringing or the busy tone or whatever when user on the extension picks up the call…
Or in short I want to mimic the behaviour of an extension dialing out a sip trunk though Dial app in extension.conf.
For this I am using ari4java.
Any help regarding the process to achieve this will be appreciated. Thanks in advance.