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

Alistair Cunningham acunningham at integrics.com
Thu Jul 27 02:24:12 MST 2006


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.



More information about the asterisk-dev mailing list