[SR-Users] Is Min-SE check broken?

2020-03-27 Thread harneet singh
Hi All, I am facing an issue in understanding how the min_se should be working in kamailio. As per the SST documentation, it seems like if the min_se is configured as 500, then any value of Session-Expires OR MIN-SE if lower than 500, can be responded to by a 422. However, I strangely see the

Re: [SR-Users] Problem faced when Using Kamaiio as Session Refresher

2020-03-27 Thread harneet singh
Thanks Daniel/Bastian. The change suggested works for me. :) Regards, Harneet On Fri, Mar 27, 2020 at 1:28 PM Bastian Triller wrote: > $(hdr(Session-Expires){s.select,0,;}{s.int}) > > On Fri, Mar 27, 2020, 04:56 harneet singh wrote: > >> Hi Daniel, >> The following code works if the

Re: [SR-Users] [ot] lightweight sip app for auto-answering with play file and echo mode

2020-03-27 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > Would it be possible to combine like playing a file first, then do echo > mode? As you noticed, play and echo use different audio_source and thus I don't think it is possible to combine the two. -- Juha ___ Kamailio

Re: [SR-Users] [ot] lightweight sip app for auto-answering with play file and echo mode

2020-03-27 Thread Juha Heinanen
Regarding echo, one can use same kind of baresip accounts file as with play, such as ;auth_user=echo;auth_pass=xx;outbound="sip:192.168.43.82:5060;transport=tcp";ptime=20;audio_codecs=OPUS/48000/2,PCMU,PCMA;regint=600;pubint=0;regq=0.5;sipnat=outbound;answermode=auto The difference is that

Re: [SR-Users] [ot] lightweight sip app for auto-answering with play file and echo mode

2020-03-27 Thread Daniel-Constantin Mierla
Thanks for this hints as well! Would it be possible to combine like playing a file first, then do echo mode? What I could figure out from your examples, it is mainly about what modules and module_app's are loaded in baresip config. The config for playing an audio file has: audio_source       

Re: [SR-Users] Kamailio OPTIONS Round-Trip

2020-03-27 Thread Daniel-Constantin Mierla
To conclude this thread: the feature of sending keepalives from inside usrloc module and compute round trip time has been pushed to master branch, see the ka-related modparams:   * https://www.kamailio.org/docs/modules/devel/modules/usrloc.html#usrloc.p.ka_mode Still some work planned to be done

Re: [SR-Users] [ot] lightweight sip app for auto-answering with play file and echo mode

2020-03-27 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > > Here is an example configuration of a SIP UA that plays a file when it > > receives a call: > > > > .baresip/config: > > ... > > audio_sourcegst,file:///tmp/file_to_play.wav > > ... > > module gst1.so gst1 module was recently

Re: [SR-Users] Problem faced when Using Kamaiio as Session Refresher

2020-03-27 Thread Daniel-Constantin Mierla
Hello, try to use: $(hdr(Session-Expires){s.select,0,;}{s.int}); It should work even when there is only the expires value, with no parameters. Cheers, Daniel On 27.03.20 04:53, harneet singh wrote: > Hi Daniel, > The following code works if the Session-Expires comes WITHOUTa > refresher

Re: [SR-Users] Problem faced when Using Kamaiio as Session Refresher

2020-03-27 Thread Bastian Triller
$(hdr(Session-Expires){s.select,0,;}{s.int}) On Fri, Mar 27, 2020, 04:56 harneet singh wrote: > Hi Daniel, > The following code works if the Session-Expires comes WITHOUTa refresher > parameter. > > if(is_present_hf("Session-Expires")) { > >$avp(...) = $(hdr(Session-Expires){s.int}); > > }

Re: [SR-Users] [ot] lightweight sip app for auto-answering with play file and echo mode

2020-03-27 Thread Daniel-Constantin Mierla
Thanks Juha, useful for a quicker starting point -- hope to get a bit time soon to play with and eventually replace some of the heavy apps I use in couple of testing scenarios. Cheers, Daniel On 26.03.20 17:31, Juha Heinanen wrote: > Daniel-Constantin Mierla writes: > wondering if anyone

Re: [SR-Users] Segmentation fault in DMQ module

2020-03-27 Thread Daniel-Constantin Mierla
Thanks for testing and the feedback! Check also if this one can affect you:   * https://github.com/kamailio/kamailio/issues/2224#issuecomment-602730307 I just backported all of them to 5.3, so if you want to test, you can use directly the latest branch 5.3. Cheers, Daniel On 26.03.20 13:20,