Customer reported unexpected behavior after incoming call with redirection number information element. The problem is caused by destruction of internal structures of libc and arrives not on every system but

on system of interest (Debian Lenny) confirmed with asterisk 1.4 and 1.6.
Code review shhown that i->owner->cid.cid_rdnis can be changed by ast_(strdup,free) and by standard C library functions at same time.                  
To resolve this and future problems generally change malloc -> ast_malloc, strdup -> as_strdup and free -> ast_free.
This commit is contained in:
MelwareDE 2010-08-19 08:45:37 +00:00
parent 999b9e306b
commit 06803fcc9f
1 changed files with 1 additions and 0 deletions

View File

@ -13,6 +13,7 @@ HEAD
- added variable DISCONNECT_IND_REASON to get real reason code from CAPI
- added capicommand(keypad)
- added log of FACILITY_IND for call deflect suplementary service
- malloc,strdup,free -> ast_(malloc,strdup,free)
chan_capi-1.1.5
------------------