[SR-Users] Enforcing add_contact_alias()

Juha Heinanen jh at tutpro.com
Mon Nov 17 12:04:51 CET 2014


Dan Christian Bogos writes:

> I have noticed that if add_contact_alias is called without any 
> parameters it will not work (eg: not add the alias parameter in contact) 
> in case of ip/port/transport of the received messages are matching what 
> the contact declares. On the other hand if I use 
> add_contact_alias("$si", "$sp", "$proto"), the contact alias will be 
> always enforced. Due to way routing works in my case I would need always 
> the alias to be added. Am I forced to pass the parameters, eg the 
> desired behaviour is to only add contact alias on need and not enforce?

if you want to be sure that contact alias is added even if it would not
add any value, you need to use it with parameters.

-- juha



More information about the sr-users mailing list