From c62a36c5ed4e72ab87c8c5c6196d13c105b5728d Mon Sep 17 00:00:00 2001
From: s3rj1k <evasive.gyron@gmail.com>
Date: Wed, 22 Jul 2020 23:42:44 +0300
Subject: [PATCH 1/3] bump release version

Signed-off-by: s3rj1k <evasive.gyron@gmail.com>
---
 .update      | 2 +-
 configure.ac | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/.update b/.update
index 7a6ac7b1..2d541b6c 100644
--- a/.update
+++ b/.update
@@ -1 +1 @@
-Thu Jun 18 11:23:10 UTC 2020
+Wed Jul 22 23:38:37 UTC 2020
diff --git a/configure.ac b/configure.ac
index 9542208c..57b37b44 100644
--- a/configure.ac
+++ b/configure.ac
@@ -11,7 +11,7 @@ dnl information on the package
 dnl ---------------------------
 
 dnl update both the version for AC_INIT and the LIBSOFIA_SIP_UA_MAJOR_MINOR
-AC_INIT([sofia-sip], [1.12.10devel])
+AC_INIT([sofia-sip], [1.12.12])
 
 CFLAGS="$CFLAGS $CONFIGURE_CFLAGS"
 CXXFLAGS="$CXXFLAGS $CONFIGURE_CXXFLAGS"

From 77371d25ebe4edb893b37300ce123037b577073e Mon Sep 17 00:00:00 2001
From: s3rj1k <evasive.gyron@gmail.com>
Date: Mon, 20 Jul 2020 18:16:36 +0300
Subject: [PATCH 2/3] add Debian build rules

Signed-off-by: s3rj1k <evasive.gyron@gmail.com>
---
 debian/changelog                   |  11 ++
 debian/compat                      |   1 +
 debian/control                     |  59 ++++++++
 debian/copyright                   | 228 +++++++++++++++++++++++++++++
 debian/libsofia-sip-ua-dev.install |   7 +
 debian/libsofia-sip-ua0.install    |   1 +
 debian/rules                       |  13 ++
 debian/sofia-sip-bin.install       |   1 +
 8 files changed, 321 insertions(+)
 create mode 100644 debian/changelog
 create mode 100644 debian/compat
 create mode 100644 debian/control
 create mode 100644 debian/copyright
 create mode 100644 debian/libsofia-sip-ua-dev.install
 create mode 100644 debian/libsofia-sip-ua0.install
 create mode 100755 debian/rules
 create mode 100644 debian/sofia-sip-bin.install

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 00000000..d2d9d308
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,11 @@
+sofia-sip (1.12.12-1) unstable; urgency=medium
+
+  * Initial Release.
+
+ -- FreeSWITCH Solutions <packages@freeswitch.com>  Wed, 22 Jul 2020 23:58:37 +0200
+
+sofia-sip (1.12.12-0) unstable; urgency=low
+
+  * Stub Release.
+
+ -- FreeSWITCH Solutions <packages@freeswitch.com>  Wed, 22 Jul 2020 23:54:37 +0200
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 00000000..ec635144
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+9
diff --git a/debian/control b/debian/control
new file mode 100644
index 00000000..cc9e6353
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,59 @@
+Source: sofia-sip
+Section: net
+Priority: optional
+Maintainer: FreeSWITCH Solutions <packages@freeswitch.com>
+Build-Depends: debhelper (>= 9), pkg-config, libglib2.0-dev, libssl-dev,
+              dpkg-dev (>= 1.13.19)
+Build-Depends-Indep:  doxygen, graphviz,
+Standards-Version: 3.9.6
+Homepage: http://sofia-sip.sourceforge.net/
+Vcs-Git: git://github.com/freeswitch/sofia-sip
+Vcs-Browser: git://github.com/freeswitch/sofia-sip
+
+Package: sofia-sip-bin
+Architecture: any
+Section: net
+Depends: libsofia-sip-ua0 (>= ${binary:Version}), ${shlibs:Depends}
+Description: Sofia-SIP library utilities
+ Sofia-SIP is an open-source SIP User-Agent library, compliant
+ with the IETF RFC3261 specification. It can be used as
+ a building block for SIP client software for uses such as VoIP,
+ IM, and many other real-time and person-to-person communication
+ services.
+ .
+ This package provides a set of console tools and helper
+ applications for use in scripts, testing and other uses. All
+ the tools utilize the Sofia-SIP library.
+
+Package: libsofia-sip-ua0
+Architecture: any
+Section: libs
+Depends: ${shlibs:Depends}
+Description: Sofia-SIP library runtime
+ Sofia-SIP is an open-source SIP User-Agent library, compliant
+ with the IETF RFC3261 specification. It can be used as
+ a building block for SIP client software for uses such as VoIP,
+ IM, and many other real-time and person-to-person communication
+ services.
+ .
+ The library is implemented in ANSI C, and provides an extensive
+ set of features for implementing SIP/SIMPLE User-Agents. Highlights
+ include full UDP/TCP/TLS support, IPv4/6 support, SIMPLE presence
+ and messaging support, SIP offer/answer engine and numerous
+ mechanisms for NAT/FW traversal.
+ .
+ This package provides the main library runtime files.
+
+Package: libsofia-sip-ua-dev
+Architecture: any
+Section: libdevel
+Depends: libsofia-sip-ua0 (= ${binary:Version})
+Description: Sofia-SIP library development files
+ Sofia-SIP is an open-source SIP User-Agent library, compliant
+ with the IETF RFC3261 specification. It can be used as
+ a building block for SIP client software for uses such as VoIP,
+ IM, and many other real-time and person-to-person communication
+ services.
+ .
+ This package provides the headers and libraries needed to build
+ applications against the Sofia-SIP library.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 00000000..a7ebdfbf
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,228 @@
+This package was debianized by FreeSWITCH Solutions
+<packages@freeswitch.com> on Mon, 20 Jul 2020 11:54:40 +0200.
+
+It was cloned from:
+    git://github.com/freeswitch/sofia-sip
+
+Copyright (C) 2020 FreeSWITCH Solutions and others (see the
+in individual files for a detailed list of copyright holders).
+
+This library is free software; you can redistribute it and/or
+modify it under the terms of the GNU Lesser General Public License
+as published by the Free Software Foundation; either version 2.1 of
+the License, or (at your option) any later version.
+
+This library is distributed in the hope that it will be useful, but
+WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+Lesser General Public License (LICENSE) for more details.
+
+On Debian systems, the complete text of the GNU Lesser General Public
+License can be found in /usr/share/common-licenses/LGPL-2.1.
+
+----------------------------------------------------------------------------
+
+libsofia-sip-ua/su/inet_ntop.c
+
+The package also contains files licensed by Internet Software Consortium.
+These files are distributed with the following copyright notice:
+
+Copyright (c) 1996 by Internet Software Consortium.
+
+Permission to use, copy, modify, and distribute this software for any
+purpose with or without fee is hereby granted, provided that the above
+copyright notice and this permission notice appear in all copies.
+
+THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM DISCLAIMS
+ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
+OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL INTERNET SOFTWARE
+CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
+DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
+PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
+ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
+SOFTWARE.
+
+----------------------------------------------------------------------------
+
+libsofia-sip-ua/su/inet_pton.c
+
+The package also contains files licensed by Internet Software Consortium and
+Internet Systems Consortium, Inc.. These files are distributed with the
+following copyright notice:
+
+Copyright (c) 2004 by Internet Systems Consortium, Inc. ("ISC")
+Copyright (c) 1996,1999 by Internet Software Consortium.
+
+Permission to use, copy, modify, and distribute this software for any
+purpose with or without fee is hereby granted, provided that the above
+copyright notice and this permission notice appear in all copies.
+
+THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES
+WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR
+ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
+OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+
+----------------------------------------------------------------------------
+
+libsofia-sip-ua/su/su_addrinfo.h
+libsofia-sip-ua/su/su_addrinfo.c
+
+The package also contains files licensed by WIDE Project. These files are
+distributed with the following copyright notice:
+
+Copyright (C) 1995, 1996, 1997, 1998, and 1999 WIDE Project.
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions
+are met:
+1. Redistributions of source code must retain the above copyright
+   notice, this list of conditions and the following disclaimer.
+2. Redistributions in binary form must reproduce the above copyright
+   notice, this list of conditions and the following disclaimer in the
+   documentation and/or other materials provided with the distribution.
+3. Neither the name of the project nor the names of its contributors
+   may be used to endorse or promote products derived from this software
+   without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND
+ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED.  IN NO EVENT SHALL THE PROJECT OR CONTRIBUTORS BE LIABLE
+FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+SUCH DAMAGE.
+
+----------------------------------------------------------------------------
+
+libsofia-sip-ua/su/getopt.c
+
+The package also contains files licensed by IBM Corporation. These files are
+distributed with the following copyright notice:
+
+           This module contains code made available by IBM 
+           Corporation on an AS IS basis.  Any one receiving the 
+           module is considered to be licensed under IBM copyrights 
+           to use the IBM-provided source code in any way he or she 
+           deems fit, including copying it, compiling it, modifying 
+           it, and redistributing it, with or without 
+           modifications.  No license under any IBM patents or 
+           patent applications is to be implied from this copyright 
+           license. 
+
+           A user of the module should understand that IBM cannot 
+           provide technical support for the module and will not be 
+           responsible for any consequences of use of the program. 
+
+           Any notices, including this one, are not to be removed 
+           from the module without the prior written consent of 
+           IBM. 
+
+----------------------------------------------------------------------------
+
+libsofia-sip-ua/su/su_md5.c
+
+The package also contains files written by Colin Plumb. These files are
+distributed with the following copyright notice:
+
+This code implements the MD5 message-digest algorithm. The algorithm is due
+to Ron Rivest. This code was initially written by Colin Plumb in 1993, no
+copyright is claimed. This code is in the public domain; do with it what you
+wish.
+
+Equivalent code is available from RSA Data Security, Inc.  This code has
+been tested against that, and is equivalent, except that you don't need
+to include two pages of legalese with every copy.
+
+----------------------------------------------------------------------------
+
+libsofia-sip-ua/su/strtoull.c
+
+The package also contains files licensed by University of California and Sun
+Microsystems. These files are distributed with the following copyright
+notice:
+
+Copyright (c) 1988 The Regents of the University of California.
+Copyright (c) 1994 Sun Microsystems, Inc.
+
+The following license.terms for information on usage and redistribution
+of this individual file, and for a DISCLAIMER OF ALL WARRANTIES.
+ 
+This software is copyrighted by the Regents of the University of
+California, Sun Microsystems, Inc., Scriptics Corporation, ActiveState
+Corporation and other parties.  The following terms apply to all files
+associated with the software unless explicitly disclaimed in
+individual files.
+
+The authors hereby grant permission to use, copy, modify, distribute,
+and license this software and its documentation for any purpose, provided
+that existing copyright notices are retained in all copies and that this
+notice is included verbatim in any distributions. No written agreement,
+license, or royalty fee is required for any of the authorized uses.
+Modifications to this software may be copyrighted by their authors
+and need not follow the licensing terms described here, provided that
+the new terms are clearly indicated on the first page of each file where
+they apply.
+
+IN NO EVENT SHALL THE AUTHORS OR DISTRIBUTORS BE LIABLE TO ANY PARTY
+FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
+ARISING OUT OF THE USE OF THIS SOFTWARE, ITS DOCUMENTATION, OR ANY
+DERIVATIVES THEREOF, EVEN IF THE AUTHORS HAVE BEEN ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGE.
+
+THE AUTHORS AND DISTRIBUTORS SPECIFICALLY DISCLAIM ANY WARRANTIES,
+INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT.  THIS SOFTWARE
+IS PROVIDED ON AN "AS IS" BASIS, AND THE AUTHORS AND DISTRIBUTORS HAVE
+NO OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR
+MODIFICATIONS.
+
+GOVERNMENT USE: If you are acquiring this software on behalf of the
+U.S. government, the Government shall have only "Restricted Rights"
+in the software and related documentation as defined in the Federal 
+Acquisition Regulations (FARs) in Clause 52.227.19 (c) (2).  If you
+are acquiring the software on behalf of the Department of Defense, the
+software shall be classified as "Commercial Computer Software" and the
+Government shall have only "Restricted Rights" as defined in Clause
+252.227-7013 (c) (1) of DFARs.  Notwithstanding the foregoing, the
+authors grant the U.S. Government and others acting in its behalf
+permission to use and distribute the software in accordance with the
+terms specified in this license. 
+
+----------------------------------------------------------------------------
+
+libsofia-sip-ua/ipt/rc4.c
+
+The package also contains files written by Pekka Pessi. These files are
+distributed with the following copyright notice:
+
+Copyright (c) 1996 Pekka Pessi. All rights reserved.
+
+This source code is provided for unrestricted use. Users may copy or
+modify this source code without charge.
+
+THIS SOURCE CODE IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND
+INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A
+PARTICULAR PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE
+PRACTICE.
+
+This source code is provided with no support and without any obligation
+on the part of author to assist in its use, correction, modification or
+enhancement.
+
+AUTHOR SHALL HAVE NO LIABILITY WITH RESPECT TO THE INFRINGEMENT OF
+COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY THIS SOFTWARE OR ANY PART
+THEREOF.
+
+In no event will author be liable for any lost revenue or profits or
+other special, indirect and consequential damages, even if author has
+been advised of the possibility of such damages.
+
+----------------------------------------------------------------------------
diff --git a/debian/libsofia-sip-ua-dev.install b/debian/libsofia-sip-ua-dev.install
new file mode 100644
index 00000000..2494770e
--- /dev/null
+++ b/debian/libsofia-sip-ua-dev.install
@@ -0,0 +1,7 @@
+usr/include/*/*/*.h
+usr/include/*/*/*.h.in
+usr/lib/libsofia-sip-ua.a
+usr/lib/libsofia-sip-ua.so
+usr/lib/pkgconfig/sofia-sip-ua.pc
+usr/share/sofia-sip/msg_parser.awk
+usr/share/sofia-sip/tag_dll.awk
diff --git a/debian/libsofia-sip-ua0.install b/debian/libsofia-sip-ua0.install
new file mode 100644
index 00000000..e06ac471
--- /dev/null
+++ b/debian/libsofia-sip-ua0.install
@@ -0,0 +1 @@
+usr/lib/libsofia-sip-ua.so.*
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 00000000..a3585ba4
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,13 @@
+#!/usr/bin/make -f
+
+%:
+	dh $@ --with autoreconf
+
+override_dh_auto_configure:
+	./configure \
+	  --prefix=/usr \
+	  --with-pic \
+	  --with-glib=no \
+	  --disable-stun
+
+override_dh_auto_test:
diff --git a/debian/sofia-sip-bin.install b/debian/sofia-sip-bin.install
new file mode 100644
index 00000000..1df36c61
--- /dev/null
+++ b/debian/sofia-sip-bin.install
@@ -0,0 +1 @@
+usr/bin/*

From 94729011a607e52df053deab6dd5c66f065bb209 Mon Sep 17 00:00:00 2001
From: Andrey Volk <andywolk@gmail.com>
Date: Mon, 27 Jul 2020 02:30:16 +0400
Subject: [PATCH 3/3] Update .update

---
 .update | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.update b/.update
index f589e4dd..c1022f5d 100644
--- a/.update
+++ b/.update
@@ -1 +1 @@
-Sun Jun 26 20:50:10 UTC 2020
\ No newline at end of file
+Sun Jun 26 20:50:10 UTC 2020