2 * Asterisk -- An open source telephony toolkit.
4 * Copyright (C) 2010, Digium, Inc.
6 * See http://www.asterisk.org for more information about
7 * the Asterisk project. Please do not directly contact
8 * any of the maintainers of this project for assistance;
9 * the project provides a web site, mailing lists and IRC
10 * channels for your use.
12 * This program is free software, distributed under the terms of
13 * the GNU General Public License Version 2. See the LICENSE file
14 * at the top of the source tree.
19 * \brief sip utils header file
26 /*! \brief converts ascii port to int representation. If no
27 * pt buffer is provided or the pt has errors when being converted
28 * to an int value, the port provided as the standard is used.
30 * \retval positive numeric port
32 unsigned int port_str2int(const char *pt, unsigned int standard);