[Home]

Summary:ASTERISK-06480: [patch] database record remains when a realtime IAX peer expires
Reporter:energycsdx (energycsdx)Labels:
Date Opened:2006-03-06 02:30:53.000-0600Date Closed:2006-09-16 03:11:17
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Channels/chan_iax2
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) 20060715__bug6656.diff.txt
Description:whan client use two account from one computer
realtime engine update peer with same ip:port
and then whan realtime ask for peer by ip
returned peer may be wrong
Comments:By: Serge Vecher (serge-v) 2006-05-01 15:19:07

EnErGyCSDX: unfortunately it is unclear what the problem is here? Can you please describe the problem in a different way, also attaching relevant IAX traces to support it?

Thanks.

By: energycsdx (energycsdx) 2006-05-03 03:12:29

realtime iax peer don`t expire
there`s no realtime equivalent "memset(&p->addr, 0, sizeof(p->addr));" in chan_iax2.c
sow when peer expired in record in database will not be cleared
it stay with some ip:port
next client registered with another name and database will have two record with same ip:port
next iax2_getpeername when ask realtime engine for ip:port take first returned record wich can be incorect

By: Serge Vecher (serge-v) 2006-05-11 09:34:55

can you make a patch that addresses this?

against latest 1.2 or trunk please.

By: Serge Vecher (serge-v) 2006-05-18 14:19:58

somebody with more perms than myself, please switch this to project IAX. Thanks.

Updating title as per joshnet's analysis communicated over IRC.

By: energycsdx (energycsdx) 2006-05-19 03:02:08

i don`t know exactly but i think chan_sip.c have the same problem

By: Serge Vecher (serge-v) 2006-06-02 08:45:59

EnErGyCSDX: any luck with making the patch against 1.2.8?

By: Tilghman Lesher (tilghman) 2006-07-15 19:33:04

Please try this patch and ensure that this fix solves your issue.

By: Serge Vecher (serge-v) 2006-08-08 13:30:15

EnErGyCSDX, Mithraen: Aany luck with Corydon76's patch?

By: Serge Vecher (serge-v) 2006-08-21 14:53:05

ping

By: Tilghman Lesher (tilghman) 2006-09-16 03:11:16

Revision 43024.