<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>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
+sip:+cid@54.76.30.63.<br>
Try to add some xlogs in the PAID route to check if it is really
called.<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/11/2014 08:15 PM, Sahil Gupta wrote:<br>
</div>
<blockquote
cite="mid:CAAJFTBe1tPMR9GjJTN0VmppZ1WT2eY0xUo-pePAxcCUYNj-Rgw@mail.gmail.com"
type="cite">
<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">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">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 class="gmail_signature">Thanks,
<div>Sahil</div>
</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>