cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1004
Views
0
Helpful
1
Replies

Multiple SIP Registrar changes Header Behaviour

clark.adam.p
Level 1
Level 1

Hi all,

  I want to use multiple SIP registrars and mu UC520 supports this:

Cisco IOS Software, UC500 Software (UC500-ADVIPSERVICESK9-M), Version 15.1(2)T2, RELEASE SOFTWARE (fc1)

all SIP UA config is consistent other than using a registrar number.

When sending with the FQDN the call succeeds after a 401, with the IP address instant 403 and fails.

Does anyone know a way to enforce a domain name in the From header?

Single Registrar:

sip-ua
credentials username <username> password <password> realm iinetphone.iinet.net.au
authentication username username <username> password <password> realm iinetphone.iinet.net.au
no remote-party-id
registrar dns:sip.vic.iinet.net.au expires 3600


Sent:
INVITE sip:0409802412@sip.vic.iinet.net.au:5060 SIP/2.0
Via: SIP/2.0/UDP 124.168.221.176:5060;branch=z9hG4bK14BD13DB
From: "iiNetPhone" <sip:number@sip.vic.iinet.net.au>;tag=78DE21E4-196D
To: <sip:number@sip.vic.iinet.net.au>
Date: Tue, 26 Apr 2011 08:20:43 GMT
Call-ID: EA040C40-6F1411E0-8AA6F4DA-326EFC50@iinetphone.iinet.net.au
Supported: 100rel,timer,resource-priority,replaces,sdp-anat
Min-SE:  1800
Cisco-Guid: 0315016448-0000065536-0000000074-4027191562
User-Agent: Cisco-SIPGateway/IOS-12.x
Allow: INVITE, OPTIONS, BYE, CANCEL, ACK, PRACK, UPDATE, REFER, SUBSCRIBE, NOTIFY, INFO, REGISTER
CSeq: 101 INVITE
Timestamp: 1303806043
Contact: <sip:number@124.168.221.176:5060>
Expires: 180
Allow-Events: telephone-event
Max-Forwards: 69
Session-Expires:  1800
Content-Type: application/sdp
Content-Disposition: session;handling=required
Content-Length: 256

v=0
o=CiscoSystemsSIP-GW-UserAgent 2333 1968 IN IP4 124.168.221.176
s=SIP Call
c=IN IP4 124.168.221.176
t=0 0
m=audio 18664 RTP/AVP 0 101
c=IN IP4 124.168.221.176
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=ptime:20


Received:
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 124.168.221.176:5060;branch=z9hG4bK14BD13DB
From: "iiNetPhone" <sip:number@sip.vic.iinet.net.au>;tag=78DE21E4-196D
To: <sip:number@sip.vic.iinet.net.au>;tag=SD52fjf99-952402136-1303806042870
Call-ID: EA040C40-6F1411E0-8AA6F4DA-326EFC50@iinetphone.iinet.net.au
CSeq: 101 INVITE
Timestamp: 1303806043

Multiple Registrar:

sip-ua
credentials username <username> password <password> realm iinetphone.iinet.net.au
authentication username username <username> password <password> realm iinetphone.iinet.net.au
no remote-party-id

registrar 1 dns:sip.vic.iinet.net.au expires 3600

Sent:
INVITE sip:number@sip.vic.iinet.net.au:5060 SIP/2.0
Via: SIP/2.0/UDP 124.168.221.176:5060;branch=z9hG4bK14B5FFFFBEBA
From: "
iiNetPhone" <sip:number@124.168.221.176>;tag=78DA6660-2A
To: <sip:number@sip.vic.iinet.net.au>
Date: Tue, 26 Apr 2011 08:16:39 GMT
Call-ID: 5835D86A-6F1411E0-8A93F4DA-326EFC50@iinetphone.iinet.net.au
Supported: 100rel,timer,resource-priority,replaces,sdp-anat
Min-SE:  1800
Cisco-Guid: 2169983744-0000065536-0000000071-4027191562
User-Agent: Cisco-SIPGateway/IOS-12.x
Allow: INVITE, OPTIONS, BYE, CANCEL, ACK, PRACK, UPDATE, REFER, SUBSCRIBE, NOTIFY, INFO, REGISTER
CSeq: 101 INVITE
Timestamp: 1303805799
Contact: <sip:number@124.168.221.176:5060>
Expires: 180
Allow-Events: telephone-event
Max-Forwards: 69
Session-Expires:  1800
Content-Type: application/sdp
Content-Disposition: session;handling=required
Content-Length: 256

v=0
o=CiscoSystemsSIP-GW-UserAgent 1309 2161 IN IP4 124.168.221.176
s=SIP Call
c=IN IP4 124.168.221.176
t=0 0
m=audio 18738 RTP/AVP 0 101
c=IN IP4 124.168.221.176
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=ptime:20


Received:
SIP/2.0 403 Forbidden
Via: SIP/2.0/UDP 124.168.221.176:5060;branch=z9hG4bK14B5FFFFBEBA
From: "
iiNetPhone" <sip:number@124.168.221.176>;tag=78DA6660-2A
To: <sip:number@sip.vic.iinet.net.au>;tag=aprqngfrt-8jdjp610000a6
Call-ID: 5835D86A-6F1411E0-8A93F4DA-326EFC50@iinetphone.iinet.net.au
CSeq: 101 INVITE
Timestamp: 1303805799

1 Reply 1

clark.adam.p
Level 1
Level 1

I solved it using SIP Profiles:

voice class sip-profiles 100
request INVITE sip-header From modify "@.*>;" "@sip.vic.iinet.net.au>;"
request INFO sip-header From modify "@.*>;" "@sip.vic.iinet.net.au>;"


dial-peer voice 2000 voip
voice-class sip profiles 100

Adam