Skip to content

Instantly share code, notes, and snippets.

@slyoldfox
Last active November 22, 2022 15:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save slyoldfox/e2c17fa8f4daf2900c9e0cef0341922f to your computer and use it in GitHub Desktop.
Save slyoldfox/e2c17fa8f4daf2900c9e0cef0341922f to your computer and use it in GitHub Desktop.
bticino patch for baresip
diff --git a/src/call.c b/src/call.c
index befc9f73..0d820dc3 100644
--- a/src/call.c
+++ b/src/call.c
@@ -1138,8 +1140,12 @@ int call_connect(struct call *call, const struct pl *paddr)
/* If we are using asyncronous medianat like STUN/TURN, then
* wait until completed before sending the INVITE */
- if (!call->acc->mnat)
+ if (!call->acc->mnat){
+ struct sdp_session *sdp = call->sdp;
+ sdp_session_set_lattr(sdp, true, "DEVADDR", "20");
+ printf("================ adding DEVADDR to outgoing call ===============\n");
err = send_invite(call);
+ }
else
err = call_streams_alloc(call);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment