01-24-2012 09:17 AM
Hi All.
Please help me to setup a SIP account. I’m already struggling to do that for a few days, and can’t find out how to finish that. We have 2xISDN lines running, so I need to add a SIP trunk to existing config.
The information from our SIP provider:
We have issued the following DDI range: 018877000 – 99
There is no need to register the DDI’s as these will be offered to your PABX IP address provided to in the completed SIP trunking form.
Configuration details are as follows:
Our Primary Proxy:- 99.234.56.78
Codec supported:- G711Alaw, G729 (G711Alaw is the preferred codec)
Fax Support:- T38 and G711Alaw
DTMF:- RFC2833 and INFO
CLI Method:- Remote-Party-ID
Trunk doesn’t require registration; you just need to send Invite. In cisco this is done through Dial-peer session-target command. We are authenticating your IP address for outgoing calls and incoming calls we then forward to the IP mentioned in the sip form.
This is a SIP configuration on Cisco2801 router (I used outgoing calls only):
!
translation-rule 10
Rule 0 ^90 0
Rule 1 ^91 1
Rule 2 ^92 2
Rule 3 ^93 3
Rule 4 ^94 4
Rule 5 ^95 5
Rule 6 ^96 6
Rule 7 ^97 7
Rule 8 ^98 8
Rule 9 ^99 9
!
interface FastEthernet0/0.1
description ***DATA VLAN***
encapsulation dot1Q 1 native
ip address 10.1.1.101 255.255.255.0
!
interface FastEthernet0/0.2
description ***VOICE VLAN***
encapsulation dot1Q 2
ip address 192.168.22.1 255.255.255.0
!
!
voice service voip
allow-connections h323 to h323
allow-connections h323 to sip
allow-connections sip to h323
allow-connections sip to sip
supplementary-service h450.12
h323
call start slow
sip
bind control source-interface FastEthernet0/0.2
bind media source-interface FastEthernet0/0.2
registrar server expires max 36000 min 600
!
!
voice class codec 1
codec preference 1 g729r8
codec preference 2 g711ulaw
codec preference 3 g711alaw
!
!
dial-peer voice 1 pots
description ### External Dialling via BRI ###
preference 7
destination-pattern 9T
translate-outgoing called 10
direct-inward-dial
port 0/0/0
forward-digits all
!
dial-peer voice 2 pots
description ### External Dialling via BRI ###
preference 2
destination-pattern 9T
translate-outgoing called 10
direct-inward-dial
port 0/0/1
forward-digits all
!
!
dial-peer voice 9000 voip
description ** Outgoing calls to SIP **
preference 1
destination-pattern 9T
voice-class sip dtmf-relay force rtp-nte
session protocol sipv2
session target ipv4:99.234.56.78:5060
dtmf-relay rtp-nte
codec g711alaw
no vad
!
sip-ua
timers connect 100
sip-server ipv4:99.234.56.78
!
I used debugging commands to troubleshoot the calls.
!
2801(config-dial-peer)#
094509: Jan 24 09:27:06.204: //-1/xxxxxxxxxxxx/DPM/dpAssociateIncomingPeerCore:
Calling Number=211, Called Number=, Voice-Interface=0x65FA35B4,
Timeout=TRUE, Peer Encap Type=ENCAP_VOICE, Peer Search Type=PEER_TYPE_VOICE,
Peer Info Type=DIALPEER_INFO_SPEECH
094510: Jan 24 09:27:06.204: //-1/xxxxxxxxxxxx/DPM/dpAssociateIncomingPeerCore:
Result=Success(0) after DP_MATCH_ORIGINATE; Incoming Dial-peer=20018
094511: Jan 24 09:27:06.716: //-1/6A877F6F9054/DPM/dpMatchPeersCore:
Calling Number=, Called Number=9, Peer Info Type=DIALPEER_INFO_SPEECH
094512: Jan 24 09:27:06.716: //-1/6A877F6F9054/DPM/dpMatchPeersCore:
Match Rule=DP_MATCH_DEST; Called Number=9
094513: Jan 24 09:27:06.716: //-1/6A877F6F9054/DPM/dpMatchPeersCore:
Result=Partial Matches(1) after DP_MATCH_DEST
094514: Jan 24 09:27:06.716: //-1/6A877F6F9054/DPM/dpMatchPeersMoreArg:
Result=MORE_DIGITS_NEEDED(1)
094515: Jan 24 09:27:06.816: //-1/6A877F6F9054/DPM/dpMatchPeersCore:
Calling Number=, Called Number=90, Peer Info Type=DIALPEER_INFO_SPEECH
094516: Jan 24 09:27:06.816: //-1/6A877F6F9054/DPM/dpMatchPeersCore:
Match Rule=DP_MATCH_DEST; Called Number=90
094517: Jan 24 09:27:06.816: //-1/6A877F6F9054/DPM/dpMatchPeersCore:
Result=Partial Matches(1) after DP_MATCH_DEST
094518: Jan 24 09:27:06.816: //-1/6A877F6F9054/DPM/dpMatchPeersMoreArg:
Result=MORE_DIGITS_NEEDED(1)
094519: Jan 24 09:27:06.912: //-1/6A877F6F9054/DPM/dpMatchPeersCore:
Calling Number=, Called Number=908, Peer Info Type=DIALPEER_INFO_SPEECH
094520: Jan 24 09:27:06.912: //-1/6A877F6F9054/DPM/dpMatchPeersCore:
Match Rule=DP_MATCH_DEST; Called Number=908
094521: Jan 24 09:27:06.916: //-1/6A877F6F9054/DPM/dpMatchPeersCore:
Result=Partial Matches(1) after DP_MATCH_DEST
094522: Jan 24 09:27:06.916: //-1/6A877F6F9054/DPM/dpMatchPeersMoreArg:
Result=MORE_DIGITS_NEEDED(1)
094523: Jan 24 09:27:07.012: //-1/6A877F6F9054/DPM/dpMatchPeersCore:
Calling Number=, Called Number=9086, Peer Info Type=DIALPEER_INFO_SPEECH
094524: Jan 24 09:27:07.012: //-1/6A877F6F9054/DPM/dpMatchPeersCore:
Match Rule=DP_MATCH_DEST; Called Number=9086
094525: Jan 24 09:27:07.016: //-1/6A877F6F9054/DPM/dpMatchPeersCore:
Result=Partial Matches(1) after DP_MATCH_DEST
094526: Jan 24 09:27:07.016: //-1/6A877F6F9054/DPM/dpMatchPeersMoreArg:
Result=MORE_DIGITS_NEEDED(1)
094527: Jan 24 09:27:07.116: //-1/6A877F6F9054/DPM/dpMatchPeersCore:
Calling Number=, Called Number=90862, Peer Info Type=DIALPEER_INFO_SPEECH
094528: Jan 24 09:27:07.116: //-1/6A877F6F9054/DPM/dpMatchPeersCore:
Match Rule=DP_MATCH_DEST; Called Number=90862
094529: Jan 24 09:27:07.116: //-1/6A877F6F9054/DPM/dpMatchPeersCore:
Result=Partial Matches(1) after DP_MATCH_DEST
094530: Jan 24 09:27:07.116: //-1/6A877F6F9054/DPM/dpMatchPeersMoreArg:
Result=MORE_DIGITS_NEEDED(1)
094531: Jan 24 09:27:07.212: //-1/6A877F6F9054/DPM/dpMatchPeersCore:
Calling Number=, Called Number=908621, Peer Info Type=DIALPEER_INFO_SPEECH
094532: Jan 24 09:27:07.212: //-1/6A877F6F9054/DPM/dpMatchPeersCore:
Match Rule=DP_MATCH_DEST; Called Number=908621
094533: Jan 24 09:27:07.216: //-1/6A877F6F9054/DPM/dpMatchPeersCore:
Result=Partial Matches(1) after DP_MATCH_DEST
094534: Jan 24 09:27:07.216: //-1/6A877F6F9054/DPM/dpMatchPeersMoreArg:
Result=MORE_DIGITS_NEEDED(1)
094535: Jan 24 09:27:07.316: //-1/6A877F6F9054/DPM/dpMatchPeersCore:
Calling Number=, Called Number=9086215, Peer Info Type=DIALPEER_INFO_SPEECH
094536: Jan 24 09:27:07.316: //-1/6A877F6F9054/DPM/dpMatchPeersCore:
Match Rule=DP_MATCH_DEST; Called Number=9086215
094537: Jan 24 09:27:07.316: //-1/6A877F6F9054/DPM/dpMatchPeersCore:
Result=Partial Matches(1) after DP_MATCH_DEST
094538: Jan 24 09:27:07.316: //-1/6A877F6F9054/DPM/dpMatchPeersMoreArg:
Result=MORE_DIGITS_NEEDED(1)
094539: Jan 24 09:27:07.412: //-1/6A877F6F9054/DPM/dpMatchPeersCore:
Calling Number=, Called Number=90862157, Peer Info Type=DIALPEER_INFO_SPEECH
094540: Jan 24 09:27:07.412: //-1/6A877F6F9054/DPM/dpMatchPeersCore:
Match Rule=DP_MATCH_DEST; Called Number=90862157
094541: Jan 24 09:27:07.416: //-1/6A877F6F9054/DPM/dpMatchPeersCore:
Result=Partial Matches(1) after DP_MATCH_DEST
094542: Jan 24 09:27:07.416: //-1/6A877F6F9054/DPM/dpMatchPeersMoreArg:
Result=MORE_DIGITS_NEEDED(1)
094543: Jan 24 09:27:07.516: //-1/6A877F6F9054/DPM/dpMatchPeersCore:
Calling Number=, Called Number=908621577, Peer Info Type=DIALPEER_INFO_SPEECH
094544: Jan 24 09:27:07.516: //-1/6A877F6F9054/DPM/dpMatchPeersCore:
Match Rule=DP_MATCH_DEST; Called Number=908621577
094545: Jan 24 09:27:07.516: //-1/6A877F6F9054/DPM/dpMatchPeersCore:
Result=Partial Matches(1) after DP_MATCH_DEST
094546: Jan 24 09:27:07.516: //-1/6A877F6F9054/DPM/dpMatchPeersMoreArg:
Result=MORE_DIGITS_NEEDED(1)
094547: Jan 24 09:27:07.612: //-1/6A877F6F9054/DPM/dpMatchPeersCore:
Calling Number=, Called Number=9086215777, Peer Info Type=DIALPEER_INFO_SPEECH
094548: Jan 24 09:27:07.612: //-1/6A877F6F9054/DPM/dpMatchPeersCore:
Match Rule=DP_MATCH_DEST; Called Number=9086215777
094549: Jan 24 09:27:07.616: //-1/6A877F6F9054/DPM/dpMatchPeersCore:
Result=Partial Matches(1) after DP_MATCH_DEST
094550: Jan 24 09:27:07.616: //-1/6A877F6F9054/DPM/dpMatchPeersMoreArg:
Result=MORE_DIGITS_NEEDED(1)
094551: Jan 24 09:27:07.716: //-1/6A877F6F9054/DPM/dpMatchPeersCore:
Calling Number=, Called Number=90862157774, Peer Info Type=DIALPEER_INFO_SPEECH
094552: Jan 24 09:27:07.716: //-1/6A877F6F9054/DPM/dpMatchPeersCore:
Match Rule=DP_MATCH_DEST; Called Number=90862157774
094553: Jan 24 09:27:07.716: //-1/6A877F6F9054/DPM/dpMatchPeersCore:
Result=Partial Matches(1) after DP_MATCH_DEST
094554: Jan 24 09:27:07.716: //-1/6A877F6F9054/DPM/dpMatchPeersMoreArg:
Result=MORE_DIGITS_NEEDED(1)
094555: Jan 24 09:27:10.711: //-1/6A877F6F9054/DPM/dpMatchPeersCore:
Calling Number=, Called Number=90862157774T, Peer Info Type=DIALPEER_INFO_SPEECH
094556: Jan 24 09:27:10.711: //-1/6A877F6F9054/DPM/dpMatchPeersCore:
Match Rule=DP_MATCH_DEST; Called Number=90862157774T
094557: Jan 24 09:27:10.711: //-1/6A877F6F9054/DPM/dpMatchPeersCore:
Result=Success(0) after DP_MATCH_DEST
094558: Jan 24 09:27:10.711: //-1/6A877F6F9054/DPM/dpMatchPeersMoreArg:
Result=SUCCESS(0)
List of Matched Outgoing Dial-peer(s):
1: Dial-peer Tag=9000
2: Dial-peer Tag=2
3: Dial-peer Tag=1
094559: Jan 24 09:27:10.711: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersCore:
Calling Number=90862157774, Called Number=90862157774, Peer Info Type=DIALPEER_INFO_SPEECH
094560: Jan 24 09:27:10.711: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersCore:
Match Rule=DP_MATCH_DEST; Called Number=90862157774
094561: Jan 24 09:27:10.715: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersCore:
Result=Success(0) after DP_MATCH_DEST
094562: Jan 24 09:27:10.715: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersMoreArg:
Result=SUCCESS(0)
List of Matched Outgoing Dial-peer(s):
1: Dial-peer Tag=9000
2: Dial-peer Tag=2
3: Dial-peer Tag=1
094563: Jan 24 09:27:10.715: //-1/xxxxxxxxxxxx/DPM/dpAssociateIncomingPeerCore:
Calling Number=90862157774, Called Number=, Voice-Interface=0x0,
Timeout=TRUE, Peer Encap Type=ENCAP_VOIP, Peer Search Type=PEER_TYPE_VOICE,
Peer Info Type=DIALPEER_INFO_SPEECH
094564: Jan 24 09:27:10.715: //-1/xxxxxxxxxxxx/DPM/dpAssociateIncomingPeerCore:
Result=Success(0) after DP_MATCH_ORIGINATE; Incoming Dial-peer=9000
094565: Jan 24 09:27:10.715: //-1/6A877F6F9054/DPM/dpMatchPeersCore:
Calling Number=, Called Number=90862157774, Peer Info Type=DIALPEER_INFO_SPEECH
094566: Jan 24 09:27:10.715: //-1/6A877F6F9054/DPM/dpMatchPeersCore:
Match Rule=DP_MATCH_DEST; Called Number=90862157774
094567: Jan 24 09:27:10.715: //-1/6A877F6F9054/DPM/dpMatchPeersCore:
Result=Success(0) after DP_MATCH_DEST
094568: Jan 24 09:27:10.715: //-1/6A877F6F9054/DPM/dpMatchPeersMoreArg:
Result=SUCCESS(0)
List of Matched Outgoing Dial-peer(s):
1: Dial-peer Tag=9000
2: Dial-peer Tag=2
3: Dial-peer Tag=1
094569: Jan 24 09:27:10.719: fb_get_reject_cause_code: ERROR cause_code NULL
094570: Jan 24 09:27:10.727: //-1/xxxxxxxxxxxx/SIP/Msg/ccsipDisplayMsg:
Sent:
INVITE sip:90862157774@99.234.56.78:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.22.1:5060;branch=z9hG4bK47D116D3
Remote-Party-ID: "Sam " <sip:211@192.168.22.1>;party=calling;screen=no;privacy=off
From: "Sam " <sip:211@192.168.22.1>;tag=CDCFB8AC-F98
To: <sip:90862157774@99.234.56.78>
Date: Tue, 24 Jan 2012 09:27:10 GMT
Call-ID: 6D3919CF-45A411E1-9059813F-74BAA80B@192.168.22.1
Supported: 100rel,timer,resource-priority,replaces
Min-SE: 1800
Cisco-Guid: 1787264879-1168380385-2421457215-1958389771
User-Agent: Cisco-SIPGateway/IOS-12.x
Allow: INVITE, OPTIONS, BYE, CANCEL, ACK, PRACK, UPDATE, REFER, SUBSCRIBE, NOTIFY, INFO, REGISTER
CSeq: 101 INVITE
Max-Forwards: 70
Timestamp: 1327397230
Contact: <sip:211@192.168.22.1:5060>
Expires: 180
Allow-Events: telephone-event
Content-Type: application/sdp
Content-Disposition: session;handling=required
Content-Length: 244
v=0
o=CiscoSystemsSIP-GW-UserAgent 3237 2021 IN IP4 192.168.22.1
s=SIP Call
c=IN IP4 192.168.22.1
t=0 0
m=audio 18258 RTP/AVP 8 101
c=IN IP4 192.168.22.1
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
094571: Jan 24 09:27:11.227: //-1/xxxxxxxxxxxx/SIP/Msg/ccsipDisplayMsg:
Sent:
INVITE sip:90862157774@99.234.56.78:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.22.1:5060;branch=z9hG4bK47D116D3
Remote-Party-ID: "Sam" <sip:211@192.168.22.1>;party=calling;screen=no;privacy=off
From: "Sam " <sip:211@192.168.22.1>;tag=CDCFB8AC-F98
To: <sip:90862157774@99.234.56.78>
Date: Tue, 24 Jan 2012 09:27:11 GMT
Call-ID: 6D3919CF-45A411E1-9059813F-74BAA80B@192.168.22.1
Supported: 100rel,timer,resource-priority,replaces
Min-SE: 1800
Cisco-Guid: 1787264879-1168380385-2421457215-1958389771
User-Agent: Cisco-SIPGateway/IOS-12.x
Allow: INVITE, OPTIONS, BYE, CANCEL, ACK, PRACK, UPDATE, REFER, SUBSCRIBE, NOTIFY, INFO, REGISTER
CSeq: 101 INVITE
Max-Forwards: 70
Timestamp: 1327397231
Contact: <sip:211@192.168.22.1:5060>
Expires: 180
Allow-Events: telephone-event
Content-Type: application/sdp
Content-Disposition: session;handling=required
Content-Length: 244
v=0
o=CiscoSystemsSIP-GW-UserAgent 3237 2021 IN IP4 192.168.22.1
s=SIP Call
c=IN IP4 192.168.22.1
t=0 0
m=audio 18258 RTP/AVP 8 101
c=IN IP4 192.168.22.1
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
094572: Jan 24 09:27:12.227: //-1/xxxxxxxxxxxx/SIP/Msg/ccsipDisplayMsg:
Sent:
INVITE sip:90862157774@99.234.56.78:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.22.1:5060;branch=z9hG4bK47D116D3
Remote-Party-ID: "Sam " <sip:211@192.168.22.1>;party=calling;screen=no;privacy=off
From: "Sam " <sip:211@192.168.22.1>;tag=CDCFB8AC-F98
To: <sip:90862157774@99.234.56.78>
Date: Tue, 24 Jan 2012 09:27:12 GMT
Call-ID: 6D3919CF-45A411E1-9059813F-74BAA80B@192.168.22.1
Supported: 100rel,timer,resource-priority,replaces
Min-SE: 1800
Cisco-Guid: 1787264879-1168380385-2421457215-1958389771
User-Agent: Cisco-SIPGateway/IOS-12.x
Allow: INVITE, OPTIONS, BYE, CANCEL, ACK, PRACK, UPDATE, REFER, SUBSCRIBE, NOTIFY, INFO, REGISTER
CSeq: 101 INVITE
Max-Forwards: 70
Timestamp: 1327397232
Contact: <sip:211@192.168.22.1:5060>
Expires: 180
Allow-Events: telephone-event
Content-Type: application/sdp
Content-Disposition: session;handling=required
Content-Length: 244
v=0
o=CiscoSystemsSIP-GW-UserAgent 3237 2021 IN IP4 192.168.22.1
s=SIP Call
c=IN IP4 192.168.22.1
t=0 0
m=audio 18258 RTP/AVP 8 101
c=IN IP4 192.168.22.1
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
094573: Jan 24 09:27:14.227: //-1/xxxxxxxxxxxx/SIP/Msg/ccsipDisplayMsg:
Sent:
INVITE sip:90862157774@99.234.56.78:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.22.1:5060;branch=z9hG4bK47D116D3
Remote-Party-ID: "Sam" <sip:211@192.168.22.1>;party=calling;screen=no;privacy=off
From: "Sam" <sip:211@192.168.22.1>;tag=CDCFB8AC-F98
To: <sip:90862157774@99.234.56.78>
Date: Tue, 24 Jan 2012 09:27:14 GMT
Call-ID: 6D3919CF-45A411E1-9059813F-74BAA80B@192.168.22.1
Supported: 100rel,timer,resource-priority,replaces
Min-SE: 1800
Cisco-Guid: 1787264879-1168380385-2421457215-1958389771
User-Agent: Cisco-SIPGateway/IOS-12.x
Allow: INVITE, OPTIONS, BYE, CANCEL, ACK, PRACK, UPDATE, REFER, SUBSCRIBE, NOTIFY, INFO, REGISTER
CSeq: 101 INVITE
Max-Forwards: 70
Timestamp: 1327397234
Contact: <sip:211@192.168.22.1:5060>
Expires: 180
Allow-Events: telephone-event
Content-Type: application/sdp
Content-Disposition: session;handling=required
Content-Length: 244
v=0
o=CiscoSystemsSIP-GW-UserAgent 3237 2021 IN IP4 192.168.22.1
s=SIP Call
c=IN IP4 192.168.22.1
t=0 0
m=audio 18258 RTP/AVP 8 101
c=IN IP4 192.168.22.1
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
I made some changes in the router configuration.
I removed FA0/0.2 Voice interface from Voice service voip configuration (bind control source-interface FastEthernet0/0.2 and bind media source-interface FastEthernet0/0.2). And now it’s using ip address 10.1.1.101 (data ip).
The debugging is changed now. I can send and receive a respond from SIP server. But It shows an error: SIP/2.0 404 Not Found
Then it moves to ISDN line, and use this line to make a call.
102988: Jan 24 14:45:47.290: //-1/EDCA21089304/DPM/dpMatchPeersCore:
Calling Number=, Called Number=90862157774T, Peer Info Type=DIALPEER_INFO_SPEECH
102989: Jan 24 14:45:47.290: //-1/EDCA21089304/DPM/dpMatchPeersCore:
Match Rule=DP_MATCH_DEST; Called Number=90862157774T
102990: Jan 24 14:45:47.290: //-1/EDCA21089304/DPM/dpMatchPeersCore:
Result=Success(0) after DP_MATCH_DEST
102991: Jan 24 14:45:47.290: //-1/EDCA21089304/DPM/dpMatchPeersMoreArg:
Result=SUCCESS(0)
List of Matched Outgoing Dial-peer(s):
1: Dial-peer Tag=9000
2: Dial-peer Tag=2
3: Dial-peer Tag=1
102992: Jan 24 14:45:47.290: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersCore:
Calling Number=90862157774, Called Number=90862157774, Peer Info Type=DIALPEER_INFO_SPEECH
102993: Jan 24 14:45:47.290: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersCore:
Match Rule=DP_MATCH_DEST; Called Number=90862157774
102994: Jan 24 14:45:47.294: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersCore:
Result=Success(0) after DP_MATCH_DEST
102995: Jan 24 14:45:47.294: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersMoreArg:
Result=SUCCESS(0)
List of Matched Outgoing Dial-peer(s):
1: Dial-peer Tag=9000
2: Dial-peer Tag=2
3: Dial-peer Tag=1
102996: Jan 24 14:45:47.294: //-1/xxxxxxxxxxxx/DPM/dpAssociateIncomingPeerCore:
Calling Number=90862157774, Called Number=, Voice-Interface=0x0,
Timeout=TRUE, Peer Encap Type=ENCAP_VOIP, Peer Search Type=PEER_TYPE_VOICE,
Peer Info Type=DIALPEER_INFO_SPEECH
102997: Jan 24 14:45:47.294: //-1/xxxxxxxxxxxx/DPM/dpAssociateIncomingPeerCore:
Result=Success(0) after DP_MATCH_ORIGINATE; Incoming Dial-peer=9000
102998: Jan 24 14:45:47.294: //-1/EDCA21089304/DPM/dpMatchPeersCore:
Calling Number=, Called Number=90862157774, Peer Info Type=DIALPEER_INFO_SPEECH
102999: Jan 24 14:45:47.294: //-1/EDCA21089304/DPM/dpMatchPeersCore:
Match Rule=DP_MATCH_DEST; Called Number=90862157774
103000: Jan 24 14:45:47.294: //-1/EDCA21089304/DPM/dpMatchPeersCore:
Result=Success(0) after DP_MATCH_DEST
103001: Jan 24 14:45:47.294: //-1/EDCA21089304/DPM/dpMatchPeersMoreArg:
Result=SUCCESS(0)
List of Matched Outgoing Dial-peer(s):
1: Dial-peer Tag=9000
2: Dial-peer Tag=2
3: Dial-peer Tag=1
103002: Jan 24 14:45:47.298: fb_get_reject_cause_code: ERROR cause_code NULL
103003: Jan 24 14:45:47.310: //-1/xxxxxxxxxxxx/SIP/Msg/ccsipDisplayMsg:
Sent:
INVITE sip:90862157774@99.234.56.78:5060 SIP/2.0
Via: SIP/2.0/UDP 10.1.1.101:5060;branch=z9hG4bK4875CB9
Remote-Party-ID: "Sam" <sip:211@10.1.1.101>;party=calling;screen=no;privacy=off
From: "Seam" <sip:211@10.1.1.101>;tag=CEF37490-172C
To: <sip:90862157774@99.234.56.78>
Date: Tue, 24 Jan 2012 14:45:47 GMT
Call-ID: EF977E91-45D011E1-9309813F-74BAA80B@10.1.1.101
Supported: 100rel,timer,resource-priority,replaces
Min-SE: 1800
Cisco-Guid: 3989446920-1171263969-2466545983-1958389771
User-Agent: Cisco-SIPGateway/IOS-12.x
Allow: INVITE, OPTIONS, BYE, CANCEL, ACK, PRACK, UPDATE, REFER, SUBSCRIBE, NOTIFY, INFO, REGISTER
CSeq: 101 INVITE
Max-Forwards: 70
Timestamp: 1327416347
Contact: <sip:211@10.1.1.101:5060>
Expires: 180
Allow-Events: telephone-event
Content-Type: application/sdp
Content-Disposition: session;handling=required
Content-Length: 247
v=0
o=CiscoSystemsSIP-GW-UserAgent 2438 9821 IN IP4 10.1.1.101
s=SIP Call
c=IN IP4 10.1.1.101
t=0 0
m=audio 19412 RTP/AVP 8 101
c=IN IP4 10.1.1.101
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
103004: Jan 24 14:45:47.354: //-1/xxxxxxxxxxxx/SIP/Msg/ccsipDisplayMsg:
Received:
SIP/2.0 404 Not Found
From: "Sam "<sip:211@10.1.1.101>;tag=CEF37490-172C
To: <sip:90862157774@99.234.56.78>;tag=7fad61f03708-100007f-13c4-55013-a0142-10fd12c8-a0142
Call-ID: EF977E91-45D011E1-9309813F-74BAA80B@10.1.1.101
CSeq: 101 INVITE
Via: SIP/2.0/UDP 10.1.1.101:5060;received=88.99.77.44;branch=z9hG4bK4875CB9
Content-Length: 0
103005: Jan 24 14:45:47.362: //-1/xxxxxxxxxxxx/SIP/Msg/ccsipDisplayMsg:
Sent:
ACK sip:90862157774@99.234.56.78:5060 SIP/2.0
Via: SIP/2.0/UDP 10.1.1.101:5060;branch=z9hG4bK4875CB9
From: "Sam " <sip:211@10.1.1.101>;tag=CEF37490-172C
To: <sip:90862157774@99.234.56.78>;tag=7fad61f03708-100007f-13c4-55013-a0142-10fd12c8-a0142
Date: Tue, 24 Jan 2012 14:45:47 GMT
Call-ID: EF977E91-45D011E1-9309813F-74BAA80B@10.1.1.101
Max-Forwards: 70
CSeq: 101 ACK
Allow-Events: telephone-event
Content-Length: 0
103006: Jan 24 14:45:47.374: %ISDN-6-LAYER2UP: Layer 2 for Interface BR0/0/1, TEI 96 changed to up
103007: Jan 24 14:45:51.313: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersCore:
Calling Number=, Called Number=211, Peer Info Type=DIALPEER_INFO_SPEECH
103008: Jan 24 14:45:51.313: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersCore:
Match Rule=DP_MATCH_DEST; Called Number=211
103009: Jan 24 14:45:51.317: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersCore:
Result=Success(0) after DP_MATCH_DEST
103010: Jan 24 14:45:51.317: //-1/xxxxxxxxxxxx/DPM/dpMatchPeers:
Result=SUCCESS(0)
List of Matched Outgoing Dial-peer(s):
1: Dial-peer Tag=20018
103011: Jan 24 14:45:51.317: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersCore:
Calling Number=, Called Number=0862157774, Peer Info Type=DIALPEER_INFO_SPEECH
103012: Jan 24 14:45:51.317: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersCore:
Match Rule=DP_MATCH_DEST; Called Number=0862157774
103013: Jan 24 14:45:51.317: //-1/xxxxxxxxxxxx/DPM/dpMatchPeersCore:
No Outgoing Dial-peer Is Matched; Result=NO_MATCH(-1)
103014: Jan 24 14:45:51.317: //-1/xxxxxxxxxxxx/DPM/dpMatchPeers:
Result=NO_MATCH(-1)
103015: Jan 24 14:46:08.815: %ISDN-6-LAYER2DOWN: Layer 2 for Interface BR0/0/1, TEI 96 changed to down
2801(config-dial-peer)#
Then I removed SIP-UA as I was told there is no registration necessary, only Dial-peer configuration.
But it didn’t affect anything.
Then I add translate-outgoing called 10 command to dial-peer 9000, nothing happened.
Really stuck and don't know where to look at.
Any help will be highly appreciated.
Thanks.
Solved! Go to Solution.
03-01-2012 01:37 AM
Hi Dan.
Once I changed session target ip incoming calls start working.
I had that feeling to remove session target or change to local ip of 2801 when I was writing a reply to you. And next day I forgot to do that, and you prooved my thoughts that I was thinking in right direction.
Thank you very much for your time and patience.
Looking back I can see that all that config could be easily done for couple of hours.
Just one more quick question about securing sip connection.
At the beginning I configured firewall to allow all sip connections for everybody: any any tcp/udp port 5060.
After a few minutes of configured Ougoing dial-peer I saw (on 2801 and ASA using debugging) that some ip address connected to our system and started opening sessions (different phone numbers started appear), and only after removing dial-peer it stopped. Firewall showed between 100-200 created and deleted sessions. Then I reconfigured firewall ACL and it stopped.
The question is. If a potential customer doesn't have a firewall or firewall is not configured and not blocking other ip addresses using sip port 5060, then it is possible to connect to system and use their sip account for calls. How can it be done to prevent any outside connection?
Thanks a mill.
Regards,
03-01-2012 10:07 AM
There are many technics:
- implement ACL filter on the voice gateway;
- enable "sip - source filter" under voice service voip menu;
- use ip trusted list if supported by IOS feature;
- block prefix;
- etc.
You can find more info searching for "cisco toll fraud prevention".
03-02-2012 06:22 AM
That's great, thanks.
I'll definitely have a look at that.
Thanks for all your time.
Cheers.
01-07-2016 04:40 AM
Hi,
Sorry for replying on this old thread,
I am facing the similar issue with my SIP configuration, I have a similar setup like yours. Can you help me with the required configuration on ASA and the CUBE.
My outgoing call is working fine, only issue is with the incoming calls.
Regards
Asif
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide