Asterisk transfer a call using java

I have a java project, that is using peers (http://peers.sourceforge.net/) and i would like to transfer the call before the peers hang up.

For example, i have asterisk up and running, i call the peers extension 2020, and after 30s i want to transfer the call to another peers running is extension 2030.

If your sip client doesn’t has a transfer button use the DTMF set in your asterisk features.conf

From my investigation on the web, I find The Manager API ( from https://asterisk-java.org/tutorial/#apidocsindex.html ) and was thinking that could be possible to send an action to asterisk to transfer a call from one extension to another.

But so far, I could not make it work by my self

Ah you want to do it using AMI, check this: https://www.voip-info.org/wiki/view/Asterisk+Manager+API+Action+Redirect

1 Like

Thanks for the help, i will try this option an inform you later on the final result