Hi Alex, How can I troubleshoot the issue in this case ?
Noting that I'm using Kamailio 4.2.0 Thanks Ali Taher -----Original Message----- From: sr-users <[email protected]> On Behalf Of Alex Balashov Sent: Wednesday, July 18, 2018 4:50 PM To: Kamailio (SER) - Users Mailing List <[email protected]> Subject: Re: [SR-Users] in-dialog requests That may be, but it's still the correct config to use. Your scaled-down version simply will not work. On July 18, 2018 9:47:15 AM EDT, Ali Taher <[email protected]> wrote: >Hi Alex, > >Yes I did, but I noticed that all in-dialog requests sent by freeswitch >to kamailio were ignored and no packet was generated from kamailio in >this regard. > >I'm not sure if t_relay is working as expected at my side. > >Thanks. >Ali Taher > >-----Original Message----- >From: sr-users <[email protected]> On Behalf Of Alex >Balashov >Sent: Wednesday, July 18, 2018 4:34 PM >To: Kamailio (SER) - Users Mailing List <[email protected]> >Subject: Re: [SR-Users] in-dialog requests > >Have you tried the config I suggested to you yesterday? > >On July 18, 2018 9:32:01 AM EDT, Ali Taher <[email protected]> wrote: >>Hello, >> >> >> >>I'm using Kamailio as a proxy behind freeswitch to alter some packets >>(183 >>packets precisely). >> >> >> >>Here is my scenario: >> >> >> >>(---Customer---) --> ((port 5065)---Kamailio---) --> >>((port5060)---Freeswitch---) --> (---Supplier---) >> >> >> >>Here is my request route : >> >> >> >>route{ >> >> >> >>if (is_method("INVITE")) { >> >> xlog("L_INFO","INSIDE request route $si \n"); >> >> insert_hf("X-AUTH-IP: $si\r\n"); >> >>} >> >> >> >>route(FWD); >> >>} >> >> >> >> >> >>reply_route { >> >>#xlog("L_INFO","INSDE reply \n"); >> >> if (status == "183") { >> >> change_reply_status(180, "Ringing"); >> >> exit; >> >> } >> >>} >> >> >> >>route[FWD] { >> >>#xlog("L_INFO","INSIDE FWD \n"); >> >>forward(X.X.X.X,5060); >> >>} >> >>Where X.X.X.X is the Freeswitch IP >> >> >> >>This script is working normally as long as the customer is sending the >>requests(INVITE,BYE,ACK,CANCEL..) . But when the supplier or >freeswitch >>initiated the request , above script causes loop where the packet is >>bounced between kamailio and freeswitch. >> >> >> >>As I know , loose_route is used to handle such requests , but I'm not >>sure how to forward these packets to the customer after receiving them > >>from freeswitch. >> >> >> >>I'm not sure also if what's I'm doing is statefull or stateless. >> >> >> >>Any help is appreciated. >> >> >> >>Thanks, >> >>Ali Taher > > >-- Alex > >-- >Sent via mobile, please forgive typos and brevity. > >_______________________________________________ >Kamailio (SER) - Users Mailing List >[email protected] >https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users > > >_______________________________________________ >Kamailio (SER) - Users Mailing List >[email protected] >https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users -- Alex -- Sent via mobile, please forgive typos and brevity. _______________________________________________ Kamailio (SER) - Users Mailing List [email protected] https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users _______________________________________________ Kamailio (SER) - Users Mailing List [email protected] https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
