[Asterisk-Users] 302 redirection issue

Dave ddx66 at yahoo.com
Tue May 24 10:45:01 MST 2005


I have the following issue:

1) Call comes in from PSTN to Asterisk (IP A) and
Asterisk forwards call to a SIP Proxy (IP  B) 
2) SIP Proxy (SER) forwards the call to a registered
user. User does not answer and Call Forwarding is
turned on for the user and the number to forward the
call is a PSTN number. 
3) After a specific timeout, SER has to forward the
call to the "forwarded" PSTN number BUT cannot send
the invite back to Asterisk  (LOOP DETECTED
condition). Therefore, I ask ser to send a 302
REDIRECT back to Asterisk with the contact uri of
sip:PSTN-NUMBER at ASTERISK-IP
4) Asterisk complains that ASTERISK-IP is "no such
host" and does not foward call. 

Any suggestions will be appreciated. Call flow is:
-- Now forwarding Zap/21-1 to
'SIP/<PSTN-NUMBER>@ASTERISK-IP,
sip:<PSTN-NUMBER>@DOMAIN-OF-SIP-SERVER' (thanks to
SIP/SIP-SERVER-DOMAIN-ab9c)
May 24 20:11:25 WARNING[1112841136]: chan_sip.c:1375
create_addr: No such host: <ASTERISK-IP>, sip
Destroying call
'06b42dea01cee58a636aaef940598225 at ASTERISK-IP>'
May 24 20:11:25 NOTICE[1112841136]: app_dial.c:232
wait_for_answer: Unable to create local channel for
call forward to 'SIP/<PSTN-NUMNER>@<ASTERISK-IP>,
sip:'PSTN-NUMBER at SIP-SERVER-DOMAIN'
  == Everyone is busy/congested at this time



I did define 

promiscredir=yes

and also created a section with Asterisk's OWN IP
Address in sip.conf

[Asterisk-IP]
type=friend
insecure=very
promiscredir=yes






302 redirect back to Asterisk. Before that it rewrites
the URI hostname with the IP of Asterisk. 
4) Asterisk get the 302 redirect and then tries to
dial the number but complains of 


		
__________________________________ 
Yahoo! Mail 
Stay connected, organized, and protected. Take the tour: 
http://tour.mail.yahoo.com/mailtour.html 




More information about the asterisk-users mailing list