[OpenSIPS-Users] P-Asserted-ID

Sahil Gupta sguptaau at gmail.com
Wed Nov 12 11:33:34 CET 2014


The + before the $var(from) was removed.

On 12 November 2014 21:31, Răzvan Crainea <razvan at opensips.org> wrote:

>  I was pointing to the way you are building the header in append_hf()
> function.
>
> Best regards,
>
> Răzvan Crainea
> OpenSIPS Solutionswww.opensips-solutions.com
>
> On 11/12/2014 11:35 AM, Sahil Gupta wrote:
>
>  Hi Razvan,
> Thanks for getting back to me.
>
>  The code was:
> $var(from)='sip:'+$var(cid)+'@54.76.30.63';
>
>  I modified it to become:
> var(from)='sip:+'+$var(cid)+'@54.76.30.63';
>
>  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.
>
>  Thanks,
> Sahil
>
> On 12 November 2014 20:09, Răzvan Crainea <razvan at opensips.org> wrote:
>
>>  Hi, Sahil!
>>
>> 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 at 54.76.30.63.
>> Try to add some xlogs in the PAID route to check if it is really called.
>>
>> Best regards,
>>
>> Răzvan Crainea
>> OpenSIPS Solutionswww.opensips-solutions.com
>>
>>  On 11/11/2014 08:15 PM, Sahil Gupta wrote:
>>
>>  Hi,
>> I'm trying to add P-Asserted-ID by default on one of our OpenSIPS
>> deployments.
>>
>>  In my config file I have:
>>                  $var(from)='sip:+'+$var(cid)+'@54.76.30.63';
>>
>>                  $var(from)='sip:+'+$var(cid)+'@54.76.30.63';
>>
>>  route[PAID]{
>>  if (is_present_hf("Remote-Party-ID")) {
>>     remove_hf("Remote-Party-ID");
>>  }
>>  if (is_present_hf("P-Asserted-Identity")) {
>>     remove_hf("P-Asserted-Identity");
>>  }
>>  if (is_present_hf("Privacy")) {
>>     remove_hf("Privacy");
>>  }
>>  append_hf("P-Asserted-Identity: <+$var(from)>\r\n");
>> }
>>
>>  However, unless the CID is set with a + it doesn't seem to
>> automatically prefix the "+" sign.
>>
>>  --
>> Thanks,
>> Sahil
>>
>>
>>  _______________________________________________
>> Users mailing listUsers at lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>>
>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.opensips.org
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>>
>
>
>  --
> Thanks,
> Sahil
>
>
> _______________________________________________
> Users mailing listUsers at lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>


-- 
Thanks,
Sahil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20141112/35ac9970/attachment.htm>


More information about the Users mailing list