[cisco-voip] REFER call transfer

Yura Monchak yurun at portaone.com
Tue Mar 8 08:10:03 EST 2005


Hi All!

I experience some strange behavior of different cisco AS53XX gateways 
with different IOSes 12.2-12.3, working with REFER call transfer.
Scenario that works:
SIP UA calls another SIP UA, call is is forwarded to AS53XX gateway, 
which according to user interaction and VXML scripts generates the REFER 
message. UA receives REFER message and the call transfer is working.

Scenario that does not work:
The same thing,  but but now SIP UA is another AS53XX (used as pstn2sip 
gw).The problem is that after receiving REFER, AS53XX sends 202 Accepted 
and then does just nothing. I did not manage to find anything that could 
help in the documentation, so if anyone has any ideas, please help.

Cisco says that their gateways should handle REFER call transfer 
normally, but as I said I tried different ways, and none worked. I have 
googled on this question a bit, and found out that people have this 
scenario working okay. Debug is after config.

Here is one scenario I have tried (with PSTN loopback as I do not have 
PSTN connection to my office AS53XX):
cisco config:

Building configuration...

Current configuration : 12375 bytes
!
!
version 12.3
service timestamps debug datetime msec
service timestamps log datetime msec
service password-encryption
!
hostname begemot
!
boot-start-marker
boot system flash
boot system tftp tftp://portacare.portaone.com/c5300-is-mz.123-6a.bin 
255.255.255.255
boot-end-marker
!
!
spe 1/0 1/3
 firmware location system:/ucode/mica_port_firmware
!
!
resource-pool disable
clock timezone EET 2
clock summer-time EEST recurring last Sun Mar 3:00 last Sun Oct 3:00
!
aaa new-model
!
!
aaa authentication login default local
aaa authentication login h323 group radius
aaa authorization exec h323 group radius
aaa accounting connection h323 stop-only group radius
aaa session-id common
ip subnet-zero
ip name-server 193.193.193.100
ip name-server 212.113.40.85
ip name-server 193.110.162.226
!
!
isdn switch-type primary-5ess
!
!
voice service pots
 fax protocol pass-through g711ulaw
!
voice service voip
 fax protocol pass-through g711ulaw
 modem passthrough nse codec g711ulaw
 sip
!
voice class codec 1
 codec preference 1 g723r63
 codec preference 2 g729r8
 codec preference 3 g729br8
 codec preference 4 g723r53
 codec preference 7 g726r16
 codec preference 8 g726r24
 codec preference 9 g726r32
 codec preference 10 g711alaw
 codec preference 11 g711ulaw
 codec preference 12 g723ar53
 codec preference 13 g723ar63
!
!
!
!
!
!
!
!
voice translation-rule 2
 rule 1 /^4274$/ /18774174274/
!
voice translation-rule 55
 rule 1 /\(....\)/ /123\1/
!
voice translation-rule 66
 rule 1 /\(....\)/ /456\1/
!
!
voice translation-profile e164
 translate called 66
!
!
!
controller T1 0
 framing sf
 clock source line primary
 linecode ami
 pri-group timeslots 1-24
!
controller T1 1
 framing sf
 clock source line secondary 1
 linecode ami
 pri-group timeslots 1-24
!
controller T1 2
 framing sf
 linecode ami
 pri-group timeslots 1-24
!
controller T1 3
 framing esf
 linecode b8zs
 pri-group timeslots 1-24
gw-accounting aaa
 acct-template callhistory-detail
!
!
translation-rule 2002
 Rule 0 0013.% 2020#
!
!
translation-rule 2
!
!
!
interface Loopback0
 ip address 10.0.0.1 255.0.0.0
!
interface Ethernet0
 no ip address
 shutdown
!
interface Serial0:23
 no ip address
 isdn switch-type primary-5ess
 isdn protocol-emulate network
 isdn incoming-voice modem
 no fair-queue
 no cdp enable
!
interface Serial1:23
 no ip address
 isdn switch-type primary-5ess
 isdn incoming-voice modem
 no cdp enable
!
interface Serial2:23
 no ip address
 isdn switch-type primary-5ess
 isdn protocol-emulate network
 isdn incoming-voice modem
 no cdp enable
!
interface Serial3:23
 no ip address
 isdn switch-type primary-ni
 isdn incoming-voice modem
 no cdp enable
!
interface FastEthernet0
 ip address 193.28.87.3 255.255.255.0
 duplex half
 speed 100
 h323-gateway voip interface
 h323-gateway voip h323-id gw-kapitan
 h323-gateway voip tech-prefix 1#
!
ip classless
ip route 0.0.0.0 0.0.0.0 193.28.87.1
no ip http server
!
!
!
!
radius-server host 209.121.79.7 auth-port 1813 acct-port 1813 key 7 
03065A051C0E28
radius-server retransmit 5
radius-server timeout 10
radius-server vsa send accounting
radius-server vsa send authentication
call language voice en tftp://portascare.portaone.com/en_tts_multi.tcl
!
!
voice-port 0:D
!
voice-port 1:D
!
voice-port 2:D
!
voice-port 3:D
!
!
!
dial-peer voice 201 pots
 description *** All calls sent to PSTN for transcoding
 huntstop
 destination-pattern 5100017700
 no digit-strip
 port 2:D
!
dial-peer voice 101 voip
 description *** All Incoming VoIP from Cisco GW's
 preference 1
 application call_in
 incoming called-number .
 voice-class codec 1
 session protocol sipv2
 session target sip-server
 dtmf-relay rtp-nte
 fax protocol cisco
!
!
dial-peer voice 202 pots
 incoming called-number 5100017700
 no digit-strip
 direct-inward-dial
!
dial-peer voice 203 voip
 destination-pattern 510.T
 session protocol sipv2
 session target ipv4:62.164.142.7
 dtmf-relay rtp-nte
!
dial-peer voice 204 voip
 huntstop
 incoming called-number 5100017700
 session protocol sipv2
 session target ipv4:62.164.142.7
!
gateway
!
sip-ua
 nat symmetric check-media-src
 aaa username proxy-auth
 timers notify 600
 sip-server dns:demo.portaone.com
!
!
line con 0
line 1 48
line aux 0
 modem InOut
 transport input all
 speed 19200
line vty 0 4
 exec-timeout 0 0
line vty 5 8
 exec-timeout 0 0
!
ntp clock-period 17179463
ntp master 5
ntp server 193.193.193.107
ntp server 194.149.97.21
ntp server 194.149.97.20
ntp server 194.149.97.23
ntp server 194.149.97.25
ntp server 194.149.97.24
end



Here is the debug ccsip all when receiveing REFER:


Mar  8 13:01:14.763: Received:
REFER sip:18667478647702 at 193.28.87.3:5060 SIP/2.0
Via: SIP/2.0/UDP 
62.164.142.7;branch=z9hG4bK34a1.277910af2c105374441acbe74bf32de2.0
Via: SIP/2.0/UDP  62.164.142.3:5060
From: <sip:5100017700 at 62.164.142.7>;tag=3F07309C-2418
To: <sip:18667478647702 at 193.28.87.3>;tag=BF30D60C-10AD
Date: Tue, 08 Mar 2005 12:59:14 GMT
Call-ID: EFC0250A-8F0811D9-847BE928-1E371275 at 193.28.87.3
Refer-To: sip:5101234776 at 62.164.142.7
Referred-By: <sip:5100017700 at 62.164.142.3>
User-Agent: Cisco-SIPGateway/IOS-12.x
Max-Forwards: 5
Timestamp: 1110286755
CSeq: 102 REFER
Contact: <sip:5100017700 at 62.164.142.3:5060>
Content-Length: 0


Mar  8 13:01:14.767: HandleUdpSocketReads :Msg enqueued for SPI with 
IPaddr: 62.164.142.7:5060
Mar  8 13:01:14.767: ****Found CCB in UAC table

Mar  8 13:01:14.767: CCSIP-SPI-CONTROL:  act_active_new_message
Mar  8 13:01:14.767: CCSIP-SPI-CONTROL:  sact_active_new_message_request
Mar  8 13:01:14.767: CCSIP-SPI-CONTROL:  Converting TimeZone EET to SIP 
default timezone = GMT
Mar  8 13:01:14.767: sip_stats_method
Mar  8 13:01:14.767: CCSIP-SPI-CONTROL:  sipSPIReferIsValid
Mar  8 13:01:14.767: transfer digits: 5101234776

Mar  8 13:01:14.767: CCSIP-SPI-CONTROL:  sipInitCallTransfer
Mar  8 13:01:14.771:  Queued event from SIP SPI : SIPSPI_EV_SEND_MESSAGE
Mar  8 13:01:14.771: sip_stats_status_code
Mar  8 13:01:14.771: 0x62C178B8 : State change from (STATE_ACTIVE, 
SUBSTATE_NONE)  to (STATE_RECD_XFER, SUBSTATE_NONE)
Mar  8 13:01:14.775: Sent:
SIP/2.0 202 Accepted
Via: SIP/2.0/UDP 
62.164.142.7;branch=z9hG4bK34a1.277910af2c105374441acbe74bf32de2.0,SIP/2.0/UDP  
62.164.142.3:5060
From: <sip:5100017700 at 62.164.142.7>;tag=3F07309C-2418
To: <sip:18667478647702 at 193.28.87.3>;tag=BF30D60C-10AD
Date: Tue, 08 Mar 2005 13:01:14 GMT
Call-ID: EFC0250A-8F0811D9-847BE928-1E371275 at 193.28.87.3
Server: Cisco-SIPGateway/IOS-12.x
Timestamp: 1110286755
CSeq: 102 REFER
Content-Length: 0



Mar  8 13:01:14.831: Received:
ACK sip:18667478647702 at 193.28.87.3:5060 SIP/2.0
Via: SIP/2.0/UDP 
62.164.142.7;branch=z9hG4bK64a1.8e7552d836f93813985126094b54eeaf.0
Via: SIP/2.0/UDP  62.164.142.3:5060
From: <sip:5100017700 at 62.164.142.7>;tag=3F07309C-2418
To: <sip:18667478647702 at 193.28.87.3>;tag=BF30D60C-10AD
Date: Tue, 08 Mar 2005 12:59:14 GMT
Call-ID: EFC0250A-8F0811D9-847BE928-1E371275 at 193.28.87.3
Max-Forwards: 5
Content-Length: 0
CSeq: 101 ACK



Mar  8 13:01:14.831: HandleUdpSocketReads :Msg enqueued for SPI with 
IPaddr: 62.164.142.7:5060
Mar  8 13:01:14.831: ****Found CCB in UAC table

Mar  8 13:01:14.831: CCSIP-SPI-CONTROL:  sact_xfer_new_message_request
Mar  8 13:01:14.835: CCSIP-SPI-CONTROL:  Converting TimeZone EET to SIP 
default timezone = GMT
Mar  8 13:01:14.835: last method and CSEQ:109 102
Mar  8 13:01:14.835: INVITE CSEQ: 101
Mar  8 13:01:14.835: recvd method and CSEQ: 110 101
Mar  8 13:01:14.835: sipSPICheckRequest: CheckRequest fail on method 110 
error code: 2 and status: 500

Mar  8 13:01:14.835: CCSIP-SPI-CONTROL:  sact_xfer_new_message_request : 
Check request failed


And then just nothing happens. If you have any ideas why it does not 
initiate the transfer I would really appreciate your comments.
Thanks.

--
Yura Monchak





More information about the cisco-voip mailing list