Rename safe_spawn/2 to safe_spawn_fun/2. origin2str: remove default value and instead make sure we always pass this function a siporigin record(). implement check_for_tables/2 and call it from startup functions to detect non-bootstrapped Mnesia database. safe_spawn_child: use try-catch instead of just catch to properly detect errors. process and parse_packet: use try-catch instead of just catch to properly detect errors. Also pass errors on upstreams to get the SIP message handler to actually exit with an error (thus causing server transaction to send an error response). Consolidate fix_topvia_received and fix_topvia_rport into fix_topvia_received_rport. Less processing and less code. Fix rport bug where we forgot to set received= if request already had an rport value. remove_route_matching_me: Don't do more decoding-enconding of Route headers than we need to. check_packet(Response, ...): Check for overly large response code. Add more functions documentation. Add more test cases. Some are disabled because of a compiler bug in R10B-2 though. Enable them when R10B-3 is out.
Rename safe_spawn/2 to safe_spawn_fun/2.
origin2str: remove default value and instead make sure we always pass this
function a siporigin record().
implement check_for_tables/2 and call it from startup functions to detect
non-bootstrapped Mnesia database.
safe_spawn_child: use try-catch instead of just catch to properly detect
errors.
process and parse_packet: use try-catch instead of just catch to properly
detect errors. Also pass errors on upstreams to get the SIP message handler
to actually exit with an error (thus causing server transaction to send an
error response).
Consolidate fix_topvia_received and fix_topvia_rport into
fix_topvia_received_rport. Less processing and less code.
Fix rport bug where we forgot to set received= if request already had an
rport value.
remove_route_matching_me: Don't do more decoding-enconding of Route headers
than we need to.
check_packet(Response, ...): Check for overly large response code.
Add more functions documentation.
Add more test cases. Some are disabled because of a compiler bug in R10B-2
though. Enable them when R10B-3 is out.


git-svn-id: 3f662d0c7823f96a484d6a9a7c90f2d7866b6747@817 e454d3dc-12ff-0310-9b8b-94264392205f

bernardd/yxa,bernardd/yxa,bernardd/yxa,bernardd/yxa