Modifying PAI/From fields in SIP Outbound messages

Unanswered Question
Apr 27th, 2012
User Badges:
  • Bronze, 100 points or more

I have a SIP acount that requires dialed numbers going over the SIP trunk to have either

The"From" field or "PAI" field to be something of this nature. 

Telephone [email protected]

Is their a way to do this in the Cisco router?

Have been trying to use SIP profiles to achieve this with no success.  Any help appreciated.  Thank you.

Example number available on Trunk 7143030988, 7143030989 etc.

Sample outbound debug CCSIP messages captured.


Apr 28 01:06:40.074: //12/3D988B26800A/SIP/Msg/ccsipDisplayMsg:


INVITE sip:[email protected]:5060 SIP/2.0

Via: SIP/2.0/UDP;branch=z9hG4bK9211B

From: <


To: <sip:[email protected]


Date: Sat, 28 Apr 2012 01:06:40 GMT

Call-ID: [email protected]

Supported: 100rel,timer,resource-priority,replaces,sdp-anat

Min-SE:  1800

Cisco-Guid: 1033407270-2416251361-2148183584-1845179133

User-Agent: Cisco-SIPGateway/IOS-15.2.2.T1


CSeq: 101 INVITE

Max-Forwards: 70

Timestamp: 1335575200

Contact: <sip:>

Expires: 180

Allow-Events: telephone-event

P-Asserted-Identity: <sip:


Content-Type: application/sdp

Content-Disposition: session;handling=required

Content-Length: 336

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Daniele Giordano Sat, 04/28/2012 - 00:21
User Badges:
  • Gold, 750 points or more

You can try with a voice translation rule. Something like this:

voice translation-rule 10

rule 1 /.*/ /7143030988/



voice translation-profile XLATE_CALLING

translate calling 10

dial-peer voice 1000 voip

translation-profile outgoing XLATE_CALLING



babatunde_sanda Sat, 04/28/2012 - 06:13
User Badges:
  • Bronze, 100 points or more

Hello Danielle,

Thanks for the suggestion but Voice translation rule will not work here.  There are over a hundred TN on this SIP Trunk.  I dont see how I"II be able to translate "calling" for everyone of them.  To re-explain, all "calling" must be valid TN on the trunk.  With Voice translation rule, I"II have to convert all "calling" to 1 TN.  That is to say all calls will show as coming from 1 TN.  The calls need to show the actual TN calling.  The other alternative given is to include the PAI in the SIP message to show as [email protected] (example PAI [email protected]) .

Thank you.

paolo bevilacqua Sat, 04/28/2012 - 13:17
User Badges:
  • Super Gold, 25000 points or more
  • Hall of Fame,

    Founding Member

Please review regular expression and pattern features before stating that translation rules or SIP profiles cannot  be used.

babatunde_sanda Sat, 04/28/2012 - 14:22
User Badges:
  • Bronze, 100 points or more


I am not stating it cannot be used .  With regards to this scenario using translation rule I can convert any "calling" to 1 valid TN outgoing just as Danielle suggested.  But this will always show calls coming from one number not the real numbers calling.  I said that in my reply.  Maybe I should have phrased it better.

If you know how to use either tool to accomplish the desired result, please post.

Thank you.

paolo bevilacqua Sat, 04/28/2012 - 14:27
User Badges:
  • Super Gold, 25000 points or more
  • Hall of Fame,

    Founding Member

Seems like you CUCME is not sending a calling number at all, so you have to fix that first.


This Discussion

Related Content