[asterisk-bugs] [Asterisk 0013647]: unable to change sip from message from "Unknown" to anything else using set(callerid(num)=xxxx)

Asterisk Bug Tracker noreply at bugs.digium.com
Wed Oct 8 10:49:29 CDT 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=13647 
====================================================================== 
Reported By:                cooldeveloper
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   13647
Category:                   Functions/func_callerid
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     feedback
Asterisk Version:           1.4.17 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             2008-10-08 10:26 CDT
Last Modified:              2008-10-08 10:49 CDT
====================================================================== 
Summary:                    unable to change sip from message from "Unknown" to
anything else using set(callerid(num)=xxxx)
Description: 
When dialing in from PSTN (ZAP or MISDN channel) using a mobile with
blocked callerid, then does not matter wha I set int the dialplan using
set(callerid(num)=xxxx), the sip from header will be always "Unknown".
I transfer the PSTN call to a SIP extension using DIAL(SIP/XXXX,20,rto)
Whan I turn callerid sending on on the caller mobile, then the sip from
header will be whatever i set, eg. ivr, etc...
====================================================================== 

---------------------------------------------------------------------- 
 (0093365) putnopvut (administrator) - 2008-10-08 10:49
 http://bugs.digium.com/view.php?id=13647#c93365 
---------------------------------------------------------------------- 
Assuming this is still present in 1.4.22, then I may know the line in
chan_sip.c which is causing this to occur:
<pre>
    /* if we are not sending RPID and user wants his callerid restricted
*/
    if (!ast_test_flag(&p->flags[0], SIP_SENDRPID) &&
        ((p->callingpres & AST_PRES_RESTRICTION) != AST_PRES_ALLOWED)) {
        l = CALLERID_UNKNOWN;
        n = l;
    }
</pre>

The 'n' and 'l' variables are later used in the function to populate the


More information about the asterisk-bugs mailing list