[SR-Users] handling 300 redirect requests
I am trying to proxy a request from server A to server C with me being server B. i send the invite from A to B, then i need to send to server R which returns back to me a 300 redirect, which i then need to take the answer from the Contsct and then proxy the original invite from A to C. server A can not handle 3xx responses and must be proxied. I havent been able to find any examples where the 300 is intercepted and a new invite to the target is sent. i have the following code but it results in no new INVITE and the original session is hung until it is canceled.Any idea what i may be doing wrong? In the example below i am just hardcoding the uri for the new invite instead of getting from the Contact as a debug exercise. I am using Kamailio 5.7.3 route[HANDLEREDIRECT] { xlog("L_INFO", "DBG: HANDLEREDIRECT"); msg_apply_changes(); $var(test) = $hdr(Contact); xlog("L_INFO","DBG: redirect headers [$var(test)]: from=[$fu] from_user=[$fU], to=[$tu] to_user=[$tU]"); # send to gateway $var(new_uri) = "sip:" + $tU + "@" + "gateway"; if ($var(new_uri) != "") { xlog("DBG: Redirecting to: $var(new_uri)\n"); $ru = $var(new_uri); $tu = $ru; record_route(); route(RELAY); exit; # i have also tried using #t_newtran(); # and #t_relay(); } else { xlog("DBG: No contact header found in 300 response\n"); } } # Manage outgoing branches branch_route[MANAGE_BRANCH] { xdbg("DBG: new branch [$T_branch_idx] to $ru\n"); xlog("L_INFO", "DBG: manage branch"); route(NATMANAGE); return; } onreply_route[MANAGE_REPLY] { xdbg("DBG: incoming reply\n"); xlog("L_INFO", "DBG: manage reply"); if (t_check_status("3[0-9][0-9]")) { xlog("L_INFO", "DBG: got 3xx redirect"); route(HANDLEREDIRECT); drop; } return; } I also tried using uac_redirect module, but it stalls the incoming invite also, and i cant figure out how to modify the uri from the contact before sending (to add params) # Manage failure routing cases failure_route[MANAGE_FAILURE] { route(NATMANAGE); if (t_is_canceled()) exit; if (t_check_status("3[0-9][0-9]")) { xlog("L_INFO", "DBG: following 3xx redirect"); get_redirects("3:1"); t_relay(); exit; } } Rob Green Chief Information Officer (CIO) Tel: 1-352-218-1490 Cell: 1-407-620-0932 Email: rob.gr...@nuwave.com Web: www.nuwave.com This communication is the Property of NUWAVE Communications and may contain confidential or privileged information. Unauthorized use of this communication is strictly prohibited and may be unlawful. If you have received this communication in Error, Please immediately notify the sender by reply e-mail and destroy all copies of the communication and any attachments. __ Kamailio - Users Mailing List - Non Commercial Discussions To unsubscribe send an email to sr-users-le...@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender! Edit mailing list options or unsubscribe:
[SR-Users] Re: [sr-dev] Releasing v5.8.2
Please backport the geoip2 thingy from recently 8ba4ee4e00 ("geoip2: init MMDB_s global pointer and check on destroy") e066613cac ("geoip2: do not close global MMDB_s on destroy") 4bd619d351 ("geoip2: rename global lock variable") baccbe0298 ("geoip2: keep global structure per process") 293193c55c ("geoip2: clang format module file") 51dcab019a ("geoip2: Reload database before accessing it") Thanks. Regards, Bastian On Fri, Jun 7, 2024 at 8:12 PM Daniel-Constantin Mierla via sr-dev wrote: > > Hello, > > I am considering to release Kamailio v5.8.2 (out of branch 5.8) on > Wednesday, > June 12, 2024. If anyone is aware of issues not yet on the bug tracker, > report them there asap in order to have a better chance to be fixed. > > Cheers, > Daniel > > -- > Daniel-Constantin Mierla (@ asipto.com) > twitter.com/miconda -- linkedin.com/in/miconda > Kamailio Consultancy, Training and Development Services -- asipto.com > > > ___ > Kamailio (SER) - Development Mailing List > To unsubscribe send an email to sr-dev-le...@lists.kamailio.org __ Kamailio - Users Mailing List - Non Commercial Discussions To unsubscribe send an email to sr-users-le...@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender! Edit mailing list options or unsubscribe:
[SR-Users] Releasing v5.8.2
Hello, I am considering to release Kamailio v5.8.2 (out of branch 5.8) on Wednesday, June 12, 2024. If anyone is aware of issues not yet on the bug tracker, report them there asap in order to have a better chance to be fixed. Cheers, Daniel -- Daniel-Constantin Mierla (@ asipto.com) twitter.com/miconda -- linkedin.com/in/miconda Kamailio Consultancy, Training and Development Services -- asipto.com __ Kamailio - Users Mailing List - Non Commercial Discussions To unsubscribe send an email to sr-users-le...@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender! Edit mailing list options or unsubscribe:
[SR-Users] Re: Recommendation for a signaling B2BUA to work with Kamailio on Ubuntu
Hey Benoit, I had the same issue with FreeSWITCH on Jammy, if your issue was with SpanDSP errors I had to use a specific commit (git checkout d540fdf) to get around it. This was on FreeSWITCH v1.10.10 compiled from the repo. As a side note to your original issue around message size, I am using TOPOS to reduce message size which helped with my specific use case. (NAT'd in cloud so had to use double RR which had double Via as well) Thanks, John On Fri, 7 Jun 2024 at 15:51, Benoît Panizzon via sr-users < sr-users@lists.kamailio.org> wrote: > Hi > > I wonder if anyone could maybe recommend what to use as signaling B2BUA > to work with Kamailio to handle spiralling / looping calls and to reduce > the number of Route, Via Header and message size, which cause issue > with a large number of CPE. > > Requirements: > * New CallID needs to be generated > * Handling Route and Via > * ~ 2000 concurrent calls. > * Preserving custom SIP X- header > * Routing NOTIFY for MWI etc. > > Handling RTP is not required! > > What I have been looking at more closely: > > = FreeSwitch = > > Got stuck trying to solve the dependencies to get it to run/build on > ubuntu jammy. > Has anyone experience in running it in a docker container? Will it > perform? > > = Sippy = > > Very small, very simple, unfortunately removes customer SIP headers and > does not forward NOTIFY. (It's python, so maybe this could be easily > implemented/fixed). > > = SEMS = > > Does not seem to be actively developed in the last, couple of years. > Looks quite bloated to me for what I need. > > = Asterisk = > > Each customer header has to be copied, wants to handle RTP and bridge > by issuing Re-Invites. Not sure how to route stuff like NOTIFY. > Also from experience I fear asterisk would translate sip reply codes > (like 608 and 607) it does not know to some 4XX default. > > -- > Mit freundlichen Grüssen > > -Benoît Panizzon- @ HomeOffice und normal erreichbar > -- > I m p r o W a r e A G-Leiter Commerce Kunden > __ > > Zurlindenstrasse 29 Tel +41 61 826 93 00 > CH-4133 PrattelnFax +41 61 826 93 01 > Schweiz Web http://www.imp.ch > __ > __ > Kamailio - Users Mailing List - Non Commercial Discussions > To unsubscribe send an email to sr-users-le...@lists.kamailio.org > Important: keep the mailing list in the recipients, do not reply only to > the sender! > Edit mailing list options or unsubscribe: > __ Kamailio - Users Mailing List - Non Commercial Discussions To unsubscribe send an email to sr-users-le...@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender! Edit mailing list options or unsubscribe:
[SR-Users] Setting Key/Value Pairs at Dialogue Level
Hi everyone, I am creating a dialogue when I receive INVITE. Is there a way to set key/value pair like attributes at dialog level, so that, when I receive BYE message I can retrieve that information and do some processing? Thank you, Pavan Kumar __ Kamailio - Users Mailing List - Non Commercial Discussions To unsubscribe send an email to sr-users-le...@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender! Edit mailing list options or unsubscribe:
[SR-Users] Re: Recommendation for a signaling B2BUA to work with Kamailio on Ubuntu
fs docker: https://github.com/davidcsi/docker-freeswitch that's what i always use. Performance depends upon the underlying hardware. I've seen 5000+ channels _handling rtp_. Regards, David Villasmil email: david.villasmil.w...@gmail.com phone: +34669448337 On Fri, Jun 7, 2024 at 5:08 PM Fred Posner via sr-users < sr-users@lists.kamailio.org> wrote: > > > On Jun 7, 2024, at 10:15 AM, Benoît Panizzon via sr-users < > sr-users@lists.kamailio.org> wrote: > > > > = FreeSwitch = > > > > Got stuck trying to solve the dependencies to get it to run/build on > > ubuntu jammy. > > Has anyone experience in running it in a docker container? Will it > > perform? > > > > Have you tried from their repo? > > > > = SEMS = > > > > Does not seem to be actively developed in the last, couple of years. > > Looks quite bloated to me for what I need. > > > SEMS is still updated— as recently even as last month. > > * https://github.com/sems-server/sems > > > > > Regards, > > Fred Posner > p: +1 (352) 664-3733 > https://fred.tel > > > > > __ > Kamailio - Users Mailing List - Non Commercial Discussions > To unsubscribe send an email to sr-users-le...@lists.kamailio.org > Important: keep the mailing list in the recipients, do not reply only to > the sender! > Edit mailing list options or unsubscribe: > __ Kamailio - Users Mailing List - Non Commercial Discussions To unsubscribe send an email to sr-users-le...@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender! Edit mailing list options or unsubscribe:
[SR-Users] Re: Recommendation for a signaling B2BUA to work with Kamailio on Ubuntu
> On Jun 7, 2024, at 10:15 AM, Benoît Panizzon via sr-users > wrote: > > = FreeSwitch = > > Got stuck trying to solve the dependencies to get it to run/build on > ubuntu jammy. > Has anyone experience in running it in a docker container? Will it > perform? > Have you tried from their repo? > = SEMS = > > Does not seem to be actively developed in the last, couple of years. > Looks quite bloated to me for what I need. SEMS is still updated— as recently even as last month. * https://github.com/sems-server/sems Regards, Fred Posner p: +1 (352) 664-3733 https://fred.tel __ Kamailio - Users Mailing List - Non Commercial Discussions To unsubscribe send an email to sr-users-le...@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender! Edit mailing list options or unsubscribe:
[SR-Users] Recommendation for a signaling B2BUA to work with Kamailio on Ubuntu
Hi I wonder if anyone could maybe recommend what to use as signaling B2BUA to work with Kamailio to handle spiralling / looping calls and to reduce the number of Route, Via Header and message size, which cause issue with a large number of CPE. Requirements: * New CallID needs to be generated * Handling Route and Via * ~ 2000 concurrent calls. * Preserving custom SIP X- header * Routing NOTIFY for MWI etc. Handling RTP is not required! What I have been looking at more closely: = FreeSwitch = Got stuck trying to solve the dependencies to get it to run/build on ubuntu jammy. Has anyone experience in running it in a docker container? Will it perform? = Sippy = Very small, very simple, unfortunately removes customer SIP headers and does not forward NOTIFY. (It's python, so maybe this could be easily implemented/fixed). = SEMS = Does not seem to be actively developed in the last, couple of years. Looks quite bloated to me for what I need. = Asterisk = Each customer header has to be copied, wants to handle RTP and bridge by issuing Re-Invites. Not sure how to route stuff like NOTIFY. Also from experience I fear asterisk would translate sip reply codes (like 608 and 607) it does not know to some 4XX default. -- Mit freundlichen Grüssen -Benoît Panizzon- @ HomeOffice und normal erreichbar -- I m p r o W a r e A G-Leiter Commerce Kunden __ Zurlindenstrasse 29 Tel +41 61 826 93 00 CH-4133 PrattelnFax +41 61 826 93 01 Schweiz Web http://www.imp.ch __ __ Kamailio - Users Mailing List - Non Commercial Discussions To unsubscribe send an email to sr-users-le...@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender! Edit mailing list options or unsubscribe: