<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix"><tt>I was pointing to the way you are
building the header in append_hf() function.<br>
<br>
Best regards,<br>
</tt>
<pre class="moz-signature" cols="72">Răzvan Crainea
OpenSIPS Solutions
<a class="moz-txt-link-abbreviated" href="http://www.opensips-solutions.com">www.opensips-solutions.com</a></pre>
On 11/12/2014 11:35 AM, Sahil Gupta wrote:<br>
</div>
<blockquote
cite="mid:CAAJFTBeckzi47ZNV7CigAqN3vfnyMVGpL9ckwgQX0tfhK9MSSg@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>Hi Razvan,</div>
<div>Thanks for getting back to me.</div>
<div><br>
</div>
<div>The code was:</div>
$var(from)='sip:'+$var(cid)+'@<a moz-do-not-send="true"
href="http://54.76.30.63">54.76.30.63</a>';<br>
<div><br>
</div>
<div>I modified it to become:</div>
<div>var(from)='sip:+'+$var(cid)+'@<a moz-do-not-send="true"
href="http://54.76.30.63">54.76.30.63</a>';<br>
</div>
<div><br>
</div>
<div>The PAID function is definately being called as our far end
carrier receives the P-Asserted-ID but they don't see a "+"
before the CLI unless the caller sends it.</div>
<div><br>
</div>
<div>Thanks,</div>
<div>Sahil</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On 12 November 2014 20:09, Răzvan
Crainea <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:razvan@opensips.org" target="_blank">razvan@opensips.org</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<div><tt>Hi, Sahil!<br>
<br>
Are you sure the PAID function is called at all? The
PAI header you are adding contains an invalid URI, it
is something like +<a moz-do-not-send="true"
href="mailto:sip%3A%2Bcid@54.76.30.63"
target="_blank">sip:+cid@54.76.30.63</a>.<br>
Try to add some xlogs in the PAID route to check if it
is really called.<br>
<br>
Best regards,<br>
</tt>
<pre cols="72">Răzvan Crainea
OpenSIPS Solutions
<a moz-do-not-send="true" href="http://www.opensips-solutions.com" target="_blank">www.opensips-solutions.com</a></pre>
<div>
<div class="h5"> On 11/11/2014 08:15 PM, Sahil Gupta
wrote:<br>
</div>
</div>
</div>
<blockquote type="cite">
<div>
<div class="h5">
<div dir="ltr">Hi,
<div>I'm trying to add P-Asserted-ID by default on
one of our OpenSIPS deployments.</div>
<div><br>
</div>
<div>In my config file I have:</div>
<div>
<div>
$var(from)='sip:+'+$var(cid)+'@<a
moz-do-not-send="true"
href="http://54.76.30.63" target="_blank">54.76.30.63</a>';</div>
<div><br>
</div>
<div>
<div>
$var(from)='sip:+'+$var(cid)+'@<a
moz-do-not-send="true"
href="http://54.76.30.63" target="_blank">54.76.30.63</a>';</div>
</div>
<div><br>
</div>
<div>
<div>route[PAID]{</div>
<div> if (is_present_hf("Remote-Party-ID")) {</div>
<div> remove_hf("Remote-Party-ID");</div>
<div> }</div>
<div> if
(is_present_hf("P-Asserted-Identity")) {</div>
<div> remove_hf("P-Asserted-Identity");</div>
<div> }</div>
<div> if (is_present_hf("Privacy")) {</div>
<div> remove_hf("Privacy");</div>
<div> }</div>
<div> append_hf("P-Asserted-Identity:
<+$var(from)>\r\n");</div>
<div>}</div>
</div>
<div><br>
</div>
<div>However, unless the CID is set with a + it
doesn't seem to automatically prefix the "+"
sign.</div>
<div><br>
</div>
-- <br>
<div>Thanks,
<div>Sahil</div>
</div>
</div>
</div>
<br>
<fieldset></fieldset>
<br>
</div>
</div>
<pre>_______________________________________________
Users mailing list
<a moz-do-not-send="true" href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a moz-do-not-send="true" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</div>
<br>
_______________________________________________<br>
Users mailing list<br>
<a moz-do-not-send="true"
href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a moz-do-not-send="true"
href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users"
target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br>
</blockquote>
</div>
<br>
<br clear="all">
<div><br>
</div>
-- <br>
<div class="gmail_signature">Thanks,
<div>Sahil</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</body>
</html>