[SR-Users] set/add_contact_alias() difference
Daniel-Constantin Mierla
miconda at gmail.com
Fri Jun 17 13:00:25 CEST 2022
It is probably a matter of the return code when no contact is found. One
returns negative (false), the other one positive (true).
You can have a condition on is_present_hf("Contact"), if you need to
really check if the alias was added or not.
Cheers,
Daniel
On 17.06.22 12:49, ZZ Wave wrote:
> Playing around with WSS support:
>
>
> if (nat_uac_test(64)) {
> force_rport();
> ......
> if (!add_contact_alias()) {
> xinfo("Error aliasing contact <$ct>\n");
> sl_send_reply("400", "Bad Request");
> exit;
> }
>
> set_contact_alias() throws this error on ACK without Contact,
> add_contact_alias() doesn't (and thats OK). Is this the expected behavior?
>
> __________________________________________________________
> Kamailio - Users Mailing List - Non Commercial Discussions
> * sr-users at lists.kamailio.org
> Important: keep the mailing list in the recipients, do not reply only to the sender!
> Edit mailing list options or unsubscribe:
> * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
--
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training - Online: June 20-23, 2022
* https://www.asipto.com/sw/kamailio-advanced-training-online/
More information about the sr-users
mailing list