[asterisk-commits] schmidts: branch schmidts/unleash-the-beast r340714 - /team/schmidts/unleash-...
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Thu Oct 13 01:51:44 CDT 2011
Author: schmidts
Date: Thu Oct 13 01:51:40 2011
New Revision: 340714
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=340714
Log:
also set the route-set on a 181.
Modified:
team/schmidts/unleash-the-beast/channels/chan_sip.c
Modified: team/schmidts/unleash-the-beast/channels/chan_sip.c
URL: http://svnview.digium.com/svn/asterisk/team/schmidts/unleash-the-beast/channels/chan_sip.c?view=diff&rev=340714&r1=340713&r2=340714
==============================================================================
--- team/schmidts/unleash-the-beast/channels/chan_sip.c (original)
+++ team/schmidts/unleash-the-beast/channels/chan_sip.c Thu Oct 13 01:51:40 2011
@@ -19536,6 +19536,13 @@
case 181: /* Call Is Being Forwarded */
if (!req->ignore && (p->invitestate != INV_CANCELLED) && sip_cancel_destroy(p))
ast_log(LOG_WARNING, "Unable to cancel SIP destruction. Expect bad things.\n");
+ /* Store Route-set from provisional SIP responses so
+ * early-dialog request can be routed properly
+ * */
+ parse_ok_contact(p, req);
+ if (!reinvite) {
+ build_route(p, req, 1);
+ }
if (!req->ignore && p->owner) {
struct ast_party_redirecting redirecting;
struct ast_set_party_redirecting update_redirecting;
More information about the asterisk-commits
mailing list