If you don't use dialog for something else than tracking cseq updates, then maybe it works by not using dlg_manage() for this calls. Otherwise, digging in the code would be the way to go.
Cheers, Daniel On 22.03.21 15:28, Tyler Moore wrote: > Thanks for the reply Daniel, > > I did see references to it in the source but was hoping that there was > some way to implement this in config. > If you do find a workaround please let me know, otherwise I'll just > create the patch and upstream it to the next development release. > > Regards, > > *Tyler Moore* <https://devopsec.net/> > Full Stack Software Engineer > <http://www.google.com/search?q=full+stack+software+engineer+job+description> > Flyball Labs <http://goflyball.com/> > Office: 888-907-2085, ext: 34 <tel:8889072085;ext=34> > Cell: 248-909-2769 <tel:2489092769> > Email: [email protected] <mailto:[email protected]> > > FLYBALL TECHNICAL SOLUTIONS, LLC > > > > On Mon, Mar 22, 2021 at 5:42 AM Daniel-Constantin Mierla > <[email protected] <mailto:[email protected]>> wrote: > > Hello, > > the callbacks are in the code, executed just after receiving and > before sending to the network, I don't think there is no > possibility to interact with the callbacks from the config file. > > Having the possibility to turn on/off the cseq update likely > requires some C coding, I don't remember by heart any way to do it > right now, but I haven't had the time to check the code and > refresh how is done to see if any workaround can be used at this > moment. > > Cheers. > Daniel > > On 19.03.21 16:51, Tyler Moore wrote: >> Hey kamailio team, >> >> When are the callbacks in the dialog module for updating >> $dlg_var(cseq_diff) called? >> I am trying to dynamically enable / disable cseq updates (some >> specific carriers need it and some don't) by setting >> $dlg_var(cseq_diff)=$null prior to sending the request but it >> seems like the callback happens after relaying. >> For example I tried various locations: >> - prior to t_relay() >> - in onreply_route[] >> - in failure_route[] >> - in event_route[tm:local-request] >> - in event_route[tm:local-response] >> >> I also tried setting modparam("dialog", "initial_cbs_inscript", >> 1) and calling dlg_manage() prior to routing and those didn't >> seem to be the right callbacks either. >> >> Either the callback that updates $dlg_var(cseq_diff) occurs after >> t_relay() / forward() is called or >> setting $dlg_var(cseq_diff)=$null has no effect. >> >> Is dynamically turning CSEQ updates on / off possible by >> overwriting $dlg_var(cseq_diff)? >> Or would this require new logic in the dialog module to be supported? >> >> Regards, >> >> *Tyler Moore* <https://devopsec.net/> >> Full Stack Software Engineer >> >> <http://www.google.com/search?q=full+stack+software+engineer+job+description> >> Flyball Labs <http://goflyball.com/> >> Office: 888-907-2085, ext: 34 <tel:8889072085;ext=34> >> Cell: 248-909-2769 <tel:2489092769> >> Email: [email protected] <mailto:[email protected]> >> >> FLYBALL TECHNICAL SOLUTIONS, LLC >> >> >> _______________________________________________ >> Kamailio (SER) - Users Mailing List >> [email protected] <mailto:[email protected]> >> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users >> <https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users> > > -- > Daniel-Constantin Mierla -- www.asipto.com <http://www.asipto.com> > www.twitter.com/miconda <http://www.twitter.com/miconda> -- > www.linkedin.com/in/miconda <http://www.linkedin.com/in/miconda> > Funding: https://www.paypal.me/dcmierla <https://www.paypal.me/dcmierla> > -- Daniel-Constantin Mierla -- www.asipto.com www.twitter.com/miconda -- www.linkedin.com/in/miconda Funding: https://www.paypal.me/dcmierla
_______________________________________________ Kamailio (SER) - Users Mailing List [email protected] https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
