~ubuntu-branches/ubuntu/utopic/sflphone/utopic

« back to all changes in this revision

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

  • Committer: Package Import Robot
  • Author(s): Mark Purcell
  • Date: 2013-06-30 11:40:56 UTC
  • mfrom: (4.1.18 saucy-proposed)
  • Revision ID: package-import@ubuntu.com-20130630114056-0np50jkyqo6vnmii
Tags: 1.2.3-2
* changeset_r92d62cfc54732bbbcfff2b1d36c096b120b981a5.diff 
  - fixes automatic endian detection 
* Update Vcs: fixes vcs-field-not-canonical

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 <vector>
36
37
 
37
38
#include <pjsip/sip_msg.h>
38
39
 
39
 
class pjsip_msg;
 
40
struct pjsip_msg;
40
41
 
41
42
namespace sip_utils {
42
43
    /**
45
46
     */
46
47
    std::string fetchHeaderValue(pjsip_msg *msg, const std::string &field);
47
48
 
48
 
    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);
49
51
 
50
52
    void stripSipUriPrefix(std::string& sipUri);
51
53
 
52
54
    std::string parseDisplayName(const char * buffer);
 
55
 
 
56
    std::vector<std::string> getIPList(const std::string &name);
53
57
}
54
58
 
55
59
#endif // SIP_UTILS_H_