so I tried to use the dialplan module to rewrite this ruri like this:<div> dp_translate("$avp(s:ntrunkid)","$ruri.user/$ruri.user");<br></div><div><br></div><div>With a rule like this</div><div><span class="Apple-style-span" style="font-family: 'courier new', monospace;"><br>
</span></div><div><div><span class="Apple-style-span" style="font-family: 'courier new', monospace;">+----+------+----+----------+-----------------+-----------+-----------------+----------+-------+</span></div><div>
<span class="Apple-style-span" style="font-family: 'courier new', monospace;">| id | dpid | pr | match_op | match_exp | match_len | subst_exp | repl_exp | attrs |</span></div><div><span class="Apple-style-span" style="font-family: 'courier new', monospace;">+----+------+----+----------+-----------------+-----------+-----------------+----------+-------+</span></div>
<div><span class="Apple-style-span" style="font-family: 'courier new', monospace;">| 7 | 21 | 50 | 1 | ^(1[0-9]{10}).+ | 0 | ^(1[0-9]{10}).+ | \1 | | </span></div><div><span class="Apple-style-span" style="font-family: 'courier new', monospace;">+----+------+----+----------+-----------------+-----------+-----------------+----------+-------+</span></div>
<div><br></div><div><br></div>Calls now fail with a 500 Overlapping request. SIP Trace shows me receving a 200 OK and it not being relayed I don' think..</div><div><br></div><div>Any ideas?</div><div>-Brett<br><div class="gmail_quote">
On Fri, Jun 26, 2009 at 2:06 PM, Brett Nemeroff <span dir="ltr"><<a href="mailto:brett@nemeroff.com">brett@nemeroff.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
All,<div>I've got a customer that is sending me calls with an RURI like this:</div><div><span style="font-family:'Lucida Grande';font-size:11px"> <a>sip:13155551207;npdi=yes;rn=13155550000@1.2.3.4</a></span><br>
</div><div><span style="font-family:'Lucida Grande';font-size:11px"><br></span></div><div><span style="font-family:'Lucida Grande';font-size:11px">when I use anything that parses the RURI like $rU, it shows $rU=sip:131555551207;npdi=yes;rn=13155550000</span></div>
<div><span style="font-family:'Lucida Grande';font-size:11px"><br></span></div><div><span style="font-family:'Lucida Grande';font-size:11px">Which is exactly everything from sip: to the first @ sign. The customer isn't able to change this RURI (it's coming from their downstream)</span></div>
<div><span style="font-family:'Lucida Grande';font-size:11px"><br></span></div><div><span style="font-family:'Lucida Grande';font-size:11px">What can I do to properly have $rU parse this up? </span></div>
<div><span style="font-family:'Lucida Grande';font-size:11px"><br></span></div><div><span style="font-family:'Lucida Grande';font-size:11px">Thanks,</span></div>
<div><span style="font-family:'Lucida Grande';font-size:11px">Brett</span></div><font color="#888888"><div><span style="font-family:'Lucida Grande';font-size:11px"><br></span></div>
</font></blockquote></div><br></div>