Functions
m_store(mode, next_hop)
The method stores certain parts of the current SIP request (it
should be called when the request type is MESSAGE and the
destination user is offline or his UA does not support MESSAGE
requests). If the user is registered with a UA which does not
support MESSAGE requests you should not use mode="0"
if you have changed the request uri with the contact address of
user's UA.
Meaning of the parameters is as follows:
mode - specifies what to save as R-URI.
"0" - first check if new_uri is an address of
record. If yes, then use it and store it as R-URI, otherwise look at
R-URI and, if necessary, at URI from "To" header.
"1" - look first at R-URI and then at URI from
"To" header.
"2" - look only at URI form "To" header.
next_hop (optional) - specifies next hop for sending
outgoing messages (use as "outbound
proxy"). Its value can be unset, empty or set to a sip URI like
"sip:127.0.0.1:5060".
m_dump(next_hop)
The method sends stored messages for the SIP user that is going to
register to his actual contact address. The method should be called
when a REGISTER request is received and the "Expire" header has a
value greater than zero. The parameter can contain machine used as
"outbound proxy" or can be empty.
Meaning of the parameters is as follows:
next_hop (optional) - specifies next hop for sending
outgoing messages (use as "outbound
proxy"). Its value can be unset, empty or set to a sip URI like
"sip:127.0.0.1:5060".