Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[asterisk-users] passing '302 moved temporarily' back to the SIP provider


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
abhishek.sharma20505 a...
Guest





PostPosted: Wed Jun 22, 2016 8:11 am    Post subject: [asterisk-users] passing '302 moved temporarily' back to the Reply with quote

Satish Barot <satish4asterisk <at> gmail.com> writes:

Quote:

On 5/9/13, Carlos Alvarez <carlos <at> televolve.com> wrote:
Quote:
On Tue, May 7, 2013 at 10:05 PM, Satish Barot
<satish4asterisk <at> gmail.com>wrote:

Quote:


promiscredir= yes in sip.conf should help you achieve your
requirement.
Quote:
Quote:

I haven't been able to get that to work in a similar situation,
except we
Quote:
Quote:
are the provider. It results in the new invite being from the CLID
of the
Quote:
Quote:
original caller, and fails.


--
Carlos Alvarez
TelEvolve
602-889-3003

Completely misunderstood the OP!
Revised solution:
Set promiscredir= no in sip.conf. I assume you land your dids in
[incoming-trunk] and here is the basic dialplan tested on 11 but
should work on 1.8.

[incoming-trunk]
;-- Handle Incoming DIDs. Mine start with 89 and are of 4 digits --;
exten =>
_89XX,1,Noop(RDNIS=${CALLERID(rdnis)}::ANI=${CALLERID(ani)}::DNID=${CALL
ERID(dnid)})
Quote:
same => n,Set(__ORIGCHANNEL=${CHANNEL})
same => n,Dial(SIP/${EXTEN},30)

;-- Dialplan to handle 302 Moved temporarily --;
exten =>
_X..,1,Noop(ORIGCHANNEL=${ORIGCHANNEL}::RDNIS=${CALLERID(rdnis)}::ANI=${
CALLERID(ani)}::DNID=${CALLERID(dnid)}::CHANNELTYPE=${CHANNEL(channeltyp
e)})
Quote:
same => n,ExecIf($["${CALLERID(rdnis)}"!=""]?
ChannelRedirect(${ORIGCHANNEL},back2provider,${EXTEN},1)
Quote:
same => n,Hangup()

[back2provider]
;--Send 302 back to provider --;
exten => _X.,1,Transfer(${EXTEN})
same => n,NoOp(TRANSFERSTATUS=${TRANSFERSTATUS})
same => n,Hangup()

--Satish Barot
Ahmedabad, India

--
_____________________________________________________________________


Hi Satish,

We want to configure following setup:
“A” initiated call to SIP1.
SIP1 redirected CALL to SIP2(first redirection.
SIP 2 return 302, and request a redirect to SIP3(with SIP3 IP in
return packet).
SIP1 receive a redirect from SIP2 with SIP3 IP.
SIP1 makes a call to SIP3.
SIP3 finally helps in landing a call to “B”

All SIP are asterisk servers.

Please help in configuring asterisk to send 302 request back to the
server SIP1.
We are not able to get anywhere.

Regards,
Abhishek
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services