Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. If you'd prefer to explore, try our test area to get started. And see here for current known issues.

New Member

Cisco Cube SIP Header

Hello all,

we are testing a cisco cube for a customer.

We want to modify the SIP header in order to get the "To" field like: "sip:phonenumber@example.com"

we don't want that after the @ appears the IP address

The rule for the voice class profile should be something like:

request INVITE sip-header To modify "<sip:(.*)@.*>" "<sip:\1@example.com>"

but in the logs of debug ccsip messages i alsways get: the IP and not the domain name

Also in the Contact field we want to append ";transport=udp"

Can somebody help me?

Maybe i am using a wrong string?

Thank you

Giovanni

 

  • IP Telephony
3 REPLIES
VIP Super Bronze

Can you send your sip profile

Can you send your sip profile configuration? What direction are you applying this? Depending on your IOS, sip profiles works only in the outbound direction (unless you have IOS that supports inbound sip profiles)

Please rate all useful posts "The essence of christianity is not the enthronement but the obliteration of self --William Barclay"
New Member

IOS: c2900-universalk9-mz.SPA

IOS: c2900-universalk9-mz.SPA.153-2.T3.bin

Profile:

voice class sip-profiles 1
 request INVITE sip-header From modify "<sip:(.*)@(.*)>\"" "<sip:\1@example.it>"
 request INVITE sip-header Via modify "<sip:(.*)@(.*):5060>\"" "<sip:\1@X.X.X.X:5066"
 request INVITE sip-header Contact modify "<sip:(.*)@(.*):5060>" "<sip:\1@X.X.X.X:5066;transport=udp>"
 request INVITE sip-header To modify "<sip:(.*)@.*>" "<sip:\1@example.it>"

 

The First and second raw works, the last 2 no!

Thank you

Giovanni

New Member

I solved.I used DNS in

I solved.

I used DNS in session target instead IPV4

and also used the command voice-class sip localhost dns:example.it
 

dial-peer voice 3 voip
 preference 1
 destination-pattern 0T
 session protocol sipv2
 session target dns:example.it:5066
 
voice-class codec 1
 voice-class sip localhost dns:example.it
 voice-class sip profiles 3

 dtmf-relay rtp-nte
 no vad

 

now the invite is perfect:

INVITE sip:00XXXXXXXXXX@example.it:5066 SIP/2.0
Via: SIP/2.0/UDP 192.168.102.40:5060;branch=z9hG4bK28FDC
Remote-Party-ID: "Test" <sip:0XXXXXXXXX@X.X.X.X>;party=calling;screen=yes;privacy=off
From: "Test" <sip:XXXXXXXXX@X.X.X.X>;tag=28F8CC94-1128
To: <sip:0XXXXXXXXX@example.it>
Date: Wed, 25 Jun 2014 10:20:41 GMT
Call-ID: 31C92CB5-FB8911E3-80EDFEC8-6556F87B@X.X.X:X
Supported: 100rel,timer,resource-priority,replaces,sdp-anat
Min-SE:  1800
Cisco-Guid: 1610789504-0000065536-0000028121-0174500032
User-Agent: Cisco-SIPGateway/IOS-15.3.2.T3
Allow: INVITE, OPTIONS, BYE, CANCEL, ACK, PRACK, UPDATE, REFER, SUBSCRIBE, NOTIFY, INFO, REGISTER
CSeq: 101 INVITE
Timestamp: 1403691641
Contact: <sip:XXXXXXXXX@X.X.X.X:5066;transport=udp>
Expires: 180
Allow-Events: telephone-event
Max-Forwards: 69
Session-Expires:  1800
Content-Type: application/sdp
Content-Disposition: session;handling=required
Content-Length: 311

 

Bye

Giovanni

282
Views
0
Helpful
3
Replies