Modifying PAI/From fields in SIP Outbound messages

Unanswered Question
Apr 27th, 2012

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. 


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:



Via: SIP/2.0/UDP;branch=z9hG4bK9211B

From: <


To: <


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

Call-ID: 3ECDFF08-900511E1-800FAE20-6DFB32FD@

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

I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Average Rating: 0 (0 ratings)
Daniele Giordano Sat, 04/28/2012 - 00:21

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

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 (example PAI .

Thank you.

Paolo Bevilacqua Sat, 04/28/2012 - 13:17

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


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

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


Login or Register to take actions

This Discussion

Posted April 27, 2012 at 6:07 PM
Replies:5 Avg. Rating:
Views:991 Votes:0

Related Content


Discussions Leaderboard