[Home]

Summary:ASTERISK-03432: [patch] SetCallerID bad assignation
Reporter:Belaid Arezqui (areski)Labels:
Date Opened:2005-02-04 11:16:11.000-0600Date Closed:2008-01-15 15:24:23.000-0600
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Applications/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) patch_setcallerid_null.txt
Description:The following use of SetCallerID is generating an error on the CID name value
exten => 1300,3,SetCallerID(111)

show channel xxxx
      Caller ID: 111
      Caller ID Name: 0 0   0  - + _0 0

It seems that the callerID name pointer is wrong.

in the file apps/app_setcallerid.c function [setcallerid_exec]
replace
ast_set_callerid(chan, num, name, anitoo ? num : NULL);
by
ast_set_callerid(chan, num, &name, anitoo ? num : NULL);

Result will be now :
Caller ID: 111
Caller ID Name: (N/A)



****** ADDITIONAL INFORMATION ******

Fedora Core 2


My disclaimer is on file with Digium.
Comments:By: Mark Spencer (markster) 2005-02-04 11:44:43.000-0600

Fixed in CVS head properly.

By: Russell Bryant (russell) 2005-02-06 22:32:26.000-0600

head only issue ...

By: Digium Subversion (svnbot) 2008-01-15 15:24:23.000-0600

Repository: asterisk
Revision: 4966

U   trunk/callerid.c

------------------------------------------------------------------------
r4966 | markster | 2008-01-15 15:24:22 -0600 (Tue, 15 Jan 2008) | 2 lines

Fix callerid split (bug ASTERISK-3432)

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=4966