Sun Microsystems, Inc.  Oracle System Handbook - ISO 7.0 May 2018 Internal/Partner Edition
   Home | Current Systems | Former STK Products | EOL Systems | Components | General Info | Search | Feedback

Asset ID: 1-71-2354941.1
Update Date:2018-01-30
Keywords:

Solution Type  Technical Instruction Sure

Solution  2354941.1 :   SBC Translation-rule  


Related Items
  • Acme Packet 6300
  •  
Related Categories
  • PLA-Support>Sun Systems>CommsGBU>Session Delivery Network>SN-SND: Acme Service Provider
  •  




In this Document
Goal
Solution


Created from <SR 3-16720914171>

Applies to:

Acme Packet 6300 - Version S-Cz7.1.2 and later
Information in this document applies to any platform.

Goal

How do you remove a leading 9 digit using translation-rules?
 

Solution

5. delete-string—Enter the string to be deleted from the original address during address translation.
Unspecified characters are denoted by the at-sign symbol (@).
The @ character only works if the type parameter is set to delete. This parameter supports wildcard
characters or digits only. For example, valid entries are: delete-string=@@@@@, or delete-string=123456.
An invalid entry is delete-string=123@@@. When the type is set to replace, this value is used in
conjunction with the add-string value. The value specified in the delete-string field is deleted and the
value specified in the add-string field is inserted. If no value is specified in the delete-string parameter
and the type field is set to replace, then nothing will be inserted into the address. The default value is a
blank string.


I took a test INVITE here;

INVITE sip:918776971183@1.10.28.28:5060 SIP/2.0 <===============SEE HERE WITH LEADING 9
Via: SIP/2.0/UDP 1.30.9.50:5060;branch=z9hG4bK-2488-1-0
From: sipp <sip:sipp@1.30.9.50:5060>;tag=2488SIPpTag001
To: 918776971183 <sip:918776971183@1.10.28.28:5060> <===============SEE HERE WITH LEADING 9
Call-ID: 1-2488@1.30.9.50
CSeq: 1 INVITE
Contact: sip:sipp@1.30.9.50:5060
Max-Forwards: 70
Subject: Performance Test
Content-Type: application/sdp
Content-Length: 129


built new rule based on guides;

translation-rules
  id add888888
  type add
  add-string 888888
  add-index 0
  delete-string
  delete-index 0
  last-modified-by admin@console
  last-modified-date 2018-01-24 11:31:49
translation-rules
  id rem888888
  type delete
  add-string
  add-index 0
  delete-string 888888
  delete-index 0
  last-modified-by admin@console
  last-modified-date 2018-01-24 11:32:39
translation-rules
  id rem8888889
  type delete
  add-string
  add-index 0
  delete-string 8888889
  delete-index 0
  last-modified-by admin@console
  last-modified-date 2018-01-24 12:01:08


session-translation
  id removeleading9
  rules-calling
  rules-called add888888
  rem8888889
  rem888888
  last-modified-by admin@console
  last-modified-date 2018-01-24 11:53:57



Results after;

INVITE sip:18776971183@1.40.9.50:5060 SIP/2.0 <==============================SEE HERE WITHOUT LEADING 9
Via: SIP/2.0/UDP 1.20.28.28:5060;branch=z9hG4bKp3obsf20e8htns0na500.1
From: sipp <sip:sipp@1.30.9.50:5060>;tag=2488SIPpTag001
To: 918776971183 <sip:18776971183@1.10.28.28:5060> <==============================SEE HERE WITHOUT LEADING 9 <sip:18776971183@1.10.28.28:5060>
Call-ID: 1-2488@1.30.9.50
CSeq: 1 INVITE
Contact: <sip:sipp@1.20.28.28:5060;transport=udp>
Max-Forwards: 69
Subject: Performance Test
Content-Type: application/sdp
Content-Length: 132
Supported: 100rel



I applied my rule to the out-translationid of the session-agent.
 


Attachments
This solution has no attachment
  Copyright © 2018 Oracle, Inc.  All rights reserved.
 Feedback