~noskcaj/ubuntu/saucy/sflphone/merge-1.2.3-2

« back to all changes in this revision

Viewing changes to daemon/src/sip/sip_utils.h

  • Committer: Jackson Doak
  • Date: 2013-07-10 21:04:46 UTC
  • mfrom: (20.1.3 sid)
  • Revision ID: noskcaj@ubuntu.com-20130710210446-y8f587vza807icr9
Properly merged from upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
 *
16
16
 *  You should have received a copy of the GNU General Public License
17
17
 *  along with this program; if not, write to the Free Software
18
 
 *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 
18
 *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301 USA.
19
19
 *
20
20
 *  Additional permission under GNU GPL version 3 section 7:
21
21
 *
33
33
#define SIP_UTILS_H_
34
34
 
35
35
#include <string>
36
 
#include <list>
 
36
#include <vector>
37
37
 
38
38
#include <pjsip/sip_msg.h>
39
39
 
40
 
class pjsip_msg;
 
40
struct pjsip_msg;
41
41
 
42
42
namespace sip_utils {
43
43
    /**
46
46
     */
47
47
    std::string fetchHeaderValue(pjsip_msg *msg, const std::string &field);
48
48
 
49
 
    pjsip_route_hdr *createRouteSet(const std::string &route, pj_pool_t *hdr_pool);
 
49
    pjsip_route_hdr *
 
50
    createRouteSet(const std::string &route, pj_pool_t *hdr_pool);
50
51
 
51
52
    void stripSipUriPrefix(std::string& sipUri);
52
53
 
53
54
    std::string parseDisplayName(const char * buffer);
54
55
 
55
 
    std::string resolveDns(const std::string &url);
56
 
    std::list<std::string> resolveServerDns(const std::string &server);
 
56
    std::vector<std::string> getIPList(const std::string &name);
57
57
}
58
58
 
59
59
#endif // SIP_UTILS_H_