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

Alistair Cunningham acunningham at integrics.com
Fri Jul 28 07:58:49 MST 2006


Kaloyan Kovachev wrote:
> if your verbose level is at least 2 you should get a message "== Spawn
> extension (_context_, _extension_, _priority_) exited non-zero on _channel_"
> on hangup and if there are timestamps it should be enough to find where and
> when the call ends.

I don't see that message, but it did give me a clue. After hanging up on 
the calling phone, the channels stay active:

host217-37-242-113*CLI> show channels
Channel              Location             State   Application(Data) 

SIP/217.37.242.113-0 07870699479 at to-voipt Ring 
AGI(agi://127.0.0.1/start?styp
SIP/217.37.242.113-0 07870699479 at to-voipt Ring 
AGI(agi://127.0.0.1/start?styp
SIP/217.37.242.113-0 07870699479 at to-voipt Ring 
AGI(agi://127.0.0.1/start?styp
SIP/217.37.242.113-0 07870699479 at to-voipt Ring 
AGI(agi://127.0.0.1/start?styp
SIP/217.37.242.113-0 07870699479 at to-voipt Ring 
AGI(agi://127.0.0.1/start?styp
SIP/217.37.242.113-0 07870699479 at to-voipt Ring 
AGI(agi://127.0.0.1/start?styp
SIP/217.37.242.113-0 07870699479 at to-voipt Ring 
AGI(agi://127.0.0.1/start?styp
SIP/217.37.242.113-0 07870699479 at to-voipt Ring 
AGI(agi://127.0.0.1/start?styp
SIP/217.37.242.113-0 07870699479 at to-voipt Ring 
AGI(agi://127.0.0.1/start?styp
SIP/217.37.242.113-0 07870699479 at to-voipt Ring 
AGI(agi://127.0.0.1/start?styp
SIP/217.37.242.113-0 07870699479 at to-voipt Ring 
AGI(agi://127.0.0.1/start?styp
11 active channels
11 active calls

Taking one at random:

host217-37-242-113*CLI> show channel SIP/217.37.242.113-08f77de8
  -- General ---113*CLI>
            Name: SIP/217.37.242.113-08f77de8
            Type: SIP
        UniqueID: 1154098442.10
       Caller ID: 08458684633
  Caller ID Name: Alistair Cunningham
     DNID Digits: 07870699479
           State: Ring (4)
           Rings: 0
   NativeFormats: 0x4 (ulaw)
     WriteFormat: 0x4 (ulaw)
      ReadFormat: 0x4 (ulaw)
  WriteTranscode: No
   ReadTranscode: No
1st File Descriptor: 79
       Frames in: 1
      Frames out: 0
  Time to Hangup: 1154184842
    Elapsed Time: 0h0m36s
   Direct Bridge: <none>
Indirect Bridge: <none>
  --   PBX   --
         Context: to-voiptalk
       Extension: 07870699479
        Priority: 0
      Call Group: 0
    Pickup Group: 0
     Application: AGI
            Data: 
agi://127.0.0.1/start?stype=phone&snumber=&cnumber=07870699479&scustomer=
     Blocking in: (Not Blocking)
   CDR Variables:13*CLI>
level 1: clid="Alistair Cunningham" <123402>
level 1: src=123402
level 1: dst=07870699479
level 1: dcontext=from-internal
level 1: channel=SIP/217.37.242.113-08f77de8
level 1: lastapp=SetCallerPres
level 1: lastdata=allowed
level 1: start=2006-07-28 15:54:02
level 1: answer=2006-07-28 15:54:02
level 1: end=2006-07-28 15:54:02
level 1: duration=0
level 1: billsec=0
level 1: disposition=NO ANSWER
level 1: amaflags=DOCUMENTATION
level 1: uniqueid=1154098442.10

It's interesting that it's showing the Application being AGI with the 
data from before the SET CONTEXT, which clearly this cannot be correct 
as there is no such AGI data in [to-voiptalk].


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



More information about the asterisk-dev mailing list