javaasteriskcommunicationasteriskamijain-sip

How to make outgoing call via JAIN-SIP to asterisk


I try to migrate my project from asterisk-ami to SIP protocol. However, I couldn't find any examples to create outgoing call via jain sip. Some documentation mentions project sip-communicator but he is outdated.

About project: it's notification system via phone. It calls a person and after 2-3 calls interrupts the call. So I just need to call via astersik from my java code and interrupt the call.


Solution

  • JAIN-SIP is not a functionally comparable to asterisk-ami. However if you really just want to make an outbound call you can use this example which originates a call from sip:127.0.0.1:5060 to sip:127.0.0.1:5070.