VoIP Mailing List Archives
Mailing list archives for the VoIP community |
|
View previous topic :: View next topic |
Author |
Message |
chavpaskov at shaw.ca Guest
|
Posted: Sat Dec 13, 2008 3:27 pm Post subject: [Freeswitch-users] how to handle returned sip 302 dialplan |
|
|
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@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@y.y.y.y:5060>;tag=CCC7.1F37^M
To: <sip:17402740539@x.x.x.x:5060>^M
*Call-ID: 15821337-3367080415-112396@msc-01.voice.example.net^M
CSeq: 1 INVITE^M
Contact: <sip:6144102508@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@y.y.y.y:5060>;tag=CCC7.1F37^M
To: <sip:17402740539@x.x.x.x:5060>;tag=1087415105^M
Call-ID: 15821337-3367080415-112396@msc-01.voice.example.net^M
CSeq: 1 INVITE^M
*Contact: <sip:2145551234@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@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
_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org |
|
Back to top |
|
|
brian at freeswitch.org Guest
|
Posted: Sat Dec 13, 2008 4:31 pm Post subject: [Freeswitch-users] how to handle returned sip 302 dialplan |
|
|
Chav, Once the 302 is received by FreeSWITCH it will follow it to the contact listed in the 302. What else are you needing to do?
/b
On Dec 13, 2008, at 2:24 PM, Chav Paskov wrote:
Quote: | *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: <[url=sip:2145551234@64.112.188.84]sip:2145551234@64.112.188.84[/url]>;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
|
|
|
Back to top |
|
|
chavpaskov at shaw.ca Guest
|
Posted: Sat Dec 13, 2008 7:40 pm Post subject: [Freeswitch-users] how to handle returned sip 302 dialplan |
|
|
Brian West wrote:
Quote: | Chav,
Once the 302 is received by FreeSWITCH it will follow it to the
contact listed in the 302. What else are you needing to do?
/b
On Dec 13, 2008, at 2:24 PM, Chav Paskov wrote:
Quote: | *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@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
|
------------------------------------------------------------------------
_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
| Thanks Brian,
probably i should have explained it in more details.
this whole thing started as an attempt to implement lata ocn /local
number portability/ instead of pure per destination routing.
At the moment i have a access to a service provider who does
"dipping" and returns the LATA OCN data associated with any dialed
destination number. it is returned as Contact: and Content-length:
fields in 302 message.
in other words:
1. i'm sending to this provider let say - 2025556666 as a destination
number.
2. they do the dipping and will return to me either the new dest # if
2025556666 has been ported or if it was not
in content-length field they'll send lata, ocn and state and 10 digits
number.
3. once received i have to compare the received lata , ocn and state
date with a compiled rate deck / blended from 5 different vendors/
and pick the lowest rate - effectively building LCR based on LATA OCN
STATE info.
Hope this will help to clear the picture.
Regards
Chav
_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org |
|
Back to top |
|
|
chavpaskov at shaw.ca Guest
|
Posted: Mon Dec 15, 2008 11:19 am Post subject: [Freeswitch-users] how to handle returned sip 302 dialplan |
|
|
Chav Paskov wrote:
Quote: | Brian West wrote:
Quote: | Chav,
Once the 302 is received by FreeSWITCH it will follow it to the
contact listed in the 302. What else are you needing to do?
/b
On Dec 13, 2008, at 2:24 PM, Chav Paskov wrote:
Quote: | *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@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
| ------------------------------------------------------------------------
_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
| Thanks Brian,
probably i should have explained it in more details.
this whole thing started as an attempt to implement lata ocn /local
number portability/ instead of pure per destination routing.
At the moment i have a access to a service provider who does
"dipping" and returns the LATA OCN data associated with any dialed
destination number. it is returned as Contact: and Content-length:
fields in 302 message.
in other words:
1. i'm sending to this provider let say - 2025556666 as a destination
number.
2. they do the dipping and will return to me either the new dest # if
2025556666 has been ported or if it was not
in content-length field they'll send lata, ocn and state and 10 digits
number.
3. once received i have to compare the received lata , ocn and state
date with a compiled rate deck / blended from 5 different vendors/
and pick the lowest rate - effectively building LCR based on LATA OCN
STATE info.
Hope this will help to clear the picture.
Regards
Chav
_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
|
_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org |
|
Back to top |
|
|
|
|
|
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
|