[Freeswitch-users] how to handle returned sip 302 dialplan
Chav Paskov
chavpaskov at shaw.ca
Sat Dec 13 12:24:25 PST 2008
Good morning everybody,
I would like to know what would be the best way to process the info in
returned back sip 302 message.
Let me be a bit more specific.
i'm sending INVITE as pasted below to z.z.z.z
*INVITE* sip:17402740539 at z.z.z.z:5000 SIP/2.0^M
Via: SIP/2.0/UDP z.z.z.z:5000;branch=z9hG4bK215b.e6ae7e74.0^M
Via: SIP/2.0/UDP
y.y.y.y:5060;branch=z9hG4bKaa6257694041475e0659eeb0019a0bbc^M
*From: "Bob Caller" <sip:6144102508 at y.y.y.y:5060>;tag=CCC7.1F37^M
To: <sip:17402740539 at x.x.x.x:5060>^M
*Call-ID: 15821337-3367080415-112396 at msc-01.voice.example.net^M
CSeq: 1 INVITE^M
Contact: <sip:6144102508 at y.y.y.y:5060>^M
Content-Type: application/sdp^M
Max-forwards: 69^M
Session-expires: 3600;Refresher=uac^M
Supported: timer^M
Content-Length: 200^M
^M
1192 v=0^M
o=iserver 16123 16124 IN IP4 y.y.y.y^M
s=sip call^M
c=IN IP4 64.112.188.81^M
t=0 0^M
m=audio 55824 RTP/AVP 18 0 101^M
a=sendrecv^M
a=fmtp:101 0-15^M
a=rtpmap:101 telephone-event/8000^M
a=ptime:20^M
the reply from z.z.z.z back is sip 302
SIP/2.0 *302 Moved Temporarily*^M
Via: SIP/2.0/UDP z.z.z.z:5000;branch=z9hG4bK215b.e6ae7e74.0^M
Via: SIP/2.0/UDP
y.y.y.y:5060;branch=z9hG4bKaa6257694041475e0659eeb0019a0bbc^M
From: "Bob Caller" <sip:6144102508 at y.y.y.y:5060>;tag=CCC7.1F37^M
To: <sip:17402740539 at x.x.x.x:5060>;tag=1087415105^M
Call-ID: 15821337-3367080415-112396 at msc-01.voice.example.net^M
CSeq: 1 INVITE^M
*Contact: <sip:2145551234 at 64.112.188.84>;npdi^M
*User-Agent: eXosip/3.1.0^M
Content-Length:
my question is:
Is it possible to send the call to z.z.z.z , receive the SIP 302 ,
process the data in Contact field and redirect to the new destination
contained in *Contact: <sip:2145551234 at 64.112.188.84>;npdi^M
*without closing the session.
i red something about <action application="set"
data="continue_on_fail=true"/> but i'm not sure how to use it.
Any ideas on this matter will be highly appreciated.
Best Regards
Chav
More information about the FreeSWITCH-users
mailing list