<div dir="ltr"><div><div><div><div>Thanks Daniel, couldn't have asked for more.<br><br></div>Daniel and Alex, one further question... (theoretical, since I'm yet to try this out) -<br><br></div>Would Kamilio also take care to send out the ACK to end the trasaction with B-party, and continue the relayed transaction with C-party ?<br></div>Is this, in effect same as serial forking ?<br><br></div>Apologies for questions that are perhaps more to do with SIP, than Kamilio itself.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 3, 2015 at 10:51 PM, Daniel Tryba <span dir="ltr"><<a href="mailto:d.tryba@pocos.nl" target="_blank">d.tryba@pocos.nl</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Tuesday 03 March 2015 17:56:45 Jayanth Acharya wrote:<br>
> Would like to know if Kamilio (in it's sip-proxy role) could be configured<br>
> to somehow take note of the 'Contact:' header of a 302 response from<br>
> B-party, to forward the INVITE to C-party (specified by the updated Contact<br>
> URI) ?<br>
<br>
</span>No problem, if you take a look at the "default" config it will have a<br>
failure_route[MANAGE_FAILURE] and a WITH_BLOCK3XX define commented.<br>
The failure route will normally block 302:<br>
<br>
        # block call redirect based on 3xx replies.<br>
        if (t_check_status("3[0-9][0-9]")) {<br>
                send_reply("404","Not found BLOCK3XX");<br>
                exit;<br>
        }<br>
<br>
<br>
If you replace (or insert before) above code something like:<br>
<br>
        if (t_check_status("302")<br>
        {<br>
                $var(contact) = $T_rpl($ct);<br>
                $var(contact) = $(var(contact){re.subst,/^<(sip:\+?<br>
[0-9]+@.*)>$/\1/});<br>
<br>
                $du=$null;<br>
                $ru=$var(contact);<br>
<br>
                route(RELAY);<br>
                exit;<br>
        }<br>
<br>
You have your case solved.<br>
<br>
BTW you might want to do additonal checks when billing is concerned.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
<br>
Telefoon: 088 0100 700<br>
Sales: <a href="mailto:sales@pocos.nl">sales@pocos.nl</a> | Service: <a href="mailto:servicedesk@pocos.nl">servicedesk@pocos.nl</a><br>
<a href="http://www.pocos.nl/" target="_blank">http://www.pocos.nl/</a> | Croy 9c, 5653 LC Eindhoven | Kamer van Koophandel<br>
17097024<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</div></div></blockquote></div><br></div>