Im using 'notransfer=yes' in the iax.conf so it shouldn't happen,
What I'm doing is bridging a 2 legged call over iax using .call files.
The .call file initiates the first leg and drops the user into a context
that calles an agi script that checks against a db (like max call length)
then automatically dials a set number.
What I want is for both parties to have the ability to hang up from
asterisks side, as it is when one (or both) hang up asterisk keeps the line
open for up to 90 seconds before timing out and dropping the call.
So I was hoping for a simple #* to hang up the call, ie # to transfer and *
is the exten to hang up.
As I understand it notransfer basically keeps both legs of the call on our
server so we get the CDR for that call too. If it wasn't set then it would
as you say, pass it off to the above IAX server.
I will have to try it outside the AGI script and see if it works directly in
the context.
Thanks for your help anyway :)
Morgan
-----Original Message-----
From: Steven Critchfield [mailto:critch@basesys.com]
Sent: 19 August 2004 7:09 PM
To: asterisk-users@lists.digium.com
Subject: Re: [Asterisk-Users] Dial from AGI [MSG]
Importance: High
On Thu, 2004-08-19 at 12:26, Morgan Gilroy wrote:> Hi can someone help me, I want to do 'Dial(IAX2/bla/1234567|50|tT)'
> From an AGI script so people can dial #* to hang up (and other things) but
> when using AGI using 'EXEC DIAL IAX2/bla/1234567|50|tT' it dials ok
but
> nothing happens when they dial #, is there something special I need to do
to> escape from the AGI script? Or pass something more to Dial.
Are you coming in from IAX to begin with? You may be being caught by the
auto transfer in IAX. If you are at IAX point A calling the asterisk box
with the AGI and it dials IAX/blah and is able to transfer the load off,
the tT doesn't have any valid context, nor anything listening for it.
For instance, in my office, we have a PRI at a colo that handles most
calls. We forward a few DID numbers via IAX to our actual office. If the
office switch the redirects the call to a PSTN phone number it is
transfered back to the colo asterisk machine to connect the incoming
PSTN call to the pstn extension. At that point, the office asterisk
machine that has tT in it's dial string is no longer in the loop and
can't listen for the transfer request.
--
Steven Critchfield <critch@basesys.com>
_______________________________________________
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users