[asterisk-users] Transfer via AMI
Nicholas Blasgen
nicholas at blasgen.com
Fri Sep 12 14:55:47 CDT 2008
I have a call between two people. I know their channel identifier. I want
to trasfer a call away from one person and pass it to another person.
To start, let's talk about a blind transfer. My system places both outgoing
calls to people and bridges them together (cheaper, works via AGI).
Action: Redirect
Channel: <prospect>
ExtraChannel: 0
Exten: SIP/transfer_to
Context: default
Priority: 1
So that works just fine. I'm having an issue however that when the person
who was orginally talking decides to hang up his call, Asterisk disconnects
the other line as well, as if the ownership of that line is still controled
by the orginal process. I'd love to solve that problem. Maybe putting the
SIP/transfer_to into the ExtraChannel and then transfering them to a
conference room. Suggestions welcome. Could also be that AGI maintains
control of any channels it creates and when the main calling line dies, it
kills all the others even if they've been transfered away.
Okay, in the end, I'd like this to be assisted transfer. Place the party on
hold, call another party, and then bridge the two together. Whenever a
channel is taken away from the current person, the call status is returned
and my AGI script can continue. So I think it should be fine. Has anyone
done anything like this? Any pointers would be great.
PS: (update since I wrote this original message a while back), via the web,
you click a link. That creates a CALL file which calls your number. Once
connected, it passes it to an extension that spawns an AGI program. That
AGI program looks in the database for the number you wanted to call and
places that phone call. You than chat with that person and decide that
you're done with that call and want to go onto your next phone call. I use
the Asterisk Manager Interface (AMI) to perform a Redirect on the person
you're talking to. Doing this causes the AGI script to continue.
--
Nicholas Blasgen
nicholas at blasgen.com
408.497.9796 (c)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080912/a5e58b10/attachment.htm
More information about the asterisk-users
mailing list