Module sipdst

Functions to resolve URL's or Via headers into sipdst records.

Introduced in: 15 Apr 2004 by Fredrik Thulin <ft@it.su.se>

Authors: Fredrik Thulin (ft@it.su.se).

Description

Functions to resolve URL's or Via headers into sipdst records.

Function Index

debugfriendly/1 Format a single sipdst or a list of them into a format suitable for debug logging.
dst2str/1 Turn a sipdst into something printable (for debugging).
get_response_destination/1 Turn the top Via header from a response into a sipdst record with the protocol, host and port the response should be sent to.
url_to_dstlist/2 Just a helper function for when manually creating dst lists during development/problem solving.
url_to_dstlist/3 Make a list of sipdst records from an URL.

Function Details

debugfriendly/1

debugfriendly(Dst::In) -> [string()]

Format a single sipdst or a list of them into a format suitable for debug logging.

dst2str/1

dst2str(Dst) -> string()

returns: Dst as string()

Turn a sipdst into something printable (for debugging)

get_response_destination/1

get_response_destination(TopVia) -> #sipdst{} | error

Turn the top Via header from a response into a sipdst record with the protocol, host and port the response should be sent to.

url_to_dstlist/2

url_to_dstlist(URL, ApproxMsgSize) -> [#sipdst{}] | {error, Reason}

Equivalent to url_to_dstlist(URL, ApproxMsgSize, URL).

Just a helper function for when manually creating dst lists during development/problem solving.

url_to_dstlist/3

url_to_dstlist(URL, ApproxMsgSize, ReqURI) -> [#sipdst{}] | {error, Reason}

Make a list of sipdst records from an URL. We need the approximate message size to determine if we can use UDP or have to do TCP only.


Generated by EDoc, Oct 17 2007, 16:48:26.