[asterisk-dev] realtime architecture blocks iax network thread

Dawid Mielnik dmielnik at voiceware.pl
Thu Jul 6 01:50:28 MST 2006


> This is actually fixed in trunk, chan_iax2 has been multithreaded instead 
> of
> using a single thread. It wasn't put in 1.2 because 1.2 is only for bug
> fixes, not new experimental features.
>

Thanks - the new multithreaded implementation looks much better - but it 
seems it's still far from stable.
After a few hours on a test server - practically no load, iax simply stopped 
working at the same time 'iax2 show calls' returned nothing while 'iax2 show 
netstats' showed statistics for calls that werent there (not talking about 
the (none) records).

It seems to not hangup iax calls. After placing a few echo calls - and 
hanging up this is what I get:
 mmphoneast1*CLI> show channels
Channel              Location             State   Application(Data)
IAX2/725506-24       201 at from_mm:3        Up      Echo()
IAX2/1720226-2       0229226 at from_mm:1    Ring    Dial(IAX2/e_ab/0229226|12
IAX2/1720226-21      201 at from_mm:3        Up      Echo()
IAX2/1720226-11      201 at from_mm:3        Up      Echo()
IAX2/1720226-10      201 at from_mm:3        Up      Echo()
IAX2/1720226-8       201 at from_mm:3        Up      Echo()
IAX2/1720226-1       201 at from_mm:3        Up      Echo()
IAX2/1720226-18      201 at from_mm:3        Up      Echo()
IAX2/1720226-7       201 at from_mm:3        Up      Echo()
IAX2/1720226-16      201 at from_mm:3        Up      Echo()
IAX2/1720226-5       201 at from_mm:3        Up      Echo()
IAX2/1720226-12      201 at from_mm:3        Up      Echo()
IAX2/1720226-6       201 at from_mm:3        Up      Echo()
IAX2/1720226-4       201 at from_mm:3        Up      Echo()
IAX2/1720226-3       201 at from_mm:3        Up      Echo()
15 active channels
15 active calls


mmphoneast1*CLI> iax2 show netstats
                                --------  
OCAL ---------------------  -------- REMOTE --------------------
Channel                    RTT  Jit  Del  Lost   %  Drop  OOO  Kpkts  Jit 
Del  Lost   %  Drop  OOO  Kpkts
IAX2/1720226-1            1000   32   78     0   0     0    0      0    0 
0     0   0     0    0      0
IAX2/1720226-2            1000   58  135     0   0     0    0      0    0 
0     0   0     0    0      0
IAX2/1720226-3              46  302  342     0   1     1    0      1  106 
170   462  60     4    0      0
IAX2/1720226-4            1000   18   76     0   0     0    0      0    0 
0     0   0     0    0      0
IAX2/1720226-5            1000   32  102     0   0     0    0      0    0 
0     0   0     0    0      0
IAX2/1720226-6            1000   29   80     0   0     0    0      0    0 
0     0   0     0    0      0
IAX2/1720226-7            1000   33   82     0   0     0    0      0    0 
0     0   0     0    0      0
IAX2/1720226-8            1000   34   92     0   0     0    0      0    0 
0     0   0     0    0      0
IAX2/1720226-10           1000   24   82     0   0     0    0      0    0 
0     0   0     0    0      0
IAX2/1720226-11           1000   24   83     0   0     0    0      0    0 
0     0   0     0    0      0
IAX2/1720226-12           1000   33   80     0   0     0    0      0    0 
0     0   0     0    0      0
IAX2/1720226-16           1000   57  101     0   0     0    0      0    0 
0     0   0     0    0      0
IAX2/1720226-18           1000   37   81     0   0     0    0      0    0 
0     0   0     0    0      0
IAX2/1720226-21           1000   30   81     0   0     0    0      0    0 
0     0   0     0    0      0
(None)                    1000    0   40     0   0     0    0      0    0 
0     0   0     0    0      0
IAX2/725506-24            1000   26   78     0   0     0    0      0    0 
0     0   0     0    0      0

It does receive hangup though:

Rx-Frame Retry[ No] -- OSeqno: 004 ISeqno: 005 Type: IAX     Subclass: 
HANGUP
   Timestamp: 09570ms  SCall: 31956  DCall: 00024 [83.15.91.90:4972]
   CAUSE           : Dumped Call
Tx-Frame Retry[-01] -- OSeqno: 005 ISeqno: 005 Type: IAX     Subclass: ACK
   Timestamp: 09570ms  SCall: 00024  DCall: 31956 [83.15.91.90:4972]


Dawid 




More information about the asterisk-dev mailing list