Hi team:
uac kamailio uas --> invite --> invite <-- 200 ok <-- 484 bye --->
Here is my reply_route:
onreply_route[MANAGE_REPLY] { xdbg("incoming reply\n"); if(status=~"[12][0-9][0-9]") { route(NATMANAGE); } if ($rs == 200) { t_reply("484", "Address Incomplete"); if (!t_cancel_callid("$ci", "$cs", "0", "200")) { xerr("t_cancel_callid failed\n"); } return; } return; }
but not woking.
Thanks!
Han 2025-06-17
Hi Han,
I do not think Kamailio can do what you want it to do.
Cheers,
-- Alex
On Jun 17, 2025, at 9:32 AM, 13715209697--- via sr-users sr-users@lists.kamailio.org wrote:
Hi team:
uac kamailio uas --> invite --> invite <-- 200 ok <-- 484 bye --->
Here is my reply_route:
onreply_route[MANAGE_REPLY] { xdbg("incoming reply\n"); if(status=~"[12][0-9][0-9]") { route(NATMANAGE); } if ($rs == 200) { t_reply("484", "Address Incomplete"); if (!t_cancel_callid("$ci", "$cs", "0", "200")) { xerr("t_cancel_callid failed\n"); } return; } return; }
but not woking.
Thanks!
Han 2025-06-17 __________________________________________________________ Kamailio - Users Mailing List - Non Commercial Discussions -- sr-users@lists.kamailio.org To unsubscribe send an email to sr-users-leave@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender!
-- Alex Balashov Principal Consultant Evariste Systems LLC Web: https://evaristesys.com, https://www.csrpswitch.com Tel: +1-706-510-6800
Actually, I think that kamailio probably *can* do it, but it's going to be complicated.
You're missing the ACK request. The ACK from the uac will have the ruri that the INVITE had (because it's a negative ACK), but the uas still expects a positive ACK, so kamailio will have to generate it, including making sure that the RURI matches what was in the Contact of the SIP-200 response.
Another challenge is that the BYE will have to get both the RURI and the cseq number correct, so kamailio will have to have some sort of state similar to dialog state.
The bigger challenge here is that you're looking for kamailio to do something quite abnormal (fake-convert an answered call into a rejected call). Getting this to work (reliably) requires good knowledge of SIP and kamailio. It looks like you're wanting someone to build a solution to your architecture problem rather than wanting help with getting kamailio to do what it was designed to do (proxy SIP); so it might be hard to get help here.
Maybe consider whether this unusual/ridiculous scenario is really what you want/need.
James
On Tue 17 Jun 2025, 15:21 Alex Balashov via sr-users, < sr-users@lists.kamailio.org> wrote:
Hi Han,
I do not think Kamailio can do what you want it to do.
Cheers,
-- Alex
On Jun 17, 2025, at 9:32 AM, 13715209697--- via sr-users <
sr-users@lists.kamailio.org> wrote:
Hi team:
uac kamailio uas --> invite --> invite <-- 200 ok <-- 484 bye --->
Here is my reply_route:
onreply_route[MANAGE_REPLY] { xdbg("incoming reply\n"); if(status=~"[12][0-9][0-9]") { route(NATMANAGE); } if ($rs == 200) { t_reply("484", "Address Incomplete"); if (!t_cancel_callid("$ci", "$cs", "0", "200")) { xerr("t_cancel_callid failed\n"); } return; } return; }
but not woking.
Thanks!
Han 2025-06-17 __________________________________________________________ Kamailio - Users Mailing List - Non Commercial Discussions --
sr-users@lists.kamailio.org
To unsubscribe send an email to sr-users-leave@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to
the sender!
-- Alex Balashov Principal Consultant Evariste Systems LLC Web: https://evaristesys.com, https://www.csrpswitch.com Tel: +1-706-510-6800
Kamailio - Users Mailing List - Non Commercial Discussions -- sr-users@lists.kamailio.org To unsubscribe send an email to sr-users-leave@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender!
Yes, you are right!
I'm going to try a different approach: Send the BYE to uac and uas when Kamailio receives the ACK
Thanks!
Han
Cool Although I've never implemented it, i think it might be straightforward using the dialog module.
James
On Thu 19 Jun 2025, 03:23 13715209697--- via sr-users, < sr-users@lists.kamailio.org> wrote:
Yes, you are right!
I'm going to try a different approach: Send the BYE to uac and uas when Kamailio receives the ACK
Thanks!
Han __________________________________________________________ Kamailio - Users Mailing List - Non Commercial Discussions -- sr-users@lists.kamailio.org To unsubscribe send an email to sr-users-leave@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender!