<div dir="ltr"><div>Thanks again Alex, pretty clear - I suppose.<br><br></div>BTW, Daniel - one point in your reply to Alex caught my attention "I don't allow client EPs to do redirects"... perhaps this is very simply, but how is this prohibited ?<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 3, 2015 at 11:08 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 18:31:13 Alex Balashov wrote:<br>
> >                  $var(contact) = $(var(contact){re.subst,/^<(sip:\+?<br>
> ><br>
> > [0-9]+@.*)>$/\1/});<br>
><br>
> I would recommend, from a best-practical perspective, not doing this<br>
> substitution, but instead using transformations[1] to extract the URI.<br>
> The Contact header is a "name-address pair", so you can extract the URI<br>
> component this way:<br>
><br>
>     $var(contact) = $(T_rpl($ct){nameaddr.uri});<br>
<br>
</span>[Multiple valid reasons.]<br>
<br>
Thanks Alex, I'll take your advice on this.<br>
<br>
BTW I don't allow client endpoints to do redirects, I only accept this from my<br>
redirecters so I'm not concerned about strange headers not handled by my<br>
subst.<br>
<span class="im HOEnZb"><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>
<br>
</span><div class="HOEnZb"><div class="h5">_______________________________________________<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>