I'm trying to make my Asterisk PBX callback two (external) numbers
and connect them together as one call. That means: PBX calls the
caller and then the callee, after that the caller can talk to the
callee and vice-versa.
To do that, I use Asterisk-Java to steer the PBX over the AGI (or at
least I think that I'm doing that ;-)). A http-packet containing
caller- and callee-number is sent to the webserver which sets them as
parameters for my java-application. There I use the Asterisk-Java-
Function originateToExtension from the AsteriskServer Interface to
get the PBX do what I want (here's the Javadoc to that Interface
where you'll also find the function):
http://asterisk-java.org/0.3-SNAPSHOT/apidocs/org/asteriskjava/live/
AsteriskServer.html
I'm running a default Trixbox-Installation with a VoIP-Uplink to my
Provider (CityTel) which works with in- and outbound calls (tested
with SIP-Phone).
I'm using the following parameters for the function mentioned above:
channel: SIP/CityTel/<caller-number>
context: CityTel
exten: <callee-number>
priority: 1
timeout: 30000
Now, I tried it with different configs and allways get the following
error:
Couldn't find channel: org.asteriskjava.live.NoSuchChannelException:
Channel 'SIP/CityTel/<caller-number>' is not available.
Does that mean, that this doesn't work with two EXTERNAL numbers or
is there another problem I don't see? Probably more an AGI then an
Asterisk-Java-Question...
Thanks a lot for your help!
Saludos
Javier
|