Summary: | ASTERISK-00452: callerid= in iax.conf does not function when incoming call has blank callerid | ||
Reporter: | linuss (linuss) | Labels: | |
Date Opened: | 2003-10-29 08:05:38.000-0600 | Date Closed: | 2004-09-25 02:49:15 |
Priority: | Minor | Regression? | No |
Status: | Closed/Complete | Components: | Core/General |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ||
Description: | The ability to override the caller id on an incoming IAX call using the callerid= parameter in iax.conf does not function if the incoming IAX call does not have a callerid. ****** ADDITIONAL INFORMATION ****** This appears to be due to these lines in check_access in chan_iax2.c: if (strlen(iaxs[callno]->callerid)) { if (user->hascallerid) strncpy(iaxs[callno]->callerid, user->callerid, sizeof(iaxs[callno]->callerid)-1); strncpy(iaxs[callno]->ani, user->callerid, sizeof(iaxs[callno]->ani)-1); } Is this therefore a bug or a feature!? | ||
Comments: | By: linuss (linuss) 2003-12-02 15:46:07.000-0600 Come on guys? How long does it take to answer a simple question! Was it your intention that the ability to set/override a callerid by using a parameter in iax.conf DOES NOT APPLY if the incoming call sent a NULL callerid? Please - this one is easy! Linus By: Brian West (bkw918) 2003-12-02 17:24:29.000-0600 this *is* a feature. It prevents *wrong* callerid from being transmitted while preserving the ability to *hide* callerid. |