[OpenSIPS-Users] strange behavior with TCP reply port
Hello, This is on the 3.1.3~20210731~b333a222f-1 from the Debian 3.1-nightly repo. Typically I run with modparam("tm", "auto_100trying", 0) so I can manually send a 100 with sl_send_reply(100, "Trying"); earlier in the script, before blocking processes like DB lookups and such. No problem...until today. On a TCP (TLS) connection, the sl_send_reply() function opens a new TCP socket to the UAC on the IP:port listed in the original message's Contact, rather than sending the 100 on the existing socket (using the ephemeral port) the UAC used for its TCP socket to us. Future downstream replies are relayed back upstream to the ephemeral port. In other words, only the 100 Trying message from sl_send_reply() is opening a new socket back upstream. The auto_100trying option from tm, however, sends its 100 messages to the ephemeral port of the UAC. How can I get the sl_send_reply() function to reply on the existing TCP socket? Regards, Jeff ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] Push SDP into Request
On 11.08.2021 16:24, Mark Farmer wrote: Perhaps there is a better way but this seems to work for now :) Hey Mark, LGTM! I can't think of a better way of doing either of the SDP editing or replacing logic from the OpenSIPS config file. Cheers, -- Liviu Chircu www.twitter.com/liviuchircu | www.opensips-solutions.com OpenSIPS Summit 2021 Distributed | www.opensips.org/events ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] Push SDP into Request
Thanks for the replies :) I am not sure I really understand them, however I have solved the problem like this: rtpengine_offer($var(PSTN_TPTY),,$var(SDPbody)); $var(reg) = "/a=silenceSupp.*\n//ig"; $var(SDPbody) = $(var(SDPbody){re.subst,$var(reg)}); remove_body_part(); add_body_part("$var(SDPbody)", "application/sdp") Perhaps there is a better way but this seems to work for now :) On Wed, 11 Aug 2021 at 13:47, Carlos Eduardo wrote: > I noticed that when you manipulate before passing to rtpengine, the module > sends the "old" sdp to rtpengine. Does it make sense? > > Em qua., 11 de ago. de 2021 às 09:07, Johan De Clercq > escreveu: > >> wouldn't it be better to do first your manip and then pass it to >> rtpengine ? >> >> Op wo 11 aug. 2021 om 12:39 schreef Mark Farmer : >> >>> Hi everyone >>> >>> I am using rtpengine_offer() and storing the SDP in a variable which I >>> then modify using the reg_exp transformation to delete a line. >>> >>> rtpengine_offer($var(PSTN_TPTY),,$var(SDPbody)); >>> $var(SDPbody) = $(var(SDPbody){re.subst,/a=silenceSupp:off\ -\ -\ -\ >>> -\r\n//g}); >>> >>> How do I then push the resulting variable into the body of the INVITE? >>> >>> Many thanks >>> Mark. >>> >>> ___ >>> Users mailing list >>> Users@lists.opensips.org >>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users >>> >> ___ >> Users mailing list >> Users@lists.opensips.org >> http://lists.opensips.org/cgi-bin/mailman/listinfo/users >> > > > -- > *Carlos E. Wagner* > *Tecnólogo em Telecomunicações, Opensips Certified Professional* > > *Fone: +55 48 99981-0894* > *E-mail:* kad...@gmail.com > *LinkedIn:* https://www.linkedin.com/in/carlos-eduardo-wagner-96bbb433/ > ___ > Users mailing list > Users@lists.opensips.org > http://lists.opensips.org/cgi-bin/mailman/listinfo/users > -- Mark Farmer farm...@gmail.com ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] Push SDP into Request
I noticed that when you manipulate before passing to rtpengine, the module sends the "old" sdp to rtpengine. Does it make sense? Em qua., 11 de ago. de 2021 às 09:07, Johan De Clercq escreveu: > wouldn't it be better to do first your manip and then pass it to rtpengine > ? > > Op wo 11 aug. 2021 om 12:39 schreef Mark Farmer : > >> Hi everyone >> >> I am using rtpengine_offer() and storing the SDP in a variable which I >> then modify using the reg_exp transformation to delete a line. >> >> rtpengine_offer($var(PSTN_TPTY),,$var(SDPbody)); >> $var(SDPbody) = $(var(SDPbody){re.subst,/a=silenceSupp:off\ -\ -\ -\ >> -\r\n//g}); >> >> How do I then push the resulting variable into the body of the INVITE? >> >> Many thanks >> Mark. >> >> ___ >> Users mailing list >> Users@lists.opensips.org >> http://lists.opensips.org/cgi-bin/mailman/listinfo/users >> > ___ > Users mailing list > Users@lists.opensips.org > http://lists.opensips.org/cgi-bin/mailman/listinfo/users > -- *Carlos E. Wagner* *Tecnólogo em Telecomunicações, Opensips Certified Professional* *Fone: +55 48 99981-0894* *E-mail:* kad...@gmail.com *LinkedIn:* https://www.linkedin.com/in/carlos-eduardo-wagner-96bbb433/ ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] Push SDP into Request
wouldn't it be better to do first your manip and then pass it to rtpengine ? Op wo 11 aug. 2021 om 12:39 schreef Mark Farmer : > Hi everyone > > I am using rtpengine_offer() and storing the SDP in a variable which I > then modify using the reg_exp transformation to delete a line. > > rtpengine_offer($var(PSTN_TPTY),,$var(SDPbody)); > $var(SDPbody) = $(var(SDPbody){re.subst,/a=silenceSupp:off\ -\ -\ -\ > -\r\n//g}); > > How do I then push the resulting variable into the body of the INVITE? > > Many thanks > Mark. > > ___ > Users mailing list > Users@lists.opensips.org > http://lists.opensips.org/cgi-bin/mailman/listinfo/users > ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
[OpenSIPS-Users] Push SDP into Request
Hi everyone I am using rtpengine_offer() and storing the SDP in a variable which I then modify using the reg_exp transformation to delete a line. rtpengine_offer($var(PSTN_TPTY),,$var(SDPbody)); $var(SDPbody) = $(var(SDPbody){re.subst,/a=silenceSupp:off\ -\ -\ -\ -\r\n//g}); How do I then push the resulting variable into the body of the INVITE? Many thanks Mark. ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users