Attention is currently required from: neels.
laforge has posted comments on this change. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/34417?usp=email )
Change subject: sip: test SDP forwarding via MNCC
......................................................................
Patch Set 2:
(1 comment)
File sip/SIP_Tests.ttcn:
https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/34417/comment/52fe1cc6_c71a…
PS2, Line 241: log("FAIL: expected SDP ", expect_sdp, " but got ", last_sdp);
: setverdict(fail, "unexpected SDP");
: mtc.stop;
see my comment in the other patch. mege log+setverdict, or even go for Misc_Helpers.f_shutdown()
--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/34417?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: Ib2ae8449e673f5027f01d428d3718c006f76d93e
Gerrit-Change-Number: 34417
Gerrit-PatchSet: 2
Gerrit-Owner: neels <nhofmeyr(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-CC: laforge <laforge(a)osmocom.org>
Gerrit-Attention: neels <nhofmeyr(a)sysmocom.de>
Gerrit-Comment-Date: Thu, 14 Sep 2023 06:20:33 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
Attention is currently required from: neels.
laforge has posted comments on this change. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/34415?usp=email )
Change subject: sip: tweak failure reporting for SIP messages
......................................................................
Patch Set 1:
(1 comment)
File sip/SIP_Tests.ttcn:
https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/34415/comment/5762c8e1_886e…
PS1, Line 195: og("FAIL: expected SIP message ", sip_expect);
: setverdict(fail, "Received unexpected SIP message");
I don't really like this kind of duplication. The first log line contains the sip_expect, but the setverdict doesn't. However, you can just as well log any variable of any type in setverdict, too. So simply do a setverdict(fail, "Received unexpected SIP message ", sip_expect) instead?
Also, the succession of setverdict + stopping a component sounds like you may want to consider using a Misc_Helpers.f_shutdown(__BFILE__, __LINE__, fail, ...) construct?
--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/34415?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: Id48016657ebb83953fe74f65332f318edf8f75e6
Gerrit-Change-Number: 34415
Gerrit-PatchSet: 1
Gerrit-Owner: neels <nhofmeyr(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-CC: laforge <laforge(a)osmocom.org>
Gerrit-Attention: neels <nhofmeyr(a)sysmocom.de>
Gerrit-Comment-Date: Thu, 14 Sep 2023 06:18:59 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
Attention is currently required from: neels, pespin.
keith has posted comments on this change. ( https://gerrit.osmocom.org/c/osmo-sip-connector/+/16222?usp=email )
Change subject: forward SDP between SIP and MNCC
......................................................................
Patch Set 9: Code-Review-1
(1 comment)
File src/sip.c:
https://gerrit.osmocom.org/c/osmo-sip-connector/+/16222/comment/18a0a1f8_2d…
PS9, Line 549: SIPTAG_PAYLOAD_STR(sdp),
I'm slightly concerned about introducing the sending of SDP with the 180. It's not something I really ever see, and although some quick investigation suggests that UAs /should/ treat it like a 183, that is to say, we are telling the remote to expect early media (which come to think of it, are we? are generating ringback?) - I did come across a CISCO doc just now saying this behaviour is configurable. uf...
I'd say leave the 180 without SDP.
Actually, I just tested this, with an A leg hitting Freeswitch and the B leg towards osmo-sip-connector and indeed; no ringback from Freewitch as FS sees the SDP with the 180 and starts forwarding the media to the A leg, but nothing is generating ringback.
--
To view, visit https://gerrit.osmocom.org/c/osmo-sip-connector/+/16222?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-sip-connector
Gerrit-Branch: master
Gerrit-Change-Id: I3df5d06f38ee2d122706a9ebffde7db4f2bd6bae
Gerrit-Change-Number: 16222
Gerrit-PatchSet: 9
Gerrit-Owner: neels <nhofmeyr(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: keith <keith(a)rhizomatica.org>
Gerrit-Reviewer: neels <nhofmeyr(a)sysmocom.de>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: neels <nhofmeyr(a)sysmocom.de>
Gerrit-Attention: pespin <pespin(a)sysmocom.de>
Gerrit-Comment-Date: Thu, 14 Sep 2023 05:02:17 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
Attention is currently required from: neels, pespin.
keith has posted comments on this change. ( https://gerrit.osmocom.org/c/osmo-sip-connector/+/34410?usp=email )
Change subject: sdp_get_sdp_mode(): fix wrong return value
......................................................................
Patch Set 1: Code-Review+1
(1 comment)
File src/sdp.c:
https://gerrit.osmocom.org/c/osmo-sip-connector/+/34410/comment/b2c53898_85…
PS1, Line 68: return sdp_sendrecv;
> sdp_sendrecv is enum sdp_mode_t from sofia-sip. […]
I guess I was probably confused between updating passed pointers like it says on the tin and returning a bool to imply failure - and not paying attention to returned types and such things. Or maybe there was some copy/paste involved.
I was an even worse C programmer back in July 2019 than I am today.
Hmm, compiler does not complain though. 😊
--
To view, visit https://gerrit.osmocom.org/c/osmo-sip-connector/+/34410?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-sip-connector
Gerrit-Branch: master
Gerrit-Change-Id: Id27eb82a018293cf54d068877dc222e1c7eab253
Gerrit-Change-Number: 34410
Gerrit-PatchSet: 1
Gerrit-Owner: neels <nhofmeyr(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: keith <keith(a)rhizomatica.org>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-Attention: neels <nhofmeyr(a)sysmocom.de>
Gerrit-Attention: pespin <pespin(a)sysmocom.de>
Gerrit-Comment-Date: Thu, 14 Sep 2023 02:56:18 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Comment-In-Reply-To: neels <nhofmeyr(a)sysmocom.de>
Comment-In-Reply-To: pespin <pespin(a)sysmocom.de>
Gerrit-MessageType: comment