[asterisk-bugs] [Asterisk 0014218]: [patch] Not possible to disguise display name on calls to trunks even though user can be disguised

Asterisk Bug Tracker noreply at bugs.digium.com
Mon Jan 12 11:03:35 CST 2009


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=14218 
====================================================================== 
Reported By:                Nick_Lewis
Assigned To:                otherwiseguy
====================================================================== 
Project:                    Asterisk
Issue ID:                   14218
Category:                   Channels/chan_sip/General
Reproducibility:            always
Severity:                   feature
Priority:                   normal
Status:                     feedback
Target Version:             1.6.2
Asterisk Version:           1.6.0 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             2009-01-12 10:14 CST
Last Modified:              2009-01-12 11:03 CST
====================================================================== 
Summary:                    [patch] Not possible to disguise display name on
calls to trunks even though user can be disguised
Description: 
When calling from an extension on the asterisk PBX to a trunk the sip
display-name that is received in the invite from the extension is used as
the display-name in the invite sent to the ITSP.

For example:
 From: "John Smith" <sip:101 at mypbx>
is converted to:
 From: "John Smith" <sip:voipaccount at myitsp>
but it would be useful if it could be converted instead to:
 From: "My Corporation" <sip:voipaccount at myitsp>
so that outgoing calls do not reveal the caller name
====================================================================== 

---------------------------------------------------------------------- 
 (0097503) Nick_Lewis (reporter) - 2009-01-12 11:03
 http://bugs.digium.com/view.php?id=14218#c97503 
---------------------------------------------------------------------- 
In the current code there is a comment:

 /* if we are not sending RPID and user wants his callerid restricted */

and it is followed a couple of lines later by:

 if (!ast_strlen_zero(p->fromname))
  n = p->fromname;

but currently there does not seem to be anything setting p->fromname so it
is always zero length. My patch primarily creates a peer->fromname and
copies it to p->fromname when a dialog is created so that the existing "n =
p->fromname" does what I expected

I my have misunderstood though 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-01-12 11:03 Nick_Lewis     Note Added: 0097503                          
======================================================================




More information about the asterisk-bugs mailing list