Functions
<function>loose_route()</function> The function performs loose routing as defined in RFC3261 and will set Avp value passed in Route header that were created by record_route. If ftag!=tag.from then from/to are flipped. <function>loose_route</function> usage ... loose_route(); ...
<function>strict_route()</function> -- deprecated If there are any Route HFs in the message, the function takes the first one, rewrites Request-URI with it's value and removes the first URI from Route HFs. <function>strict_route</function> usage ... strict_route(); ...
<function>record_route()</function> The function adds a new Record-Route header field. The header field will be inserted in the message before any other Record-Route header fields. Avp marked using setavpflag, flag dialog_cookie will be inserted as serialized parameter of record-route header. Note that only user class AVPs should be passed as cookies, i.e. domain and global should be avoided. <function>record_route</function> usage avpflags dialog_cookie; # must be declared when used in script ... setavpflag($cookie, "dialog_cookie"); setavpflag("$f./^dlg_/", "dialog_cookie"); record_route(); ...
<function>record_route_preset(string)</function> This function will put the string into Record-Route, don't use unless you know what you are doing. Meaning of the parameters is as follows: string - String to be inserted into the header field. <function>record_route_preset</function> usage ... record_route_preset("1.2.3.4:5090"); ...