SIP Dial-Peer

SIP_protocolo1
Seguimos con un laboratorio muy sencillo para practicar con enlaces SIP. Utilizaremos un router 2620XM y un router 2801. Ambos routers con CME.

Router 2801

dial-peer voice 201 voip
destination-pattern 201
session protocol sipv2
session target ipv4:192.168.0.1
dtmf-relay h245-alphanumeric
!
!
sip-ua
registrar ipv4:192.168.3.1 expires 3600

Router2801#show ip interface brief
Interface IP-Address OK? Method Status Protocol
FastEthernet0/0 unassigned YES NVRAM up up
FastEthernet0/0.5 20.20.0.1 YES NVRAM up up
FastEthernet0/0.10 192.168.3.1 YES NVRAM up up
FastEthernet0/1 192.168.0.11 YES DHCP up up

Router 2620XM

dial-peer voice 301 voip
destination-pattern 301
session protocol sipv2
session target ipv4:192.168.0.11
dtmf-relay h245-alphanumeric
!
sip-ua
registrar ipv4:192.168.0.1 expires 3600
!

Router2620XM#show ip interface brief
Interface IP-Address OK? Method Status Protocol
FastEthernet0/0 unassigned YES NVRAM up up
FastEthernet0/0.5 10.10.0.1 YES NVRAM up up
FastEthernet0/0.10 192.168.0.1 YES NVRAM up up
Serial0/0 unassigned YES NVRAM administratively down down
Serial0/1 unassigned YES NVRAM administratively down down

Router2620XM#debug ccsip all
This may severely impact system performance. Continue? [confirm]
All SIP Call tracing is enabled

y llamamos de 201 al 301

Sent:
INVITE sip:301@192.168.0.11:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.0.1:5060;branch=z9hG4bKA2027
From: <sip:201@192.168.0.11>;tag=9EAA4-3E8
To: <sip:301@192.168.0.11>
Date: Fri, 01 Mar 2002 04:08:36 GMT

The Call Setup Information is:
Call Control Block (CCB) : 0x85973FEC
State of The Call : STATE_ACTIVE
TCP Sockets Used : NO
Calling Number : 201
Called Number : 301
Source IP Address (Sig ): 192.168.0.1
Destn SIP Req Addr:Port : 192.168.0.11:5060
Destn SIP Resp Addr:Port : 192.168.0.11:5060
Destination Name : 192.168.0.11

Router2620XM#debug ccsip call
SIP Call statistics tracing is enabled
Router2620XM#
*Mar 1 04:13:13.071: //12/7A60C1898019/SIP/Call/sipSPICallInfo:
The Call Setup Information is:
Call Control Block (CCB) : 0x8597FEC8
State of The Call : STATE_ACTIVE
TCP Sockets Used : NO
Calling Number : 201
Called Number : 301
Source IP Address (Sig ): 192.168.0.1
Destn SIP Req Addr:Port : 192.168.0.11:5060
Destn SIP Resp Addr:Port : 192.168.0.11:5060
Destination Name : 192.168.0.11

Router2620XM#debug ccsip message
SIP Call messages tracing is enabled
Router2620XM#
*Mar 1 04:15:47.815: //-1/xxxxxxxxxxxx/SIP/Msg/ccsipDisplayMsg:
Sent:
INVITE sip:301@192.168.0.11:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.0.1:5060;branch=z9hG4bK1680D
From: <sip:201@192.168.0.11>;tag=108094-25BF
To: <sip:301@192.168.0.11>
Date: Fri, 01 Mar 2002 04:15:47 GMT
Call-ID: D79C8C45-2C0111D6-8025B2D8-954D4505@192.168.0.1
Supported: 100rel,timer,replaces
Min-SE: 1800
Cisco-Guid: 3606881101-738267606-2149757656-2504869125
User-Agent: Cisco-SIPGateway/IOS-12.x
Allow: INVITE, OPTIONS, BYE, CANCEL, ACK, PRACK, COMET, REFER, SUBSCRIBE, NOTIFY, INFO, UPDATE, REGISTER
CSeq: 101 INVITE
Max-Forwards: 70
Remote-Party-ID: <sip:201@192.168.0.1>;party=calling;screen=no;privacy=off
Timestamp: 1014956147
Contact: <sip:201@192.168.0.1:5060>
Expires: 180
Allow-Events: telephone-event
Content-Type: application/sdp
Content-Length: 235

v=0
o=CiscoSystemsSIP-GW-UserAgent 1951 9231 IN IP4 192.168.0.1
s=SIP Call
c=IN IP4 192.168.0.1
t=0 0
m=
Router2620XM#audio 16906 RTP/AVP 18 19
c=IN IP4 192.168.0.1
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:19 CN/8000
a=ptime:20

SIP Debug Commands

  • debug ccsip all
  • debug ccsip calls
  • debug ccsip events
  • debug ccsip messages
  • debug ccsip preauth
  • debug ccsip states

 

Comments are closed.