Commit Graph

36 Commits

Author SHA1 Message Date
Ioana Stanciu afc46246ca Import commercial version of YATE SIP and SDP implementation. 2023-05-23 15:16:31 +03:00
marian 624486eb31 Fixed bug: print a received answer to a request sent without trace id while tracing is enabled. Fixed bug: set channel's trace id when building a dialog message. Added configuration option to enable sip tracing.
git-svn-id: http://voip.null.ro/svn/yate@6415 acf43c95-373e-0410-b603-e72c3f656dc1
2020-07-15 13:34:04 +00:00
oana 25422700b2 Add support in SIP, SDP, RTP and CDR build for tracing a call.
git-svn-id: http://voip.null.ro/svn/yate@6406 acf43c95-373e-0410-b603-e72c3f656dc1
2020-04-22 14:18:49 +00:00
oana 47908cf938 Add option to stop execution of an outgoing call.
Propagate that parameter in dumb channel, tone generator and wave file.
In SIP, simulate going through the whole SIP stack before stopping execution of the call.



git-svn-id: http://voip.null.ro/svn/yate@6401 acf43c95-373e-0410-b603-e72c3f656dc1
2020-04-22 10:59:48 +00:00
paulc 1ada2db923 Automatically add a Contact to UPDATE messages too.
git-svn-id: http://voip.null.ro/svn/yate@6388 acf43c95-373e-0410-b603-e72c3f656dc1
2020-02-28 15:31:42 +00:00
paulc 5ebd71de00 Fixed CSeq picking from added SIP message.
git-svn-id: http://voip.null.ro/svn/yate@6357 acf43c95-373e-0410-b603-e72c3f656dc1
2019-08-20 15:23:24 +00:00
marian 00b0b1e408 Added SIPS URI support.
git-svn-id: http://voip.null.ro/svn/yate@6321 acf43c95-373e-0410-b603-e72c3f656dc1
2018-07-06 09:37:17 +00:00
paulc 6217608c8b Added support for sending call with SDP in ACK instead of INVITE in proxy and RTP forward modes.
git-svn-id: http://voip.null.ro/svn/yate@6280 acf43c95-373e-0410-b603-e72c3f656dc1
2017-11-16 18:11:05 +00:00
paulc 277e34b576 Renamed DebugGoOn to DebugCrit so it better matches its purpose.
Swapped order of DebugCall and DebugNote so DebugCall is less visible.
Changed default debug level to DebugNote.
Modified a few inadequate uses of DebugCrit.


git-svn-id: http://voip.null.ro/svn/yate@6250 acf43c95-373e-0410-b603-e72c3f656dc1
2017-08-01 13:08:23 +00:00
paulc 06353655f8 Implement independent CSeq generators for INVITE dialogs and REGISTER sessions.
Always parse CSeq in base 10, some implementations left pad with zeros.


git-svn-id: http://voip.null.ro/svn/yate@5855 acf43c95-373e-0410-b603-e72c3f656dc1
2014-06-25 12:27:56 +00:00
paulc 303e9abc0e Allow retrieving and setting more SIP dialog components.
git-svn-id: http://voip.null.ro/svn/yate@5846 acf43c95-373e-0410-b603-e72c3f656dc1
2014-06-18 08:38:30 +00:00
paulc ecf3477dcb Generate monotonic per-dialog Command Sequence numbers (CSeq) derived from the global sequence.
git-svn-id: http://voip.null.ro/svn/yate@5841 acf43c95-373e-0410-b603-e72c3f656dc1
2014-06-11 12:02:40 +00:00
paulc 7e19a2d834 When building a default SIP domain from local address include port if not 5060.
git-svn-id: http://voip.null.ro/svn/yate@5815 acf43c95-373e-0410-b603-e72c3f656dc1
2014-04-02 11:23:58 +00:00
paulc d56cecb40e Added copyright notices to sources and scripts missing them.
Updated copyright notices for 2014.
Fixed end of lines in many files.


git-svn-id: http://voip.null.ro/svn/yate@5755 acf43c95-373e-0410-b603-e72c3f656dc1
2014-02-05 11:42:17 +00:00
marian 5878e5b393 Added SIP IPv6 support.
git-svn-id: http://voip.null.ro/svn/yate@5673 acf43c95-373e-0410-b603-e72c3f656dc1
2013-10-18 18:30:41 +00:00
paulc 18e10bfd69 Changed license terms in each source file to reference an external file.
git-svn-id: http://voip.null.ro/svn/yate@5609 acf43c95-373e-0410-b603-e72c3f656dc1
2013-08-06 13:38:10 +00:00
marian 9ece20100f Don't quote the qop and nc parameters in Authorization response. Patch suggested by billsimon in Mantis issue #285.
git-svn-id: http://voip.null.ro/svn/yate@4807 acf43c95-373e-0410-b603-e72c3f656dc1
2012-01-17 16:26:46 +00:00
marian f9f3241df5 Added support for tcp/tls sip transport. The sip module can now use (bind on) more then one address for udp.
git-svn-id: http://voip.null.ro/svn/yate@4493 acf43c95-373e-0410-b603-e72c3f656dc1
2011-07-12 14:55:02 +00:00
paulc 07132042d0 Added class for pseudo random number generation.
Replace library ::random() and ::rand() calls with shared Random method.


git-svn-id: http://voip.null.ro/svn/yate@4470 acf43c95-373e-0410-b603-e72c3f656dc1
2011-06-29 11:19:02 +00:00
paulc 07502db52d Optimized const String usage in the SIP library.
git-svn-id: http://voip.null.ro/svn/yate@4427 acf43c95-373e-0410-b603-e72c3f656dc1
2011-06-03 13:04:21 +00:00
marian 311636496a Use a global (per engine) nonce counter. Increase it each time we need it.
git-svn-id: http://voip.null.ro/svn/yate@4378 acf43c95-373e-0410-b603-e72c3f656dc1
2011-05-16 08:18:56 +00:00
marian c8ef4d0a84 Handle qop=auth authentication requested by UAS when acting as UAC.
git-svn-id: http://voip.null.ro/svn/yate@4365 acf43c95-373e-0410-b603-e72c3f656dc1
2011-05-10 13:37:44 +00:00
paulc b2283a0c2e Added flags that control how SIP message components are automatically completed.
These flags can be configured per engine and can be overridden in some messages by setting an "xsip_flags" parameter.


git-svn-id: http://voip.null.ro/svn/yate@4161 acf43c95-373e-0410-b603-e72c3f656dc1
2011-03-07 13:50:59 +00:00
paulc 62ce79a0c0 Set the value of rport parameter (RFC 3581) in the topmost Via header only if the parameter is already set by the client or proxy and has no value.
git-svn-id: http://voip.null.ro/svn/yate@4160 acf43c95-373e-0410-b603-e72c3f656dc1
2011-03-07 11:56:43 +00:00
paulc 85604c3339 Added optional parameter to retrieve the last header or its parameters from a SIP message.
git-svn-id: http://voip.null.ro/svn/yate@4079 acf43c95-373e-0410-b603-e72c3f656dc1
2011-01-28 09:48:00 +00:00
paulc be5664b373 Use static Regexps instead of allocating them on stack. Multiplies 2.5x the parser performance.
git-svn-id: http://voip.null.ro/svn/yate@3048 acf43c95-373e-0410-b603-e72c3f656dc1
2010-01-31 20:30:02 +00:00
paulc 4b8527fca4 Added new methods to SIPDialog to compare only callid and tags (RFC 3261) and to retrieve the From and To URI or tags depending on direction.
Documented members of SIPDialog.


git-svn-id: http://voip.null.ro/svn/yate@2822 acf43c95-373e-0410-b603-e72c3f656dc1
2009-09-06 14:50:36 +00:00
paulc ad1dbdb955 Prevent the escaping of user-unreserved characters (RFC 3261 25.1 Page 222) when building the user part of SIP From and Contact.
git-svn-id: http://voip.null.ro/svn/yate@2817 acf43c95-373e-0410-b603-e72c3f656dc1
2009-09-01 14:42:28 +00:00
paulc eb2a9cd5e0 Fixed warnings and a few minor bugs when compiling on a different architecture.
git-svn-id: http://voip.null.ro/svn/yate@2724 acf43c95-373e-0410-b603-e72c3f656dc1
2009-06-19 11:19:20 +00:00
paulc caaf7433f0 Add a Contact header to INVITE even if user part of URI is empty.
Properly escape the user component of the URI.


git-svn-id: http://voip.null.ro/svn/yate@2645 acf43c95-373e-0410-b603-e72c3f656dc1
2009-05-21 20:57:51 +00:00
marian 9ebac2f423 Fixed incorrect content length header when building a message.
git-svn-id: http://voip.null.ro/svn/yate@1620 acf43c95-373e-0410-b603-e72c3f656dc1
2008-01-11 14:48:53 +00:00
marian ff1b2e26d8 Fixed message body build buffer to deal with additional body headers and mime multiparts.
git-svn-id: http://voip.null.ro/svn/yate@1619 acf43c95-373e-0410-b603-e72c3f656dc1
2008-01-11 14:23:56 +00:00
marian afded714aa Added MIME body constructors from a header line. Adjusted SIP message parser to handle this.
git-svn-id: http://voip.null.ro/svn/yate@1607 acf43c95-373e-0410-b603-e72c3f656dc1
2008-01-09 11:32:35 +00:00
marian 648b9c82b1 Moved header classes and some utilities from SIP to MIME. Updated SIP module and library to reflect the changes.
git-svn-id: http://voip.null.ro/svn/yate@1599 acf43c95-373e-0410-b603-e72c3f656dc1
2008-01-08 12:29:12 +00:00
paulc c4eecf9846 Fixed Remote-Party-ID generation, allow creating From without user part by unsetting the caller parameter.
git-svn-id: http://voip.null.ro/svn/yate@1481 acf43c95-373e-0410-b603-e72c3f656dc1
2007-11-21 01:08:14 +00:00
paulc 0a3b86d8f4 Directory reorder #1
git-svn-id: http://voip.null.ro/svn/yate@1474 acf43c95-373e-0410-b603-e72c3f656dc1
2007-11-15 22:08:39 +00:00