[Asterisk-Users] ip2ip 302 response

Jan Baggen jbaggen at ip2.nl
Wed Dec 1 02:15:19 MST 2004


I have 2610 XM with 1 Fastethernet and VIC2-2BRI. Dialin and dialout over 
pstn is ok. Also inbound pstn calls get redirected to Asterisk y.y.y.y  

But I want to setup VOIP sessions with local carrier. I added dial-peer 
40 for this and enabled ip2ip on this peer. Calls will get routed trough
this peer but the remote sip server is never contacted (no activity with
tcpdump) 

My situation:
PSTN -> CISCO -> ASTERISK  OK
ASTERISK -> CISCO -> PSTN  OK
ASTERISK -> CISCO -> VOIP  NOT OK (Got SIP response 302 "Moved Temporarily")

Cisco debug ccsip:
---
Nov 30 20:07:54: //4/5B14408F8008/SIP/Info/sipSPIProcessContactInfo:
Previous Hop y.y.y.y:5060
Nov 30 20:07:54: //-1/xxxxxxxxxxxx/SIP/Event/sipSPIEventInfo: Queued event
from SIP SPI : SIPSPI_EV_CC_CALL_PROCEEDING
Nov 30 20:07:54: //4/5B14408F8008/SIP/Info/ccsip_call_forward: Call forward
target num 0840123456789101
Nov 30 20:07:54: //-1/xxxxxxxxxxxx/SIP/Event/sipSPIEventInfo: Queued event
from SIP SPI : SIPSPI_EV_CC_CALL_FORWARD
Nov 30 20:07:54: //-1/xxxxxxxxxxxx/SIP/Event/sipSPIEventInfo: Queued event
from SIP SPI : SIPSPI_EV_CC_CALL_DISCONNECT
Nov 30 20:07:54: //4/5B14408F8008/SIP/Info/act_spi_call_forward: Performing
call forward
Nov 30 20:07:54:
//4/5B14408F8008/SIP/Info/ccsip_spi_create_call_forward_contact_list: Filter
pots dialpeers
Nov 30 20:07:54:
//4/5B14408F8008/SIP/Info/ccsip_spi_create_call_forward_contact_list: Call
forward dpeer tag: 40
Nov 30 20:07:54:
//4/5B14408F8008/SIP/Info/ccsip_spi_create_call_forward_contact_list: Call
forward dpeer tag: 50
Nov 30 20:07:54:
//4/5B14408F8008/SIP/Info/ccsip_spi_create_call_forward_contact_list: Call
forward dpeer tag: 60
Nov 30 20:07:54: //4/5B14408F8008/SIP/Info/ccsip_spi_add_redirect_contact:
found voip peer, using session target as contact
Nov 30 20:07:54:
//4/5B14408F8008/SIP/Info/ccsip_spi_create_call_forward_contact_list: Call
forward filtered dpeer tag: 40
Nov 30 20:07:54:
//4/5B14408F8008/SIP/Info/ccsip_spi_create_call_forward_contact_list: Number
of redirect contacts added: 1
Nov 30 20:07:54:
//4/5B14408F8008/SIP/Info/ccsip_spi_create_call_forward_contact_list: Number
of redirect contacts added: 1
Nov 30 20:07:54:
//4/5B14408F8008/SIP/Info/ccsip_spi_create_call_forward_contact_list: Number
of redirect contacts added: 1
Nov 30 20:07:54:
//4/5B14408F8008/SIP/Info/ccsip_spi_create_call_forward_contact_list: Number
of redirect contacts added: 1
Nov 30 20:07:54:
//4/5B14408F8008/SIP/Info/ccsip_spi_create_call_forward_contact_list: Number
of redirect contacts added: 1
Nov 30 20:07:54:
//4/5B14408F8008/SIP/Info/ccsip_spi_create_call_forward_contact_list: Number
of redirect contacts added: 1
Nov 30 20:07:54: //4/5B14408F8008/SIP/Transport/sipSPISendInviteResponse:
Sending 3XX Response to the Transport Layer
---

Config:
---
dial-peer voice 10 pots
 description INBOUND CALLS PSTN BRI0
 incoming called-number 2012345..
 no digit-strip
 direct-inward-dial
 port 1/0/0
!
dial-peer voice 20 pots
 description INBOUND CALLS PSTN BRI1
 incoming called-number 2012345..
 no digit-strip
 direct-inward-dial
 port 1/0/1
!
dial-peer voice 30 voip
 destination-pattern 2012345..
 session protocol sipv2
 session target ipv4:y.y.y.y:5060
 session transport udp
 dtmf-relay sip-notify
 codec g711alaw
 no vad
!
dial-peer voice 40 voip
 destination-pattern .+
 redirect ip2ip
 session protocol sipv2
 session target ipv4:x.x.x.x:5060
 session transport udp
 codec g711alaw
 no vad
!
dial-peer voice 50 pots
 tone ringback alert-no-PI
 description OUTBOUND CALLS PSTN BRI0
 preference 5
 destination-pattern .+
 no digit-strip
 port 1/0/0
!
dial-peer voice 60 pots
 tone ringback alert-no-PI
 description OUTBOUND CALLS PSTN BRI1
 preference 5
 destination-pattern .+
 no digit-strip
 port 1/0/1
!
sip-ua 
 no redirection
 retry invite 3
 retry response 3
 retry bye 3
 retry cancel 3
 timers trying 1000
 sip-server ipv4:x.x.x.x:5060
!
---





More information about the asterisk-users mailing list