Hello,
How do I select the value of the privacy parameter in the Remote-Party-ID header?
Remote-Party-ID: "John Doe" sip:jdoe@foo.com;party=calling;id;privacy=full;screen=yes
The following doesn't work, and I believe because it's not a valid select class: $sel(@hf_value.remote_party_id.privacy)
I'm using kamailio 4.1.
Regards,
Grant
Hello; you can use "$hdr()" to get header. Here is short tuts for it
https://www.osso.nl/blog/callerid-in-rpid-opensips-kamailio/
-- View this message in context: http://sip-router.1086192.n5.nabble.com/Get-value-of-RPID-privacy-param-tp14... Sent from the Users mailing list archive at Nabble.com.
This looks promising! I was doing exactly this!
I'm trying to do a correct translation of anonymous caller id from source to destination, where the source is one of our customers and the destination our carriers. Some of our carriers do not support setting the privacy param in the RPID, so I have to change the from header to anonymous@anonymous.invalid.
Is there a module that does exactly this? Because I'm implementing this in the cfg, but it would be easier and I guess better if there is a module that could do exactly this.
-----Original Message----- From: sr-users [mailto:sr-users-bounces@lists.sip-router.org] On Behalf Of ycaner Sent: Monday, January 18, 2016 9:28 AM To: sr-users@lists.sip-router.org Subject: Re: [SR-Users] Get value of RPID privacy param
Hello; you can use "$hdr()" to get header. Here is short tuts for it
https://www.osso.nl/blog/callerid-in-rpid-opensips-kamailio/
-- View this message in context: http://sip-router.1086192.n5.nabble.com/Get-value-of-RPID-privacy-param-tp14... Sent from the Users mailing list archive at Nabble.com.
_______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Hello,
for updating the From/To headers, look at uac module docs -- it has some functions for this purpose.
Cheers, Daniel
On 18/01/16 09:46, Grant Bagdasarian wrote:
This looks promising! I was doing exactly this!
I'm trying to do a correct translation of anonymous caller id from source to destination, where the source is one of our customers and the destination our carriers. Some of our carriers do not support setting the privacy param in the RPID, so I have to change the from header to anonymous@anonymous.invalid.
Is there a module that does exactly this? Because I'm implementing this in the cfg, but it would be easier and I guess better if there is a module that could do exactly this.
-----Original Message----- From: sr-users [mailto:sr-users-bounces@lists.sip-router.org] On Behalf Of ycaner Sent: Monday, January 18, 2016 9:28 AM To: sr-users@lists.sip-router.org Subject: Re: [SR-Users] Get value of RPID privacy param
Hello; you can use "$hdr()" to get header. Here is short tuts for it
https://www.osso.nl/blog/callerid-in-rpid-opensips-kamailio/
-- View this message in context: http://sip-router.1086192.n5.nabble.com/Get-value-of-RPID-privacy-param-tp14... Sent from the Users mailing list archive at Nabble.com.
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
On Mon, Jan 18, 2016 at 08:46:44AM +0000, Grant Bagdasarian wrote:
I'm trying to do a correct translation of anonymous caller id from source to destination, where the source is one of our customers and the destination our carriers. Some of our carriers do not support setting the privacy param in the RPID, so I have to change the from header to anonymous@anonymous.invalid.
Nobody should support/use RPID, that idea expired 15 years ago. See the PAI/Privacy RFCs.
https://tools.ietf.org/html/rfc5379 contains some info about how to implement privacy calling parties.
On 01/18/2016 04:55 AM, Daniel Tryba wrote:
Nobody should support/use RPID, that idea expired 15 years ago. See the PAI/Privacy RFCs.
I certainly agree in principle.
Practically, it was one of those cases where the market adopted it far ahead of the standards track, so "de facto" it is unfortunately still in use far more commonly than we'd like.
On 18/01/16 13:29, Alex Balashov wrote:
On 01/18/2016 04:55 AM, Daniel Tryba wrote:
Nobody should support/use RPID, that idea expired 15 years ago. See the PAI/Privacy RFCs.
I certainly agree in principle.
Practically, it was one of those cases where the market adopted it far ahead of the standards track, so "de facto" it is unfortunately still in use far more commonly than we'd like.
But both are not spread enough anyhow, so one needs to replace From with anonymous along with RPID/PAI/Privacy headers to cover all possibilities :-)
Cheers, Daniel
Hello,
also the 'tobody' and 'params' transformations can be handy for getting the proper values from the header body:
https://www.kamailio.org/wiki/cookbooks/4.3.x/transformations#tobodyparams
Cheers, Daniel
On 18/01/16 09:28, ycaner wrote:
Hello; you can use "$hdr()" to get header. Here is short tuts for it
https://www.osso.nl/blog/callerid-in-rpid-opensips-kamailio/
-- View this message in context: http://sip-router.1086192.n5.nabble.com/Get-value-of-RPID-privacy-param-tp14... Sent from the Users mailing list archive at Nabble.com.
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Hello; UAC module is more useful Because when change From or To uri Some replies are changed so Uac module can restore it so there is no problem for SBC. i had a big problem about it and UAC module was solved it.
Hello Daniel.
There is a problem about From uri changes. When 2 times changes it in a transaction , it appends fromuri new fromuri not override it. Only 1 time it can be changed.
Cheers.
18.01.2016 11:08 tarihinde Daniel-Constantin Mierla-6 [via SIP Router] yazdı:
Hello,
also the 'tobody' and 'params' transformations can be handy for getting
the proper values from the header body:
https://www.kamailio.org/wiki/cookbooks/4.3.x/transformations#tobodyparams
Cheers,
Daniel
On 18/01/16 09:28, ycaner wrote:
> Hello;
> you can use "$hdr()" to get header. Here is short tuts for it
>
> https://www.osso.nl/blog/callerid-in-rpid-opensips-kamailio/ >
>
>
> --
> View this message in context: http://sip-router.1086192.n5.nabble.com/Get-value-of-RPID-privacy-param-tp14... > Sent from the Users mailing list archive at Nabble.com.
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> [hidden email]
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
-- Daniel-Constantin Mierla
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda Book: SIP Routing With Kamailio - http://www.asipto.com http://miconda.eu
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
[hidden email]
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
If you reply to this email, your message will be added to the discussion below: http://sip-router.1086192.n5.nabble.com/Get-value-of-RPID-privacy-param-tp14...
To unsubscribe from Get value of RPID privacy param, click here . NAML
--
yasin-imza-2014.jpg (51K) http://sip-router.1086192.n5.nabble.com/attachment/144681/0/yasin-imza-2014.jpg
-- View this message in context: http://sip-router.1086192.n5.nabble.com/Get-value-of-RPID-privacy-param-tp14... Sent from the Users mailing list archive at Nabble.com.
Hello,
operations over the headers (and body of message) are not applied immediately -- see the wiki on kamailio.org, look at FAQ.
You have to use msg_apply_changes(), or, better, do operations in branch_route if you need to re-route to another destination with different From/To. For a branch, you can keep the value in an avp in case you need to go through multiple variants before you decide which one is final, and then change only to the final value.
Cheers, Daniel
On 18/01/16 10:24, ycaner wrote:
Hello; UAC module is more useful Because when change From or To uri Some replies are changed so Uac module can restore it so there is no problem for SBC. i had a big problem about it and UAC module was solved it.
Hello Daniel.
There is a problem about From uri changes. When 2 times changes it
in a transaction , it appends fromuri new fromuri not override it. Only 1 time it can be changed.
Cheers.
18.01.2016 11:08 tarihinde Daniel-Constantin Mierla-6 [via SIP Router] yazdı:
Hello,
also the 'tobody' and 'params' transformations can be handy for getting the proper values from the header body:
https://www.kamailio.org/wiki/cookbooks/4.3.x/transformations#tobodyparams
Cheers, Daniel
On 18/01/16 09:28, ycaner wrote:
Hello; you can use "$hdr()" to get header. Here is short tuts for it
https://www.osso.nl/blog/callerid-in-rpid-opensips-kamailio/
-- View this message in context:
http://sip-router.1086192.n5.nabble.com/Get-value-of-RPID-privacy-param-tp14...
Sent from the Users mailing list archive at Nabble.com.
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing
list
[hidden email] </user/SendEmail.jtp?type=node&node=144677&i=0> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
-- Daniel-Constantin Mierla http://twitter.com/#!/miconda http://twitter.com/#%21/miconda - http://www.linkedin.com/in/miconda Book: SIP Routing With Kamailio - http://www.asipto.com http://miconda.eu
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list [hidden email] </user/SendEmail.jtp?type=node&node=144677&i=1> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
If you reply to this email, your message will be added to the discussion below: http://sip-router.1086192.n5.nabble.com/Get-value-of-RPID-privacy-param-tp14...
To unsubscribe from Get value of RPID privacy param, click here. NAML http://sip-router.1086192.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml
View this message in context: Re: Get value of RPID privacy param http://sip-router.1086192.n5.nabble.com/Get-value-of-RPID-privacy-param-tp144664p144681.html Sent from the Users mailing list archive http://sip-router.1086192.n5.nabble.com/Users-f3.html at Nabble.com.
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users