TCP instead of UDP for registration example with desktop liblinphone in C

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

TCP instead of UDP for registration example with desktop liblinphone in C

Daniel Shteinbok
Hello,

I have a flexisip server set up to use TCP over port 5060. I am trying to run the registration example C program on a desktop to connect to the server and register a user. The current issue is that, despite creating a LinphoneTransports struct, setting it to use TCP port 5060, disabling UDP and calling linphone_core_set_transports(), the LinphoneProxyConfig still seems to default to UDP as the transport method.

I have made some modifications besides that to the program to replace the deprecated methods with more up-to-date equivalents. I have attached the C file in question, as well as a .txt file with the same contents (in case the C file is blocked as malware).

My question is, how does one make the LinphoneProxyConfig use UDP instead of TCP? Can it be done? What does it mean when the transport methods set for LinphoneProxyConfig and LinphoneCore are different from one another (this seems to be the case)? Is there a working example of registration over TCP or anything non-UDP?

My specific code aside, is there a sequence diagram of some sort or some higher-level documentation that I could take a look at to understand how all these parts work together during registration?

Thank you all very much.
Regards,
Daniel

_______________________________________________
Linphone-developers mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/linphone-developers

registration.c.txt (9K) Download Attachment
registration.c (9K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Fwd: TCP instead of UDP for registration example with desktop liblinphone in C

Daniel Shteinbok

---------- Forwarded message ---------
From: Daniel Shteinbok <[hidden email]>
Date: Wed., Dec. 30, 2020, 12:07 p.m.
Subject: TCP instead of UDP for registration example with desktop liblinphone in C
To: <[hidden email]>
Cc: Jay Fallah <[hidden email]>


Hello,

I have a flexisip server set up to use TCP over port 5060. I am trying to run the registration example C program on a desktop to connect to the server and register a user. The current issue is that, despite creating a LinphoneTransports struct, setting it to use TCP port 5060, disabling UDP and calling linphone_core_set_transports(), the LinphoneProxyConfig still seems to default to UDP as the transport method.

I have made some modifications besides that to the program to replace the deprecated methods with more up-to-date equivalents. I have attached the C file in question, as well as a .txt file with the same contents (in case the C file is blocked as malware).

My question is, how does one make the LinphoneProxyConfig use UDP instead of TCP? Can it be done? What does it mean when the transport methods set for LinphoneProxyConfig and LinphoneCore are different from one another (this seems to be the case)? Is there a working example of registration over TCP or anything non-UDP?

My specific code aside, is there a sequence diagram of some sort or some higher-level documentation that I could take a look at to understand how all these parts work together during registration?

Thank you all very much.
Regards,
Daniel

_______________________________________________
Linphone-developers mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/linphone-developers

registration.c.txt (9K) Download Attachment
registration.c (9K) Download Attachment