Hello,
I committed in master branch (to be 3.1.0) code that allows to set uri, username, domain and display name for To and From headers using assignments to their respective PVs in configuration file. For example:
$fu = "sip:anonymous@invalid"; $fn = '"Jon Doe"'; $tU = "+123455678";
Assignment of each such attribute should be done only once, otherwise you get concatenated values since it uses the internal lump system. Therefore, doing an update is not visible immediately in config unless you do use msg_apply_changes().
Also, use it carefully, in case you have sipv1 devices in your network then it can break dialog matching. Anyhow changing content of From and To headers was possible with remove_hf()/append_hf() or subst() functions, the new feature comes just to ease writing the config when one needs it.
Cheers, Daniel
Very cool, keep up the good work!
On Fri, Aug 13, 2010 at 1:20 AM, Daniel-Constantin Mierla <miconda@gmail.com
wrote:
Hello,
I committed in master branch (to be 3.1.0) code that allows to set uri, username, domain and display name for To and From headers using assignments to their respective PVs in configuration file. For example:
$fu = "sip:anonymous@invalid"; $fn = '"Jon Doe"'; $tU = "+123455678";
Assignment of each such attribute should be done only once, otherwise you get concatenated values since it uses the internal lump system. Therefore, doing an update is not visible immediately in config unless you do use msg_apply_changes().
Also, use it carefully, in case you have sipv1 devices in your network then it can break dialog matching. Anyhow changing content of From and To headers was possible with remove_hf()/append_hf() or subst() functions, the new feature comes just to ease writing the config when one needs it.
Cheers, Daniel
-- Daniel-Constantin Mierla http://www.asipto.com/
sr-dev mailing list sr-dev@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev
2010/8/13 Daniel-Constantin Mierla miconda@gmail.com:
Hello,
I committed in master branch (to be 3.1.0) code that allows to set uri, username, domain and display name for To and From headers using assignments to their respective PVs in configuration file. For example:
$fu = "sip:anonymous@invalid"; $fn = '"Jon Doe"'; $tU = "+123455678";
Hi, are these assignments reverted when processing a response and routing it upstream as uac_replace_from() does (by inspecting RR params?
On 8/13/10 12:55 PM, Iñaki Baz Castillo wrote:
2010/8/13 Daniel-Constantin Mierlamiconda@gmail.com:
Hello,
I committed in master branch (to be 3.1.0) code that allows to set uri, username, domain and display name for To and From headers using assignments to their respective PVs in configuration file. For example:
$fu = "sip:anonymous@invalid"; $fn = '"Jon Doe"'; $tU = "+123455678";
Hi, are these assignments reverted when processing a response and routing it upstream as uac_replace_from() does (by inspecting RR params
No. Most of SIPv2 devices don't care if From/To are updated. Lately, all anonymous-ation I done was by simply changing From header and had no problem. If you need to revert, uac module is the way to go for From header.
Other option is to use htable to keep relation between call id and original/updated from/to -- this works fine as well (storing from tag in htable helps to decide which values to use for header update).
Cheers, Daniel
great, don't forget to update the wiki and mention the limitations ;-)
Am 13.08.2010 08:20, schrieb Daniel-Constantin Mierla:
Hello,
I committed in master branch (to be 3.1.0) code that allows to set uri, username, domain and display name for To and From headers using assignments to their respective PVs in configuration file. For example:
$fu = "sip:anonymous@invalid"; $fn = '"Jon Doe"'; $tU = "+123455678";
Assignment of each such attribute should be done only once, otherwise you get concatenated values since it uses the internal lump system. Therefore, doing an update is not visible immediately in config unless you do use msg_apply_changes().
Also, use it carefully, in case you have sipv1 devices in your network then it can break dialog matching. Anyhow changing content of From and To headers was possible with remove_hf()/append_hf() or subst() functions, the new feature comes just to ease writing the config when one needs it.
Cheers, Daniel