[asterisk-dev] Re: FastAGI behaviour in trunk changed recently?

Alistair Cunningham acunningham at integrics.com
Fri Jul 28 03:27:26 MST 2006


Kaloyan Kovachev wrote:
> On Thu, 27 Jul 2006 10:24:12 +0100, Alistair Cunningham wrote
>> Kaloyan Kovachev wrote:
>>
>>>>>> [to-voiptalk]
>>>>>> exten => _X., 1, Set(CALLERID(number)=44${CALLERID(number):1})
>>>>>> exten => _00., 2, Dial(IAX2/voiptalk/${EXTEN:2})
>>>>>> exten => _0., 2, Dial(IAX2/voiptalk/44${EXTEN:1})
>>>>>> exten => _X., 2, Dial(IAX2/voiptalk/${EXTEN})
>>>>>> exten => _X., 3, Hangup
>>>>>> exten => h, 1, DeadAGI(agi://127.0.0.1/end)
>>>>>> exten => t, 1, Hangup
>>> The only AGI here is the DeadAGI at 'h' extension, where the call comes when
>>> it is hangup. Yes, the channel may be still up, but not the call.
>>> If you want to transfer the caller to another extension after the callee have
>>> hangup you may use Dial with 'g' option and start the AGI at 'exten => _X.,3'
>>> instead of doing Hangup.
>> Kaloyan,
>>
>> I wasn't clear; my apologies. [to-voiptalk] is the context that the 
>> AGI does a SET CONTEXT to, not the context that it was called from. 
>> It was called from [from-internal] which is:
>>
>> [from-internal]
>> exten => _[0-9*]., 1, 
>>
> AGI(agi://127.0.0.1/start?stype=phone&snumber=${CALLERIDNUM}&cnumber=${EXTEN}&scustomer=${ENSWITCH-SCUSTOMER})
>> plus various other irrelevant lines.
> 
> Sorry, just checked the beginning of this thread
> Have you tried to add 'i' extension to [from-internal] and [to-voiptalk], and
> a NoOp after AGI() this will give some additional info where exactly the call
> goes on AGI exit.

Kaloyan,

That's a good idea. Unfortunately, it doesn't print any extra lines on 
the Asterisk console, so it doesn't seem to get there.

Alistair Cunningham,
Integrics Ltd,
+44 20 799 39 799
http://integrics.com/



More information about the asterisk-dev mailing list