asterisk call redirect SIP 302 "Moved Temporarily"

egotom
Joined: Mon 23 of Nov, 2009

asterisk call redirect SIP 302 "Moved Temporarily"

Posted:Mon 23 of Nov, 2009 (20:56 UTC)
Hello
the issue:
I want to redirect the incoming call to the SIP number (registered on * ) to cell phone. But I want to keep CID number.

What I have done so far:
1. sjphone test -option Call Forward works well - tcpdump shows:
SIP message:"302 Moved Temporarily" and the cell phone is ringging with the desired number presentation.

2. No I want to do this on asterisk, how? The information I have collected tells that I need to do a simple configuration:

sip.conf
[general]
srvlookup=yes
promiscredir=yes
canreinvite=yes

register=usernameassword@sip.XX.pl:5060/1234567

[operator_peer]
type=peer
host=sip.XX.pl
username=##username##
secret=*******
fromuser=##username##
fromdomain=sip.XX.pl
qualify=yes
context=incomming
insecure=very
promiscredir=yes

extensions.conf
[incomming]
exten => 1234567,1,Dial(SIP/cell_number)
exten => 1234567,2,Hangup


However it doesn't work. What to do to get:
forwarding now
SIP GOT 302 redirect message