[cisco-voip] CME: SIP Trunk with Asteriks

Syed Khalid Ali syed.khalid.khursheed at gmail.com
Fri Oct 22 08:43:23 EDT 2010


The Service Provider also sent me these traces:

Oct 22 16:47:48 NOTICE[13901]: chan_sip.c:11385 handle_request_register:
Registration from '<sip:60001 at 124.109.50.25>' failed for '172.21.5.134' -
ACL error (permit/deny)

Oct 22 16:47:48 NOTICE[13901]: chan_sip.c:11385 handle_request_register:
Registration from '<sip:60002 at 124.109.50.25>' failed for '172.21.5.134' -
ACL error (permit/deny)

Oct 22 16:47:48 NOTICE[13901]: chan_sip.c:11385 handle_request_register:
Registration from '<sip:60003 at 124.109.50.25>' failed for '172.21.5.134' -
ACL error (permit/deny)

Oct 22 16:47:48 NOTICE[13901]: chan_sip.c:11385 handle_request_register:
Registration from '<sip:60004 at 124.109.50.25>' failed for '172.21.5.134' -
ACL error (permit/deny)

Oct 22 16:47:48 NOTICE[13901]: chan_sip.c:11385 handle_request_register:
Registration from '<sip:60005 at 124.109.50.25>' failed for '172.21.5.134' -
ACL error (permit/deny)

Oct 22 16:47:48 NOTICE[13901]: chan_sip.c:11385 handle_request_register:
Registration from '<sip:60006 at 124.109.50.25>' failed for '172.21.5.134' -
ACL error (permit/deny)



On Fri, Oct 22, 2010 at 5:31 PM, Syed Khalid Ali <
syed.khalid.khursheed at gmail.com> wrote:

> hi,
>
> I am trying to establish SIP trunk with a local service provide. They are
> using Asteriks as the SIP Proxy. The INVITE is going from my CME (SCCP)
> extension to the SIP Server which in turns reject outbound the call with
> Forbidden 403 message.
>
> Right now I am scratching my head what I missed during configuration.
> Attached is the configuration and debug for reference.
>
> --
> Thanks,
> Syed Khalid Ali
>
>


-- 
Thanks,
Syed Khalid Ali
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://puck.nether.net/pipermail/cisco-voip/attachments/20101022/c3082b86/attachment.html>
-------------- next part --------------

CME_2811#
CME_2811#
CME_2811#deb ccsip calls
SIP Call statistics tracing is enabled
CME_2811#deb ccsip message
SIP Call messages tracing is enabled
CME_2811#
*Oct 22 11:35:02.983: //-1/xxxxxxxxxxxx/SIP/Msg/ccsipDisplayMsg:
Sent: 
INVITE sip:03333354164 at 124.109.50.25:5060 SIP/2.0
Via: SIP/2.0/UDP 172.21.5.134:5060;branch=z9hG4bKF3415
Remote-Party-ID: "Phone-5" <sip:60005 at 172.21.5.134>;party=calling;screen=no;privacy=off
From: "Phone-5" <sip:"406100"@124.109.50.25>;tag=52461C-D20
To: <sip:03333354164 at 124.109.50.25>
Date: Fri, 22 Oct 2010 11:35:02 GMT
Call-ID: 3EA32F34-DD0711DF-813494CE-E2D66453 at 172.21.5.134
Supported: 100rel,timer,resource-priority,replaces
Min-SE:  1800
Cisco-Guid: 1030721940-3708228063-2167379150-3805701203
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: 1287747302
Contact: <sip:60005 at 172.21.5.134:5060>
Expires: 180
Allow-Events: telephone-event
Content-Type: application/sdp
Content-Disposition: session;handling=required
Content-Length: 189

v=0
CME_2811#
o=CiscoSystemsSIP-GW-UserAgent 18 7118 IN IP4 172.21.5.134
s=SIP Call
c=IN IP4 172.21.5.134
t=0 0
m=audio 17468 RTP/AVP 0
c=IN IP4 172.21.5.134
a=rtpmap:0 PCMU/8000
a=ptime:20

*Oct 22 11:35:02.991: //-1/xxxxxxxxxxxx/SIP/Msg/ccsipDisplayMsg:
Received: 
SIP/2.0 403 Forbidden
Via: SIP/2.0/UDP 172.21.5.134:5060;branch=z9hG4bKF3415;received=172.21.5.134
From: "Phone-5" <sip:"406100"@124.109.50.25>;tag=52461C-D20
To: <sip:03333354164 at 124.109.50.25>;tag=as6832db6d
Call-ID: 3EA32F34-DD0711DF-813494CE-E2D66453 at 172.21.5.134
CSeq: 101 INVITE
User-Agent: PBXware
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Content-Length: 0


*Oct 22 11:35:03.479: //-1/xxxxxxxxxxxx/SIP/Msg/ccsipDisplayMsg:
Sent: 
INVITE sip:03333354164 at 124.109.50.25:5060 SIP/2.0
Via: SIP/2.0/UDP 172.21.5.134:5060;branch=z9hG4bKF3415
Remote-Party-ID: "Phone-5" <sip:60005 at 172.21.5.134>;party=calling;screen=no;privacy=off
From: "Phone-5" <sip:"406100"@124.109.50.25>;tag=52461C-D20
To: <sip:03333354164 at 124.109.50.25>
Date: Fri, 22 Oct 2010 11:35:03 GMT
Call-ID: 3EA32F34-DD0711DF-813494CE-E2D66453 at 172.21.5.134
Supported: 100rel,timer,resource-priority,replaces
Min-SE:  1800
Cisco-Guid: 1030721940-3708228063-2167379150-3805701203
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: 1287747303
Contact: <sip:60005 at 172.21.5.134:5060>
Expires: 180
Allow-Events: telephone-event
Content-Type: application/sdp
Content-Disposition: session;handling=required
Content-Length: 189

v=0
o=CiscoSystemsSIP-GW-UserAgent 18 7118 IN IP4 172.21.5.134
s=SIP Call
c=IN IP4 172.21.5.134
t=0 0
m=audio 17468 RTP/AVP 0
c=IN IP4 172.21.5.134
a=rtpmap:0 PCMU/8000
a=ptime:20

*Oct 22 11:35:03.987: //-1/xxxxxxxxxxxx/SIP/Msg/ccsipDisplayMsg:
Received: 
SIP/2.0 403 Forbidden
Via: SIP/2.0/UDP 172.21.5.134:5060;branch=z9hG4bKF3415;received=172.21.5.134
From: "Phone-5" <sip:"406100"@124.109.50.25>;tag=52461C-D20
To: <sip:03333354164 at 124.109.50.25>;tag=as6832db6d
Call-ID: 3EA32F34-DD0711DF-813494CE-E2D66453 at 172.21.5.134
CSeq: 101 INVITE
User-Agent: PBXware
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Content-Length: 0


*Oct 22 11:35:04.479: //-1/xxxxxxxxxxxx/SIP/Msg/ccsipDisplayMsg:
Sent: 
INVITE sip:03333354164 at 124.109.50.25:5060 SIP/2.0
Via: SIP/2.0/UDP 172.21.5.134:5060;branch=z9hG4bKF3415
Remote-Party-ID: "Phone-5" <sip:60005 at 172.21.5.134>;party=calling;screen=no;privacy=off
From: "Phone-5" <sip:"406100"@124.109.50.25>;tag=52461C-D20
To: <sip:03333354164 at 124.109.50.25>
Date: Fri, 22 Oct 2010 11:35:04 GMT
Call-ID: 3EA32F34-DD0711DF-813494CE-E2D66453 at 172.21.5.134
Supported: 100rel,timer,resource-priority,replaces
Min-SE:  1800
Cisco-Guid: 1030721940-3708228063-2167379150-3805701203
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: 1287747304
Contact: <sip:60005 at 172.21.5.134:5060>
Expires: 180
Allow-Events: telephone-event
Content-Type: application/sdp
Content-Disposition: session;handling=required
Content-Length: 189

v=0
o=CiscoSystemsSIP-GW-UserAgent 18 7118 IN IP4 172.21.5.134
s=SIP Call
c=IN IP4 172.21.5.134
t=0 0
m=audio 17468 RTP/AVP 0
c=IN IP4 172.21.5.134
a=rtpmap:0 PCMU/8000
a=ptime:20

*Oct 22 11:35:04.987: //-1/xxxxxxxxxxxx/SIP/Msg/ccsipDisplayMsg:
Received: 
SIP/2.0 403 Forbidden
Via: SIP/2.0/UDP 172.21.5.134:5060;branch=z9hG4bKF3415;received=172.21.5.134
From: "Phone-5" <sip:"406100"@124.109.50.25>;tag=52461C-D20
To: <sip:03333354164 at 124.109.50.25>;tag=as6832db6d
Call-ID: 3EA32F34-DD0711DF-813494CE-E2D66453 at 172.21.5.134
CSeq: 101 INVITE
User-Agent: PBXware
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Content-Length: 0


*Oct 22 11:35:06.479: //-1/xxxxxxxxxxxx/SIP/Msg/ccsipDisplayMsg:
Sent: 
INVITE sip:03333354164 at 124.109.50.25:5060 SIP/2.0
Via: SIP/2.0/UDP 172.21.5.134:5060;branch=z9hG4bKF3415
Remote-Party-ID: "Phone-5" <sip:60005 at 172.21.5.134>;party=calling;screen=no;privacy=off
From: "Phone-5" <sip:"406100"@124.109.50.25>;tag=52461C-D20
To: <sip:03333354164 at 124.109.50.25>
Date: Fri, 22 Oct 2010 11:35:06 GMT
Call-ID: 3EA32F34-DD0711DF-813494CE-E2D66453 at 172.21.5.134
Supported: 100rel,timer,resource-priority,replaces
Min-SE:  1800
Cisco-Guid: 1030721940-3708228063-2167379150-3805701203
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: 1287747306
Contact: <sip:60005 at 172.21.5.134:5060>
Expires: 180
Allow-Events: telephone-event
Content-Type: application/sdp
Content-Disposition: session;handling=required
Content-Length: 189

v=0
o=CiscoSystemsSIP-GW-UserAgent 18 7118 IN IP4 172.21.5.134
s=SIP Call
c=IN IP4 172.21.5.134
t=0 0
m=audio 17468 RTP/AVP 0
c=IN IP4 172.21.5.134
a=rtpmap:0 PCMU/8000
a=ptime:20

*Oct 22 11:35:06.987: //-1/xxxxxxxxxxxx/SIP/Msg/ccsipDisplayMsg:
Received: 
SIP/2.0 403 Forbidden
Via: SIP/2.0/UDP 172.21.5.134:5060;branch=z9hG4bKF3415;received=172.21.5.134
From: "Phone-5" <sip:"406100"@124.109.50.25>;tag=52461C-D20
To: <sip:03333354164 at 124.109.50.25>;tag=as6832db6d
Call-ID: 3EA32F34-DD0711DF-813494CE-E2D66453 at 172.21.5.134
CSeq: 101 INVITE
User-Agent: PBXware
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Content-Length: 0


CME_2811#
CME_2811#
*Oct 22 11:35:10.479: //-1/xxxxxxxxxxxx/SIP/Msg/ccsipDisplayMsg:
Sent: 
INVITE sip:03333354164 at 124.109.50.25:5060 SIP/2.0
Via: SIP/2.0/UDP 172.21.5.134:5060;branch=z9hG4bKF3415
Remote-Party-ID: "Phone-5" <sip:60005 at 172.21.5.134>;party=calling;screen=no;privacy=off
From: "Phone-5" <sip:"406100"@124.109.50.25>;tag=52461C-D20
To: <sip:03333354164 at 124.109.50.25>
Date: Fri, 22 Oct 2010 11:35:10 GMT
Call-ID: 3EA32F34-DD0711DF-813494CE-E2D66453 at 172.21.5.134
Supported: 100rel,timer,resource-priority,replaces
Min-SE:  1800
Cisco-Guid: 1030721940-3708228063-2167379150-3805701203
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: 1287747310
Contact: <sip:60005 at 172.21.5.134:5060>
Expires: 180
Allow-Events: telephone-event
Content-Type: application/sdp
Content-Disposition: session;handling=required
Content-Length: 189

v=0
CME_2811#
o=CiscoSystemsSIP-GW-UserAgent 18 7118 IN IP4 172.21.5.134
s=SIP Call
c=IN IP4 172.21.5.134
t=0 0
m=audio 17468 RTP/AVP 0
c=IN IP4 172.21.5.134
a=rtpmap:0 PCMU/8000
a=ptime:20

*Oct 22 11:35:10.987: //-1/xxxxxxxxxxxx/SIP/Msg/ccsipDisplayMsg:
Received: 
SIP/2.0 403 Forbidden
Via: SIP/2.0/UDP 172.21.5.134:5060;branch=z9hG4bKF3415;received=172.21.5.134
From: "Phone-5" <sip:"406100"@124.109.50.25>;tag=52461C-D20
To: <sip:03333354164 at 124.109.50.25>;tag=as6832db6d
Call-ID: 3EA32F34-DD0711DF-813494CE-E2D66453 at 172.21.5.134
CSeq: 101 INVITE
User-Agent: PBXware
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Content-Length: 0


*Oct 22 11:35:11.739: //-1/xxxxxxxxxxxx/SIP/Msg/ccsipDisplayMsg:
Received: 
OPTIONS sip:172.21.5.134 SIP/2.0
Via: SIP/2.0/UDP 124.109.50.25:5060;branch=z9hG4bK7f261244
From: "asterisk" <sip:asterisk at 124.109.50.25>;tag=as5a405d0c
To: <sip:172.21.5.134>
Contact: <sip:asterisk at 124.109.50.25>
Call-ID: 376d9e644afef7a6320be0a94afa1414 at 124.109.50.25
CSeq: 102 OPTIONS
User-Agent: PBXware
Max-Forwards: 70
Date: Fri, 22 Oct 2010 11:11:19 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Content-Length: 0


*Oct 22 11:35:11.747: //-1/xxxxxxxxxxxx/SIP/Msg/ccsipDisplayMsg:
Sent: 
SIP/2.0 200 OK
Via: SIP/2.0/UDP 124.109.50.25:5060;branch=z9hG4bK7f261244
From: "asterisk" <sip:asterisk at 124.109.50.25>;tag=as5a405d0c
To: <sip:172.21.5.134>;tag=526854-176
Date: Fri, 22 Oct 2010 11:35:11 GMT
Call-ID: 376d9e644afef7a6320be0a94afa1414 at 124.109.50.25
Server: Cisco-SIPGateway/IOS-12.x
CSeq: 102 OPTIONS
Supported: 100rel,resource-priority,replaces
Allow: INVITE, OPTIONS, BYE, CANCEL, ACK, PRACK, UPDATE, REFER, SUBSCRIBE, NOTIFY, INFO, REGISTER
Allow-Events: telephone-event
Accept: application/sdp
Content-Type: application/sdp
Content-Length: 169

v=0
o=CiscoSystemsSIP-GW-UserAgent 3079 2339 IN IP4 172.21.5.134
s=SIP Call
c=IN IP4 172.21.5.134
t=0 0
m=audio 0 RTP/AVP 18 0 8 9 4 2 15 3
c=IN IP4 172.21.5.134

CME_2811#
CME_2811#
*Oct 22 11:35:14.987: //-1/xxxxxxxxxxxx/SIP/Msg/ccsipDisplayMsg:
Received: 
SIP/2.0 403 Forbidden
Via: SIP/2.0/UDP 172.21.5.134:5060;branch=z9hG4bKF3415;received=172.21.5.134
From: "Phone-5" <sip:"406100"@124.109.50.25>;tag=52461C-D20
To: <sip:03333354164 at 124.109.50.25>;tag=as6832db6d
Call-ID: 3EA32F34-DD0711DF-813494CE-E2D66453 at 172.21.5.134
CSeq: 101 INVITE
User-Agent: PBXware
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Content-Length: 0


CME_2811#
*Oct 22 11:35:18.479: //-1/xxxxxxxxxxxx/SIP/Msg/ccsipDisplayMsg:
Sent: 
INVITE sip:03333354164 at 124.109.50.25:5060 SIP/2.0
Via: SIP/2.0/UDP 172.21.5.134:5060;branch=z9hG4bKF3415
Remote-Party-ID: "Phone-5" <sip:60005 at 172.21.5.134>;party=calling;screen=no;privacy=off
From: "Phone-5" <sip:"406100"@124.109.50.25>;tag=52461C-D20
To: <sip:03333354164 at 124.109.50.25>
Date: Fri, 22 Oct 2010 11:35:18 GMT
Call-ID: 3EA32F34-DD0711DF-813494CE-E2D66453 at 172.21.5.134
Supported: 100rel,timer,resource-priority,replaces
Min-SE:  1800
Cisco-Guid: 1030721940-3708228063-2167379150-3805701203
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: 1287747318
Contact: <sip:60005 at 172.21.5.134:5060>
Expires: 180
Allow-Events: telephone-event
Content-Type: application/sdp
Content-Disposition: session;handling=required
Content-Length: 189

v=0
CME_2811#
o=CiscoSystemsSIP-GW-UserAgent 18 7118 IN IP4 172.21.5.134
s=SIP Call
c=IN IP4 172.21.5.134
t=0 0
m=audio 17468 RTP/AVP 0
c=IN IP4 172.21.5.134
a=rtpmap:0 PCMU/8000
a=ptime:20

*Oct 22 11:35:18.987: //-1/xxxxxxxxxxxx/SIP/Msg/ccsipDisplayMsg:
Received: 
SIP/2.0 403 Forbidden
Via: SIP/2.0/UDP 172.21.5.134:5060;branch=z9hG4bKF3415;received=172.21.5.134
From: "Phone-5" <sip:"406100"@124.109.50.25>;tag=52461C-D20
To: <sip:03333354164 at 124.109.50.25>;tag=as6832db6d
Call-ID: 3EA32F34-DD0711DF-813494CE-E2D66453 at 172.21.5.134
CSeq: 101 INVITE
User-Agent: PBXware
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Content-Length: 0


CME_2811#
CME_2811#
CME_2811#un all
All possible debugging has been turned off
CME_2811#
-------------- next part --------------
ssible debugging has been turned off
CME_2811#
CME_2811#
CME_2811#sh run 
Building configuration...

Current configuration : 4529 bytes
!
version 12.4
!
hostname CME_2811
!
clock timezone UTC 5
!
ip host SIP_SRV 124.109.50.25

voice service voip 
 address-hiding
 allow-connections sip to sip
 no supplementary-service sip moved-temporarily
 no supplementary-service sip refer
 redirect ip2ip
 sip
  bind control source-interface FastEthernet0/0
  bind media source-interface FastEthernet0/0
  transport switch udp tcp
!
!
voice class codec 1
 codec preference 1 g711ulaw
!
!
!
!
voice class sip-profiles 1
 request INVITE sip-header SIP-Req-URI modify "; SIP/2.0" ";user=406100 SIP/2.0" 
 request REINVITE sip-header SIP-Req-URI modify "; SIP/2.0" ";user=406100 SIP/2.0" 
 request INVITE sip-header From modify "(<.*:)(.*@)" "\1"406100"@" 
!
voice translation-rule 1
 rule 1 /^9\(.*\)/ /\1/
!
voice translation-rule 2
 rule 1 /84..../ /60005/
!
!
voice translation-profile AutoAttendant
 translate called 2
!
voice translation-profile PSTN_Outgoing
 translate called 1
!         
!
interface FastEthernet0/0
 ip address 172.21.5.134 255.255.255.252
 duplex auto
 speed auto
!
interface FastEthernet0/1
 ip address 192.168.0.120 255.255.255.0
 duplex auto
 speed auto
!
!
dial-peer voice 1000 voip
 description **Incoming Call from SIP Trunk**
 translation-profile incoming AutoAttendant
 destination-pattern 60005
 voice-class codec 1
 session protocol sipv2
 session target ipv4:124.109.50.25
 incoming called-number .
 dtmf-relay sip-notify
 no vad
!
dial-peer voice 300 voip
 destination-pattern 03.........
 session protocol sipv2
 session target ipv4:124.109.50.25
 codec g711ulaw
 no vad
!
sip-ua 
 keepalive target ipv4:124.109.50.25
 authentication username 406100 password cisco
 retry register 10
 sip-server ipv4:124.109.50.25
 notify telephone-event max-duration 500
  host-registrar
!
!
telephony-service
 no auto-reg-ephone
 em keep-history
 max-ephones 42
 max-dn 144
 ip source-address 192.168.0.120 port 2000
 calling-number initiator
 date-format dd-mm-yy
 max-conferences 8 gain -6
 moh music-on-hold.au
 transfer-system full-consult
 secondary-dialtone 9
 create cnf-files version-stamp Jan 01 2002 00:00:00
!
!
ephone-dn  1  dual-line
 number 60001
 label Phone-1
 name Phone-1
!
!
ephone-dn  5  dual-line
 number 60005
 label Phone-5
 name Phone-5
!
!
ephone-dn  6  dual-line
 number 60006
 label Phone-6
 name Phone-6
!
!
ephone  1 
 mac-address 0021.A086.7726
 type 7911
!
!
ephone  5
 mac-address 001C.230C.F5E3
 type CIPC
 button  1:5
!
!
ephone  6
 mac-address 78E4.00B7.0E06
 type CIPC
!
!
!
line con 0
 exec-timeout 0 0
 password cisco
 logging synchronous
 login
!
end


More information about the cisco-voip mailing list