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. 

Telephone number@providerdomain.com

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:

Sent:

INVITE sip:0988@voip.isp.org:5060 SIP/2.0

Via: SIP/2.0/UDP 197.14.85.103:5060;branch=z9hG4bK9211B

From: <sip:voip.isp.org

>;tag=8A8AC-1E40

To: <sip:0988@voip.isp.org

>

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

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

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

Allow: INVITE, OPTIONS, BYE, CANCEL, ACK, PRACK, UPDATE, REFER, SUBSCRIBE, NOTIFY, INFO, REGISTER

CSeq: 101 INVITE

Max-Forwards: 70

Timestamp: 1335575200

Contact: <sip:197.14.85.103:5060>

Expires: 180

Allow-Events: telephone-event

P-Asserted-Identity: <sip:197.14.85.103

>

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

...

Regards.

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 TN@ispdomain.com (example PAI 7143030988@ispdomain.com) .

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

Paolo,

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.

Actions

Login or Register to take actions

This Discussion

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

Related Content