cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
9474
Views
45
Helpful
10
Replies

Restricting calling name on SIP Trunk in CUCM

Vivek Batra
VIP Alumni
VIP Alumni

Friends,

To restrict sending calling name on SIP trunk, "Calling Name Presentation" on SIP trunk should be set to Restricted. Seems if I set this parameter to Restricted, CUCM is sending From field as <anonymous@anonymous.invalid> and in result, called party can't see even the calling number. How to correct it while CUCM should send calling number in From field and restrict only calling name?

Precisely, if either of the parameter "Calling Name Presentation" or "Calling Line ID Presentation" is set to Restricted, From field is sent as anonymous.

Same is working as expected on H.323 by disabling only "Display IE Dilevery" parameter in H.323 configuration.

Thanks

Vivek 
 

1 Accepted Solution

Accepted Solutions

Hi Suresh,

Thank you very much for the hint.... then I realized the interactions between RPID, Asserted, Privacy, Calling Line ID and Calling Name Presentation parameter and tried to cover all combinations. Seems all combinations are possible and it's now depends on remote end configuration how to fetch the ANI to display on phone. Results are mentioned below.

 

Case1Asserted - Off    
 RPID - Off    
      
 Calling Line-ID PresentationCalling Name PresentationResult1 (SIP From)Conclusion 
 AllowAllowname <number@localhost>"CLI" and "Name" presentation parameter can be used to control sending name and number in From field of INVITE message. 
 AllowRestrictanonymous <number@localhost> 
 RestrictAllowname <anonymous@localhost> 
 RestrictRestrictanonymous <anonymous@localhost> 
      
      
Case2Asserted - Off    
 RPID - On    
      
 Calling Line-ID PresentationCalling Name PresentationResult1 (From field in INVITE)Result2 (RPID privacy header)Conclusion
 AllowAllowname <number@localhost>offWhen RPID is being used, "CLI" and "Name" presentation parameter can be used to control sending name and number in From field along with marking required privacy in RPID header.
 AllowRestrictanonymous <number@localhost>uri
 RestrictAllowname <anonymous@localhost>name
 RestrictRestrictanonymous <anonymous@localhost>full
      
Case3Asserted - On & Privacy - None    
 RPID - Off    
      
 Calling Line-ID PresentationCalling Name PresentationResult1 (From field in INVITE)Conclusion 
 AllowAllowname <number@localhost>When RPID is off and Asserted Privacy is None, From field is always populated with name and number. "CLI" and "Name" presentation parameter can not be used to control sending name and number in FROM field of INVITE message. 
 AllowRestrictname <number@localhost> 
 RestrictAllowname <number@localhost> 
 RestrictRestrictname <number@localhost> 
      
Case4Asserted - On & Privacy - Id    
 RPID - Off    
      
 Calling Line-ID PresentationCalling Name PresentationResult1 (From field in INVITE)Conclusion 
 AllowAllowanonymous <anonymous@localhost>When Asserted Privacy is Id, From field is always populated as Anonymous. "CLI" and "Name" presentation parameter can not be used to control sending name and number in FROM field of INVITE message. 
 AllowRestrictanonymous <anonymous@localhost> 
 RestrictAllowanonymous <anonymous@localhost> 
 RestrictRestrictanonymous <anonymous@localhost> 
      
Case5Asserted - On & Privacy - None    
 RPID - On    
      
 Calling Line-ID PresentationCalling Name PresentationResult1 (From field in INVITE)Result2 (RPID privacy header)Conclusion
 AllowAllowname <number@localhost>offWhen asserted is on with privacy none and RPID is also on, From field is always populated with name/number.  "CLI" and "Name" presentation parameter can not be used to control sending name and number in FROM field of INVITE message.
 AllowRestrictname <number@localhost>name
 RestrictAllowname <number@localhost>uri
 RestrictRestrictname <number@localhost>full
      
Case6Asserted - On & Privacy - Id    
 RPID - On    
      
 Calling Line-ID PresentationCalling Name PresentationResult1 (From field in INVITE)Result2 (RPID privacy header)Conclusion
 AllowAllowanonymous <anonymous@localhost>offWhen Asserted Privacy is Id, From field is always populated as Anonymous. Since RPID is on,  "CLI" and "Name" presentation parameter can be used for marking required privacy in RPID header.
 AllowRestrictanonymous <anonymous@localhost>name
 RestrictAllowanonymous <anonymous@localhost>uri
 RestrictRestrictanonymous <anonymous@localhost>full

 

Abstract:

1. When asserted and rpid is not used, "Calling Line ID" and "Calling Name" presentation parameter can be used to control sending name and number in From field of INVITE message.

2. When only rpid is on (and asserted is off), "Calling Line ID" and "Calling Name" presentation parameter can be used to control sending name and number in From field of INVITE message. In addition, privacy header shall be added to RPID as per "Calling Line ID" and "Calling Name" presentation parameter values configured.

3. When only asserted is on and privacy is none (and rpid is off), From field is always populated with desired name and number in From field of INVITE message. "Calling Line ID" and "Calling Name" parameter has no role in controlling name and number in From field of INVITE message.

4. When only asserted is on and privacy is id (and rpid is off), From field is always populated as Anonymous. "Calling Lline ID" and "Calling Name" parameter has no role in controlling name and number in From field of INVITE message.

5. When both asserted and rpid is on (and privacy is none), From field is always populated with desired name and number in From field of INVITE message. "Calling Line ID" and "Calling Name" parameter will mark the required privacy marking in rpid header in INVITE message depends on "Calling Line ID" and "Calling Name" values.

6. When both asserted and rpid is on (and privacy is id), From field is always populated as Anonymous. "Calling Line ID" and "Calling Name" parameter will mark the required privacy marking in ripid header in INVITE message depends on "Calling Line ID" and "Calling Name" values.

Thanks

Vivek

View solution in original post

10 Replies 10

Aaron Harrison
VIP Alumni
VIP Alumni

Hi

If you are using CUBE you may be able to use SIP Profiles to strip out the info.

With CUCM you may be best to write a lua script.

Aaron

Aaron Please remember to rate helpful posts to identify useful responses, and mark 'Answered' if appropriate!

Hi Aaron,

Thanks...

Just to get your point, what is the purpose of then "Calling Name Presentation" and "Calling Line ID Presentation" parameters on SIP trunk?

Are both parameters doing the same job of replacing From field with anonymous (when either one is set to on)?

Thanks

Vivek

if Privacy is set to Default, then no name & no number displayed.

 

You can keep both the asserted id & remote party id Checked & asserted type be Default. just change the privacy to None.

 

Pls try that and let us know how it works

//Suresh Please rate all the useful posts.

Hi Suresh,

Thank you very much for the hint.... then I realized the interactions between RPID, Asserted, Privacy, Calling Line ID and Calling Name Presentation parameter and tried to cover all combinations. Seems all combinations are possible and it's now depends on remote end configuration how to fetch the ANI to display on phone. Results are mentioned below.

 

Case1Asserted - Off    
 RPID - Off    
      
 Calling Line-ID PresentationCalling Name PresentationResult1 (SIP From)Conclusion 
 AllowAllowname <number@localhost>"CLI" and "Name" presentation parameter can be used to control sending name and number in From field of INVITE message. 
 AllowRestrictanonymous <number@localhost> 
 RestrictAllowname <anonymous@localhost> 
 RestrictRestrictanonymous <anonymous@localhost> 
      
      
Case2Asserted - Off    
 RPID - On    
      
 Calling Line-ID PresentationCalling Name PresentationResult1 (From field in INVITE)Result2 (RPID privacy header)Conclusion
 AllowAllowname <number@localhost>offWhen RPID is being used, "CLI" and "Name" presentation parameter can be used to control sending name and number in From field along with marking required privacy in RPID header.
 AllowRestrictanonymous <number@localhost>uri
 RestrictAllowname <anonymous@localhost>name
 RestrictRestrictanonymous <anonymous@localhost>full
      
Case3Asserted - On & Privacy - None    
 RPID - Off    
      
 Calling Line-ID PresentationCalling Name PresentationResult1 (From field in INVITE)Conclusion 
 AllowAllowname <number@localhost>When RPID is off and Asserted Privacy is None, From field is always populated with name and number. "CLI" and "Name" presentation parameter can not be used to control sending name and number in FROM field of INVITE message. 
 AllowRestrictname <number@localhost> 
 RestrictAllowname <number@localhost> 
 RestrictRestrictname <number@localhost> 
      
Case4Asserted - On & Privacy - Id    
 RPID - Off    
      
 Calling Line-ID PresentationCalling Name PresentationResult1 (From field in INVITE)Conclusion 
 AllowAllowanonymous <anonymous@localhost>When Asserted Privacy is Id, From field is always populated as Anonymous. "CLI" and "Name" presentation parameter can not be used to control sending name and number in FROM field of INVITE message. 
 AllowRestrictanonymous <anonymous@localhost> 
 RestrictAllowanonymous <anonymous@localhost> 
 RestrictRestrictanonymous <anonymous@localhost> 
      
Case5Asserted - On & Privacy - None    
 RPID - On    
      
 Calling Line-ID PresentationCalling Name PresentationResult1 (From field in INVITE)Result2 (RPID privacy header)Conclusion
 AllowAllowname <number@localhost>offWhen asserted is on with privacy none and RPID is also on, From field is always populated with name/number.  "CLI" and "Name" presentation parameter can not be used to control sending name and number in FROM field of INVITE message.
 AllowRestrictname <number@localhost>name
 RestrictAllowname <number@localhost>uri
 RestrictRestrictname <number@localhost>full
      
Case6Asserted - On & Privacy - Id    
 RPID - On    
      
 Calling Line-ID PresentationCalling Name PresentationResult1 (From field in INVITE)Result2 (RPID privacy header)Conclusion
 AllowAllowanonymous <anonymous@localhost>offWhen Asserted Privacy is Id, From field is always populated as Anonymous. Since RPID is on,  "CLI" and "Name" presentation parameter can be used for marking required privacy in RPID header.
 AllowRestrictanonymous <anonymous@localhost>name
 RestrictAllowanonymous <anonymous@localhost>uri
 RestrictRestrictanonymous <anonymous@localhost>full

 

Abstract:

1. When asserted and rpid is not used, "Calling Line ID" and "Calling Name" presentation parameter can be used to control sending name and number in From field of INVITE message.

2. When only rpid is on (and asserted is off), "Calling Line ID" and "Calling Name" presentation parameter can be used to control sending name and number in From field of INVITE message. In addition, privacy header shall be added to RPID as per "Calling Line ID" and "Calling Name" presentation parameter values configured.

3. When only asserted is on and privacy is none (and rpid is off), From field is always populated with desired name and number in From field of INVITE message. "Calling Line ID" and "Calling Name" parameter has no role in controlling name and number in From field of INVITE message.

4. When only asserted is on and privacy is id (and rpid is off), From field is always populated as Anonymous. "Calling Lline ID" and "Calling Name" parameter has no role in controlling name and number in From field of INVITE message.

5. When both asserted and rpid is on (and privacy is none), From field is always populated with desired name and number in From field of INVITE message. "Calling Line ID" and "Calling Name" parameter will mark the required privacy marking in rpid header in INVITE message depends on "Calling Line ID" and "Calling Name" values.

6. When both asserted and rpid is on (and privacy is id), From field is always populated as Anonymous. "Calling Line ID" and "Calling Name" parameter will mark the required privacy marking in ripid header in INVITE message depends on "Calling Line ID" and "Calling Name" values.

Thanks

Vivek

Seems table is not copied completely hence attaching the file here.

Thanks

Vivek

If I could rate you 10 for thoroughness, I would :-)

Aaron Please remember to rate helpful posts to identify useful responses, and mark 'Answered' if appropriate!

Thanks Aaron for the feedback :)

Dennis Fogler
Cisco Employee
Cisco Employee

Vivek,

    Try the following steps:

1) Under SIP Trunk Configuration, Uncheck "Asserted-Identity"

2) Set Calling Name to restricted

3) Leave Calling Number as default

4) Save, Apply Config, Reset Trunk

 

Let me know if this helps.   -Dennis

 

Hi Dennis,

True. I have observed other cases as well and attached the same.

Thank you...

Vivek

Vivek Batra
VIP Alumni
VIP Alumni

Thanks Jaime for the feedback :)