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. And see here for current known issues.

Bronze

Question on dial-peer matching for SIP calls based on From URI

I have the need to match a dial-peer based on the IP address of the provider sending us a call.  I read this doc

http://www.cisco.com/en/US/docs/ios/voice/command/reference/vr_i1.html#wp1113316

Which indicates that we should create a uri voice class and add the host of the service provider, then use the incoming uri command on the dial peer to match the class.

So I ahve

voice class uri 80909 sip

host ipv4:<IP in "from" header from the ITSP>

dial-peer voice 510 voip

description <removed>

preference 1

session protocol sipv2

session target ipv4:<removed>

incoming uri from 80909

voice-class codec 1

voice-class sip early-offer forced

voice-class sip options-keepalive

dtmf-relay rtp-nte

ip qos dscp cs5 media

ip qos dscp cs5 signaling

no vad

But the calls still 404.  If I add a destination pattern, the calls match perfectly.

Running IOS 15.1(4)M3 on a Cisco 3825 router.

When I debug ccsip messages, I do see the IP I want to match in the From header

Received:

INVITE sip:<removed>@<IP of the 3825>:5060 SIP/2.0

Via: SIP/2.0/UDP <IP of the ITSP we're trying to match>:5060;branch=z9hG4bK1sansay3287000127rdb8746

Record-Route: <sip:sansay3287000127rdb8746@IP of ITSP:5060;lr;transport=udp>

To: <sip:<removed>@<IP of the 3825>>

From: <sip:<removed>@<IP of the ITSP>>;tag=sansay3287000127rdb8746

Call-ID: 984000968-0-2130291236@<removed>

CSeq: 1 INVITE

Contact: <sip:<removed>@IP of the ITSP>:5060>

Cisco-Guid: 3794994627-250470193-3196230199-3910696620

Supported: timer,100rel

Session-Expires: 36000;refresher=uac

Min-SE: 90

P-Asserted-Identity: <sip:<removed>@<removed>>

Remote-Party-ID: <sip:<removed>@<removed>>;party=calling

Expires: 300

h323-conf-id: 3794994627-250470193-3196230199-3910696620

Content-disposition: session

User-Agent: Sippy

Max-Forwards: 69

Content-Type: application/sdp

Content-Length: 299

v=0

o=Sansay-VSXi 188 1 IN IP4 <IP of the ITSP>

s=Session Controller

c=IN IP4 <IP of the ITSP>

t=0 0

m=audio 27042 RTP/AVP 0 8 18 101

a=rtpmap:0 PCMU/8000

a=rtpmap:8 PCMA/8000

a=rtpmap:18 G729/8000

a=fmtp:18 annexb=no

a=rtpmap:101 telephone-event/8000

a=fmtp:101 0-15

a=sendrecv

a=maxptime:20

Jan 14 13:01:03.516 est: //4087257/E23305C3BE82/SIP/Msg/ccsipDisplayMsg:

Sent:

SIP/2.0 100 Trying

Via: SIP/2.0/UDP <IP of the ITSP>:5060;branch=z9hG4bK1sansay3287000127rdb8746

From: <sip:<removed>@<IP of the ITSP>>;tag=sansay3287000127rdb8746

To: <sip:<removed>@<IP of the 3825>>

Date: Tue, 14 Jan 2014 18:01:03 GMT

Call-ID: 984000968-0-2130291236@<removed>

CSeq: 1 INVITE

Allow-Events: telephone-event

Server: Cisco-SIPGateway/IOS-12.x

Content-Length: 0

Jan 14 13:01:03.516 est: //4087257/E23305C3BE82/SIP/Msg/ccsipDisplayMsg:

Sent:

SIP/2.0 404 Not Found

Via: SIP/2.0/UDP <IP of the ITSP>:5060;branch=z9hG4bK1sansay3287000127rdb8746

From: <sip:<removed>@<IP of the ITSP>>;tag=sansay3287000127rdb8746

To: <sip:<removed>@<IP of the 3825>>;tag=D5FA05A8-CF4

Date: Tue, 14 Jan 2014 18:01:03 GMT

Call-ID: 984000968-0-2130291236@<removed>

CSeq: 1 INVITE

Allow-Events: telephone-event

Server: Cisco-SIPGateway/IOS-12.x

Reason: Q.850;cause=1

Content-Length: 0

3 REPLIES
Bronze

Question on dial-peer matching for SIP calls based on From URI

Hi Paul,

You want to match inbound or outgoing dial peer on the basis of IP address in from field? voice-class uri command can be used to match a dial peer in Inbound direction only. As per your configuration dial peer 510 will be matched in Inbound direction then on the basis of called number outgoing dial peer will be matched. Here it looks like outbound dial peer is not found by router due to which call failed with 404 not found. Could you provide below mentioned debugs with calling and called number

debug ccsip message

debug ccsip error

debug voip ccapi inout

Also provide me "show run".

Regards,

Mohit Singh

Bronze

Question on dial-peer matching for SIP calls based on From URI

Hi Mohit,

I ended up opening a case with TAC.  I'll post the results once they help sort out what's going wrong here.

New Member

Did you ever get this

Did you ever get this resolved?  I think I am looking to do something similar.  I want to set my session target based on the incoming URI.

333
Views
0
Helpful
3
Replies
CreatePlease login to create content