Documentation |
Documentation.Script-CoreVar-3-6 HistoryHide minor edits - Show changes to markup March 07, 2025, at 02:54 PM
by
- Changed lines 812-813 from:
$socket_out - read-write variable for reading or changing the outbound socket of the message. Originally (before being written/changed) it will return the same socket description as $socket_in (the inbound socket will be used as outbound socket also). to:
$socket_out - read-write variable for reading or changing the outbound socket of the message. Originally (before being written/changed) it will return the same socket description as $socket_in (the inbound socket will be used as outbound socket also). In addition, it also supports the January 28, 2025, at 11:36 AM
by
- Added lines 328-361:
Authorize Challenge Algorithm - $challenge.algorithm 🔗$challenge.algorithm - the algorithm value taken from the WWW-Authorize or Proxy-Authorize header. Authorize Challenge Realm - $challenge.realm 🔗$challenge.realm - the realm value taken from the WWW-Authorize or Proxy-Authorize header. Authorize Challenge Nonce - $challenge.nonce 🔗$challenge.nonce - the nonce value taken from the WWW-Authorize or Proxy-Authorize header. Authorize Challenge Opaque - $challenge.opaque 🔗$challenge.opaque - the opaque value taken from the WWW-Authorize or Proxy-Authorize header. Authorize Challenge QOP - $challenge.qop 🔗$challenge.qop - the qop value taken from the WWW-Authorize or Proxy-Authorize header. Authorize Challenge IK - $challenge.ik 🔗$challenge.ik - the ik value taken from the WWW-Authorize or Proxy-Authorize header. Authorize Challenge CK - $challenge.ck 🔗$challenge.ck - the ck value taken from the WWW-Authorize or Proxy-Authorize header. June 10, 2024, at 05:34 PM
by
- Changed lines 685-687 from:
Return value of previously executed route - $return 🔗$re - reference to Remote-Party-ID header URI to:
Return value - $return 🔗$return - Returns the value of the previously executed route. The variable receives an index, starting with 0, indicating the return value that needs to be read. June 10, 2024, at 05:31 PM
by
- Changed line 685 from:
Return value of previously executed route 🔗to:
Return value of previously executed route - $return 🔗June 10, 2024, at 05:31 PM
by
- Added lines 684-687:
July 21, 2022, at 06:57 PM
by
- Changed line 777 from:
$socket_out = "udp:11.11.11:5060"; to:
$socket_out = "udp:11.11.11.11:5060"; June 22, 2022, at 07:51 PM
by
- Changed line 888 from:
Route Name - $route 🔗to:
Route Name (Full) - $route 🔗June 22, 2022, at 10:16 AM
by
- Changed line 913 from:
Route Name - $route.name 🔗to:
Route Name - $route.name 🔗June 22, 2022, at 10:14 AM
by
- Added lines 900-919:
Route Type - $route.type 🔗$route.type - Access the type of the current route. May be indexed, using positive or negative indexes.
Route Name - $route.name 🔗$route.name - Access the name of the current route. May be indexed, using positive or negative indexes.
December 17, 2021, at 08:43 PM
by
- Changed lines 356-357 from:
Fields of a contact instance - $ct.dields 🔗to:
Fields of a contact instance - $ct.fields 🔗December 17, 2021, at 08:41 PM
by
- Changed lines 62-63 from:
Script variablesto:
Script variables 🔗Changed lines 91-92 from:
AVP variablesto:
AVP variables 🔗Changed lines 159-160 from:
Scripting Variablesto:
Scripting Variables 🔗Changed lines 172-173 from:
URI in SIP Request's P-Asserted-Identity header 🔗to:
URI in SIP Request's P-Asserted-Identity header - $ai 🔗Changed lines 178-179 from:
Authentication Digest URI 🔗to:
Authentication Digest URI - $adu 🔗Changed lines 184-185 from:
Authentication realm 🔗to:
Authentication realm - $ar 🔗Changed lines 190-191 from:
Auth username user 🔗to:
Auth username user - $au 🔗Changed lines 196-197 from:
Auth username domain 🔗to:
Auth username domain - $ad 🔗Changed lines 202-203 from:
Auth nonce 🔗to:
Auth nonce - $an 🔗Changed lines 207-208 from:
Auth response 🔗to:
Auth response - $auth.resp 🔗Changed lines 213-214 from:
Auth nonce 🔗to:
Auth nonce - $auth.nonce 🔗Changed lines 219-220 from:
Auth opaque 🔗to:
Auth opaque - $auth.opaque 🔗Changed lines 225-226 from:
Auth algorithm 🔗to:
Auth algorithm - $auth.alg 🔗Changed lines 231-232 from:
Auth QOP 🔗to:
Auth QOP - $auth.qop 🔗Changed lines 237-238 from:
Auth nonce count (nc) 🔗to:
Auth nonce count (nc) - $auth.nc 🔗Changed lines 243-244 from:
Auth whole username 🔗to:
Auth whole username - $aU 🔗Changed lines 248-249 from:
Acc username 🔗to:
Acc username - $Au 🔗Changed lines 253-254 from:
Argument options 🔗to:
Argument options - $argv 🔗Changed lines 263-264 from:
Branch flags list 🔗to:
Branch flags list - $bf 🔗Changed lines 269-270 from:
Branch 🔗to:
Branch - $branch 🔗Changed lines 282-283 from:
Branch fields 🔗to:
Branch fields - $branch.fields 🔗Changed lines 317-318 from:
Branch flag 🔗to:
Branch flag - $branch.flag 🔗Changed lines 330-331 from:
Call-Id 🔗to:
Call-Id - $ci 🔗Changed lines 336-337 from:
Content-Length 🔗to:
Content-Length - $cl 🔗Changed lines 342-343 from:
CSeq number 🔗to:
CSeq number - $cs 🔗Changed lines 348-349 from:
Contact instance 🔗to:
Contact instance - $ct 🔗Changed lines 357-358 from:
Fields of a contact instance 🔗to:
Fields of a contact instance - $ct.dields 🔗Changed lines 374-375 from:
Content-Type 🔗to:
Content-Type - $cT 🔗Changed lines 384-385 from:
Domain of destination URI 🔗to:
Domain of destination URI - $dd 🔗Changed lines 392-393 from:
Diversion header URI 🔗to:
Diversion header URI - $di 🔗Changed lines 398-399 from:
Diversion "privacy" parameter 🔗to:
Diversion "privacy" parameter - $dip 🔗Changed lines 404-405 from:
Diversion "reason" parameter 🔗to:
Diversion "reason" parameter - $dir 🔗Changed lines 410-411 from:
Port of destination URI 🔗to:
Port of destination URI - $dp 🔗Changed lines 418-419 from:
Transport protocol of destination URI 🔗to:
Transport protocol of destination URI - $dP 🔗Changed lines 424-425 from:
Destination set 🔗to:
Destination set - $ds 🔗Changed lines 430-431 from:
Destination URI 🔗to:
Destination URI - $du 🔗Changed lines 439-440 from:
Error class 🔗to:
Error class - $err.class 🔗Changed lines 445-446 from:
Error level 🔗to:
Error level - $err.level 🔗Changed lines 451-452 from:
Error info 🔗to:
Error info - $err.info 🔗Changed lines 457-458 from:
Error reply code 🔗to:
Error reply code - $err.rcode 🔗Changed lines 463-464 from:
Error reply reason 🔗to:
Error reply reason - $err.rreason 🔗Changed lines 469-470 from:
From URI domain 🔗to:
From URI domain - $fd 🔗Changed lines 475-476 from:
From display name 🔗to:
From display name - $fn 🔗Changed lines 480-481 from:
From tag 🔗to:
From tag - $ft 🔗Changed lines 486-487 from:
From URI 🔗to:
From URI - $fu 🔗Changed lines 492-493 from:
From URI username 🔗to:
From URI username - $fU 🔗Changed lines 497-498 from:
OpenSIPS Log level 🔗to:
OpenSIPS Log level - $log_level 🔗Changed lines 523-524 from:
Message Flags 🔗to:
Message Flags - $mf 🔗Changed lines 529-530 from:
SIP message ID 🔗to:
SIP message ID - $mi 🔗Changed lines 535-536 from:
SIP message length 🔗to:
SIP message length - $ml 🔗Changed lines 541-542 from:
Message flag 🔗to:
Message flag - $msg.flag 🔗Changed lines 553-554 from:
Message is request 🔗to:
Message is request - $msg.is_request 🔗Changed lines 565-566 from:
Message type 🔗to:
Message type - $msg.type 🔗Changed lines 573-574 from:
Domain in SIP Request's original URI 🔗to:
Domain in SIP Request's original URI - $od 🔗Changed lines 579-580 from:
Port of SIP request's original URI 🔗to:
Port of SIP request's original URI - $op 🔗Changed lines 585-586 from:
Transport protocol of SIP request original URI 🔗to:
Transport protocol of SIP request original URI - $oP 🔗Changed lines 591-592 from:
SIP Request's original URI 🔗to:
SIP Request's original URI - $ou 🔗Changed lines 597-598 from:
Username in SIP Request's original URI 🔗to:
Username in SIP Request's original URI - $oU 🔗Changed line 603 from:
Route parameter 🔗to:
Route parameter - $param 🔗Changed lines 622-623 from:
Domain in SIP Request's P-Preferred-Identity header URI 🔗to:
Domain in SIP Request's P-Preferred-Identity header URI - $pd 🔗Changed lines 628-629 from:
Display Name in SIP Request's P-Preferred-Identity header 🔗to:
Display Name in SIP Request's P-Preferred-Identity header - $pn 🔗Changed lines 634-635 from:
Process id 🔗to:
Process id - $pp 🔗Changed lines 640-641 from:
User in SIP Request's P-Preferred-Identity header URI 🔗to:
User in SIP Request's P-Preferred-Identity header URI - $pU 🔗Changed lines 646-647 from:
URI in SIP Request's P-Preferred-Identity header 🔗to:
URI in SIP Request's P-Preferred-Identity header - $pu 🔗Changed lines 652-653 from:
Domain in SIP Request's URI 🔗to:
Domain in SIP Request's URI - $rd 🔗Changed lines 660-661 from:
Body of request/reply 🔗to:
Body of request/reply - $rb 🔗Changed lines 672-673 from:
Returned code 🔗to:
Returned code - $rc 🔗Changed lines 680-681 from:
Remote-Party-ID header URI 🔗to:
Remote-Party-ID header URI - $re 🔗Changed lines 686-687 from:
SIP request's method 🔗to:
SIP request's method - $rm 🔗Changed lines 692-693 from:
SIP request's port 🔗to:
SIP request's port - $rp 🔗Changed lines 700-701 from:
Transport protocol of SIP request URI 🔗to:
Transport protocol of SIP request URI - $rP 🔗Changed lines 706-707 from:
SIP reply's reason 🔗to:
SIP reply's reason - $rr 🔗Changed lines 712-713 from:
SIP reply's status 🔗to:
SIP reply's status - $rs 🔗Changed lines 718-719 from:
Refer-to URI 🔗to:
Refer-to URI - $rt 🔗Changed lines 724-725 from:
SIP Request's URI 🔗to:
SIP Request's URI - $ru 🔗Changed lines 732-733 from:
Username in SIP Request's URI 🔗to:
Username in SIP Request's URI - $rU 🔗Changed lines 740-741 from:
Q value of the SIP Request's URI 🔗to:
Q value of the SIP Request's URI - $ru_q 🔗Changed lines 747-748 from:
IP source address 🔗to:
IP source address - $si 🔗Changed lines 753-754 from:
Socket inbound 🔗to:
Socket inbound - $socket_in 🔗Changed lines 770-771 from:
Socket outbound 🔗to:
Socket outbound - $socket_out 🔗Changed lines 783-784 from:
Source port 🔗to:
Source port - $sp 🔗Changed lines 789-790 from:
To URI Domain 🔗to:
To URI Domain - $td 🔗Changed lines 795-796 from:
To display name 🔗to:
To display name - $tn 🔗Changed lines 801-802 from:
To tag 🔗to:
To tag - $tt 🔗Changed lines 807-808 from:
To URI 🔗to:
To URI - $tu 🔗Changed lines 813-814 from:
To URI Username 🔗to:
To URI Username - $tU 🔗Changed lines 819-820 from:
Formatted date and time 🔗to:
Formatted date and time - $time 🔗Changed lines 825-826 from:
Branch index 🔗to:
Branch index - $T_branch_idx 🔗Changed lines 831-832 from:
String formatted time 🔗to:
String formatted time - $Tf 🔗Changed lines 837-838 from:
Current unix time stamp in seconds 🔗to:
Current unix time stamp in seconds - $Ts 🔗Changed lines 843-844 from:
Current microseconds of the current second 🔗to:
Current microseconds of the current second - $Tsm 🔗Changed lines 849-850 from:
Startup unix time stamp 🔗to:
Startup unix time stamp - $TS 🔗Changed lines 855-856 from:
User agent header 🔗to:
User agent header - $ua 🔗Changed lines 861-862 from:
SIP Headers 🔗to:
SIP Headers - $hdr 🔗Changed line 888 from:
Route Name 🔗to:
Route Name - $route 🔗Changed line 903 from:
Current script line and file 🔗to:
Current script line and file - $cfg_line 🔗Changed lines 909-910 from:
Log level for xlog() 🔗to:
Log level for xlog() - $xlog_level 🔗Deleted lines 923-924:
December 17, 2021, at 08:35 PM
by
- Changed lines 172-173 from:
URI in SIP Request's P-Asserted-Identity headerto:
URI in SIP Request's P-Asserted-Identity header 🔗Changed lines 178-179 from:
Authentication Digest URIto:
Authentication Digest URI 🔗Changed lines 184-185 from:
Authentication realmto:
Authentication realm 🔗Changed lines 190-191 from:
Auth username userto:
Auth username user 🔗Changed lines 196-197 from:
Auth username domainto:
Auth username domain 🔗Changed lines 202-203 from:
Auth nonceto:
Auth nonce 🔗Changed lines 207-208 from:
Auth responseto:
Auth response 🔗Changed lines 213-214 from:
Auth nonceto:
Auth nonce 🔗Changed lines 219-220 from:
Auth opaqueto:
Auth opaque 🔗Changed lines 225-226 from:
Auth algorithmto:
Auth algorithm 🔗Changed lines 231-232 from:
Auth QOPto:
Auth QOP 🔗Changed lines 237-238 from:
Auth nonce count (nc)to:
Auth nonce count (nc) 🔗Changed lines 243-244 from:
Auth whole usernameto:
Auth whole username 🔗Changed lines 248-249 from:
Acc usernameto:
Acc username 🔗Changed lines 253-254 from:
Argument optionsto:
Argument options 🔗Changed lines 263-264 from:
Branch flags listto:
Branch flags list 🔗Changed lines 269-270 from:
Branchto:
Branch 🔗Changed lines 282-283 from:
Branch fieldsto:
Branch fields 🔗Changed lines 317-318 from:
Branch flagto:
Branch flag 🔗Changed lines 330-331 from:
Call-Idto:
Call-Id 🔗Changed lines 336-337 from:
Content-Lengthto:
Content-Length 🔗Changed lines 342-343 from:
CSeq numberto:
CSeq number 🔗Changed lines 348-349 from:
Contact instanceto:
Contact instance 🔗Changed lines 357-358 from:
Fields of a contact instanceto:
Fields of a contact instance 🔗Changed lines 374-375 from:
Content-Typeto:
Content-Type 🔗Changed lines 384-385 from:
Domain of destination URIto:
Domain of destination URI 🔗Changed lines 392-393 from:
Diversion header URIto:
Diversion header URI 🔗Changed lines 398-399 from:
Diversion "privacy" parameterto:
Diversion "privacy" parameter 🔗Changed lines 404-405 from:
Diversion "reason" parameterto:
Diversion "reason" parameter 🔗Changed lines 410-411 from:
Port of destination URIto:
Port of destination URI 🔗Changed lines 418-419 from:
Transport protocol of destination URIto:
Transport protocol of destination URI 🔗Changed lines 424-425 from:
Destination setto:
Destination set 🔗Changed lines 430-431 from:
Destination URIto:
Destination URI 🔗Changed lines 439-440 from:
Error classto:
Error class 🔗Changed lines 445-446 from:
Error levelto:
Error level 🔗Changed lines 451-452 from:
Error infoto:
Error info 🔗Changed lines 457-458 from:
Error reply codeto:
Error reply code 🔗Changed lines 463-464 from:
Error reply reasonto:
Error reply reason 🔗Changed lines 469-470 from:
From URI domainto:
From URI domain 🔗Changed lines 475-476 from:
From display nameto:
From display name 🔗Changed lines 480-481 from:
From tagto:
From tag 🔗Changed lines 486-487 from:
From URIto:
From URI 🔗Changed lines 492-493 from:
From URI usernameto:
From URI username 🔗Changed lines 497-498 from:
OpenSIPS Log levelto:
OpenSIPS Log level 🔗Changed lines 523-524 from:
Message Flagsto:
Message Flags 🔗Changed lines 529-530 from:
SIP message IDto:
SIP message ID 🔗Changed lines 535-536 from:
SIP message lengthto:
SIP message length 🔗Changed lines 541-542 from:
Message flagto:
Message flag 🔗Changed lines 553-554 from:
Message is requestto:
Message is request 🔗Changed lines 565-566 from:
Message typeto:
Message type 🔗Changed lines 573-574 from:
Domain in SIP Request's original URIto:
Domain in SIP Request's original URI 🔗Changed lines 579-580 from:
Port of SIP request's original URIto:
Port of SIP request's original URI 🔗Changed lines 585-586 from:
Transport protocol of SIP request original URIto:
Transport protocol of SIP request original URI 🔗Changed lines 591-592 from:
SIP Request's original URIto:
SIP Request's original URI 🔗Changed lines 597-598 from:
Username in SIP Request's original URIto:
Username in SIP Request's original URI 🔗Changed line 603 from:
Route parameterto:
Route parameter 🔗Changed lines 622-623 from:
Domain in SIP Request's P-Preferred-Identity header URIto:
Domain in SIP Request's P-Preferred-Identity header URI 🔗Changed lines 628-629 from:
Display Name in SIP Request's P-Preferred-Identity headerto:
Display Name in SIP Request's P-Preferred-Identity header 🔗Changed lines 634-635 from:
Process idto:
Process id 🔗Changed lines 640-641 from:
User in SIP Request's P-Preferred-Identity header URIto:
User in SIP Request's P-Preferred-Identity header URI 🔗Changed lines 646-647 from:
URI in SIP Request's P-Preferred-Identity headerto:
URI in SIP Request's P-Preferred-Identity header 🔗Changed lines 652-653 from:
Domain in SIP Request's URIto:
Domain in SIP Request's URI 🔗Changed lines 660-661 from:
Body of request/replyto:
Body of request/reply 🔗Changed lines 672-673 from:
Returned codeto:
Returned code 🔗Changed lines 680-681 from:
Remote-Party-ID header URIto:
Remote-Party-ID header URI 🔗Changed lines 686-687 from:
SIP request's methodto:
SIP request's method 🔗Changed lines 692-693 from:
SIP request's portto:
SIP request's port 🔗Changed lines 700-701 from:
Transport protocol of SIP request URIto:
Transport protocol of SIP request URI 🔗Changed lines 706-707 from:
SIP reply's reasonto:
SIP reply's reason 🔗Changed lines 712-713 from:
SIP reply's statusto:
SIP reply's status 🔗Changed lines 718-719 from:
Refer-to URIto:
Refer-to URI 🔗Changed lines 724-725 from:
SIP Request's URIto:
SIP Request's URI 🔗Changed lines 732-733 from:
Username in SIP Request's URIto:
Username in SIP Request's URI 🔗Changed lines 740-741 from:
Q value of the SIP Request's URIto:
Q value of the SIP Request's URI 🔗Changed lines 747-748 from:
IP source addressto:
IP source address 🔗Changed lines 753-754 from:
Socket inboundto:
Socket inbound 🔗Changed lines 770-771 from:
Socket outboundto:
Socket outbound 🔗Changed lines 783-784 from:
Source portto:
Source port 🔗Changed lines 789-790 from:
To URI Domainto:
To URI Domain 🔗Changed lines 795-796 from:
To display nameto:
To display name 🔗Changed lines 801-802 from:
To tagto:
To tag 🔗Changed lines 807-808 from:
To URIto:
To URI 🔗Changed lines 813-814 from:
To URI Usernameto:
To URI Username 🔗Changed lines 819-820 from:
Formatted date and timeto:
Formatted date and time 🔗Changed lines 825-826 from:
Branch indexto:
Branch index 🔗Changed lines 831-832 from:
String formatted timeto:
String formatted time 🔗Changed lines 837-838 from:
Current unix time stamp in secondsto:
Current unix time stamp in seconds 🔗Changed lines 843-844 from:
Current microseconds of the current secondto:
Current microseconds of the current second 🔗Changed lines 849-850 from:
Startup unix time stampto:
Startup unix time stamp 🔗Changed lines 855-856 from:
User agent headerto:
User agent header 🔗Changed lines 861-862 from:
SIP Headersto:
SIP Headers 🔗Changed line 888 from:
Route Nameto:
Route Name 🔗Deleted line 901:
Changed line 903 from:
Current script line and fileto:
Current script line and file 🔗Changed lines 909-910 from:
Log level for xlog()to:
Log level for xlog() 🔗Changed line 966 from:
@] to:
@] June 14, 2021, at 01:59 PM
by
- Deleted lines 261-266:
Deleted lines 478-484:
Deleted lines 638-643:
Deleted lines 744-756:
Received IP address (Obsoleted with OpenSIPS 3.6)Use $socket_in(ip) instead. Received port (Obsoleted with OpenSIPS 3.6)Use $socket_in(port) instead. November 25, 2020, at 02:00 PM
by
- Changed line 923 from:
to:
Changed lines 928-929 from:
to:
November 25, 2020, at 01:59 PM
by
- Added line 925:
November 25, 2020, at 01:53 PM
by
- Changed line 928 from:
to:
November 25, 2020, at 01:52 PM
by
- Changed lines 921-922 from:
$route - Access route names of the current route call stack. Usage examples (assuming a route call stack of "route -> route[A] -> route[B]"): to:
$route - Access route names of the current route call stack. Usage examples (assuming a route call stack of "route > route[A] > route[B]"): Added line 928:
November 25, 2020, at 01:52 PM
by
- Changed line 921 from:
$route - Access the current route call stack. Usage examples (assuming a route call stack of "route -> route[A] -> route[B]"): to:
$route - Access route names of the current route call stack. Usage examples (assuming a route call stack of "route -> route[A] -> route[B]"): November 25, 2020, at 01:45 PM
by
- Changed line 927 from:
to:
November 25, 2020, at 01:44 PM
by
- Changed lines 921-924 from:
$route - Access the current route call stack. Usage examples (assuming a route call stack of "route -> A -> B"):
to:
$route - Access the current route call stack. Usage examples (assuming a route call stack of "route -> route[A] -> route[B]"):
Changed lines 926-927 from:
to:
November 25, 2020, at 01:42 PM
by
- Changed lines 919-921 from:
Route Type$rT - Holds the current route type as a string. Useful for determining the original route type when inside another route in script, such as a route called from an onreply_route. Allows for more generic and reusable routes such as a logging route which includes the route type in the logged message. to:
Route Name$route - Access the current route call stack. Usage examples (assuming a route call stack of "route -> A -> B"):
September 03, 2020, at 11:47 AM
by
- Changed line 70 from:
to:
June 26, 2020, at 11:53 AM
by
- Changed line 269 from:
Branch flags maskto:
Branch flags listMay 18, 2020, at 11:09 PM
by
- Added lines 564-583:
Message is request$msg.is_request - this variable tells if the current SIP message is a request or not. The returned values are 1/"true" (request) and 0/"false" (reply). xlog("---- this message is a request: $msg.is_request \n"); if ( $msg.is_request ) xlog("---- yes, it is a request\n"); Message type$msg.type - this variable returns the type of the current message. The returned values are "request" (request) or "reply" (reply). xlog("---- this message is a SIP $msg.type \n"); May 13, 2020, at 12:13 AM
by
- Changed lines 269-270 from:
Branch flagsto:
Branch flags maskChanged lines 325-326 from:
$branch.flag(flag_name)[] - this variable provides read/write access to the value of a certain branch flag (identified by name). The values accepted for writing are 1 (set) and 0 (unset). The returned values are 1/"true" (set) and 0/"false" (unset). An index is accepted, in order to access the flag for a certain branch. By default the 0 (or current) branch accessed (for more on index, see the the branch.fields variable) - note that "*" is not accepted. to:
$branch.flag(flag_name)[] - this variable provides read/write access to the value of a single certain branch flag (identified by name). The values accepted for writing are 1 (set) and 0 (unset). The returned values are 1/"true" (set) and 0/"false" (unset). An index is accepted, in order to access the flag for a certain branch. By default the 0 (or current) branch accessed (for more on index, see the the branch.fields variable) - note that "*" is not accepted. Added lines 551-562:
Message flag$msg.flag(flag_name) - this variable provides read/write access to the value of a single certain message flag (identified by name). The values accepted for writing are 1 (set) and 0 (unset). The returned values are 1/"true" (set) and 0/"false" (unset). setflag("X"); xlog("---- flag value is $msg.flag(X) \n"); $msg.flag(X) = off; xlog("---- flag value is $msg.flag(X) \n"); May 13, 2020, at 12:10 AM
by
- Changed line 290 from:
$branch() - this variable provides read/write access to all fields/attributes of an already existing branch (priorly created with append_branch() ). The fields of the branch are: to:
$branch() - this variable provides read/write access to all fields/attributes of an already existing branch (prior created with append_branch() ). The fields of the branch are: Added lines 320-332:
Branch flag$branch.flag(flag_name)[] - this variable provides read/write access to the value of a certain branch flag (identified by name). The values accepted for writing are 1 (set) and 0 (unset). The returned values are 1/"true" (set) and 0/"false" (unset). An index is accepted, in order to access the flag for a certain branch. By default the 0 (or current) branch accessed (for more on index, see the the branch.fields variable) - note that "*" is not accepted. setbflag("X"); xlog("---- flag value is $branch.flag(X) \n"); $branch.flag(X) = off; xlog("---- flag value is $branch.flag(X) \n"); April 23, 2020, at 02:12 PM
by
- Changed lines 263-266 from:
Address family$af - The address family of the received SIP message. It's value is "INET" if the message was received over IPv4 or "INET6" if the message was received over IPv6. to:
Address family (Obsoleted with OpenSIPS 3.6)Use $socket_in(af) instead. Added line 752:
April 23, 2020, at 01:15 PM
by
- Changed lines 475-482 from:
See $socket_out $fs - reference to the forced socket for message sending (if any) in the form proto:ip:port It is R/W variable (you can assign values to it routing script) to:
Use $socket_out instead. Changed lines 606-610 from:
Protocol of received message$pr or $proto - protocol of received message (UDP, TCP, TLS, SCTP, WS) to:
Changed lines 721-725 from:
Received IP address$Ri - reference to IP address of the interface where the request has been received to:
Received IP address (Obsoleted with OpenSIPS 3.6)Use $socket_in(ip) instead. Changed lines 727-729 from:
Received port$Rp - reference to the port where the message was received to:
Received port (Obsoleted with OpenSIPS 3.6)Use $socket_in(port) instead. April 23, 2020, at 01:08 PM
by
- Changed line 126 from:
to:
Changed lines 159-160 from:
Pseudo Variablesto:
Scripting VariablesAdded line 171:
Added lines 176-177:
Added lines 182-183:
Added lines 188-189:
Added line 195:
Added line 201:
Changed line 206 from:
to:
Added line 212:
Added line 218:
Added line 224:
Changed lines 229-230 from:
to:
Added line 236:
Added line 242:
Added line 247:
Added line 252:
Added line 262:
Added line 267:
Added lines 272-273:
Added lines 285-286:
Added lines 320-321:
Added lines 326-327:
Added lines 332-333:
Added lines 338-339:
Added lines 347-348:
Added line 365:
Changed lines 373-375 from:
to:
Added lines 382-383:
Added lines 388-389:
Added lines 394-395:
Added lines 400-401:
Added lines 408-409:
Added lines 414-415:
Added lines 420-421:
Added lines 429-430:
Added lines 435-436:
Added lines 441-442:
Added lines 447-448:
Added lines 453-454:
Added lines 459-460:
Added lines 465-466:
Added lines 471-472:
Added lines 481-483:
Added lines 488-489:
Added lines 494-495:
Added lines 521-522:
Added lines 525-526:
Added lines 531-532:
Added lines 537-538:
Added lines 543-544:
Added lines 549-550:
Added lines 555-556:
Added lines 561-562:
Added lines 567-568:
Added lines 573-574:
Added lines 592-593:
Added lines 598-599:
Added lines 604-605:
Added lines 610-611:
Added lines 615-616:
Added lines 621-622:
Added lines 627-628:
Added lines 635-636:
Added line 648:
Added lines 655-656:
Added lines 661-662:
Added lines 667-668:
Added lines 675-676:
Added lines 681-682:
Added lines 687-688:
Added lines 693-694:
Added lines 699-700:
Added lines 707-708:
Added lines 715-716:
Added lines 723-724:
Added lines 729-730:
Added lines 735-736:
Added lines 741-742:
Added line 758:
Added line 771:
Added lines 776-777:
Added lines 782-783:
Added lines 788-789:
Added lines 794-795:
Added lines 800-801:
Added lines 806-807:
Added lines 812-813:
Added lines 818-819:
Added lines 824-825:
Added lines 830-831:
Added lines 836-837:
Added lines 842-843:
Added lines 848-849:
Added lines 875-876:
Added lines 880-882:
Added line 888:
April 23, 2020, at 12:49 PM
by
- Changed line 622 from:
$socket_out - read-write variable for reading or changing the outbound socket of the message. Originally (before being written/changed) it will return the same socket description as $socket_in (the inbound socket will be used as outbound socket also). to:
$socket_out - read-write variable for reading or changing the outbound socket of the message. Originally (before being written/changed) it will return the same socket description as $socket_in (the inbound socket will be used as outbound socket also). Changed lines 624-629 from:
The variable also offers detailed read-only access to various attributes/sub-fields of the socket, as $socket_out(). It provides the same sub-fields as the $socket_in variable. to:
The variable also offers detailed read-only access to various attributes/sub-fields of the socket, as $socket_out()'''. It provides the same sub-fields as the $socket_in variable. $socket_out = "udp:11.11.11:5060"; xlog("The outbound port is $socket_out(port)\n"); April 23, 2020, at 12:45 PM
by
- Added lines 604-625:
Socket inbound$socket_in - read-only variable to get the description (proto:ip:port format) of the inbound socket (used for receiving the message).
For more details on the meaning of these sub-fields, please also read about the socket definition. Socket outbound$socket_out - read-write variable for reading or changing the outbound socket of the message. Originally (before being written/changed) it will return the same socket description as $socket_in (the inbound socket will be used as outbound socket also).
April 23, 2020, at 12:28 PM
by
- Changed lines 407-408 from:
Forced socketto:
Forced socket (Obsoleted with OpenSIPS 3.6)See $socket_out Deleted lines 599-602:
Script flags (Removed in OpenSIPS 3.6)$sf - displays a list with the script flags set for the current SIP request March 08, 2019, at 09:03 PM
by
- Changed lines 691-692 from:
Log level in xlog$xlog_level - holds the string expansion of the log level of the xlog message to:
Log level for xlog()$xlog_level - allows to set /reset the xlog() logging level on per-process bases. Shortly said, you can read the verbosity level for the xlog() calls or you can temporary change the level per process bases. Changed lines 699-704 from:
xlog("$xlog_level some text\n") to:
xlog("current verbosity is $xlog_level \n"); $xlog_level = L_DBG; # force local xlogging limit to DBG ... (set of xlogs) ... $xlog_level = NULL; # reset to initial value Changed lines 706-709 from:
will generate: ERROR: some text to:
May 15, 2018, at 07:11 PM
by
- Added lines 664-665:
$(hdr_name[N]) - returns the name of the N-th header. The first header name is obtained for N=0, the second for N=1, a.s.o. To print the last header name use -1, the second last -2 a.s.o. No white spaces are allowed inside the specifier (before }, before or after {, [, ] symbols). When N='*', all header names are printed. July 14, 2017, at 06:03 PM
by
- Changed line 13 from:
(:toc-float Table of Content:) to:
(:toc-float Table of Contents:) July 14, 2017, at 12:53 PM
by
- Changed line 234 from:
$af - username for accounting purposes. It's a selective pseudo variable (inherited from acc module). It returns $au if exits or From username otherwise. to:
$Au - username for accounting purposes. It's a selective pseudo variable (inherited from acc module). It returns $au if exits or From username otherwise. July 13, 2017, at 07:38 PM
by
- Changed lines 234-235 from:
$Au - username for accounting purposes. It's a selective pseudo variable (inherited from acc module). It returns $au if exits or From username otherwise. to:
$af - username for accounting purposes. It's a selective pseudo variable (inherited from acc module). It returns $au if exits or From username otherwise. Added lines 244-247:
Address family$af - The address family of the received SIP message. It's value is "INET" if the message was received over IPv4 or "INET6" if the message was received over IPv6. January 19, 2017, at 12:39 PM
by
- Changed lines 524-525 from:
$rb - reference to message body
to:
$rb - reference to the body or a body part of the SIP message
Added lines 529-530:
October 13, 2016, at 01:21 PM
by
- Changed lines 51-52 from:
AVPs are read write and an existing AVP can be even deleted (removed). An AVP may contain multiple values - a new assignment (or write operation) will add a new value to the AVP; the values are kept in "last added first to be used" order (stack). to:
AVPs are read write and an existing AVP can be even deleted (removed). An AVP may contain multiple values - a new assignment (or write operation) will add a new value to the AVP; the values are kept in "last added first to be used" order (stack). June 23, 2016, at 06:45 PM
by
- add $xlog_levelAdded lines 681-691:
Log level in xlog$xlog_level - holds the string expansion of the log level of the xlog message Example: xlog("$xlog_level some text\n") will generate: ERROR: some text March 24, 2016, at 09:23 PM
by - March 24, 2016, at 09:20 PM
by
- Deleted lines 247-250:
Branch flags (hexadecimal) (Removed in OpenSIPS 1.9)$bF - reference to branch flags - hexa output Added lines 420-438:
OpenSIPS Log level$log_level - changes the log level for the current process ; the log level can be set to a new value (see possible values or it can be reset back to the global log level. This function is very helpful if you are tracing and debugging only a specific piece of code. Example of usage: log_level= -1 # errors only ..... { ...... $log_level = 4; # set the debug level of the current process to DBG uac_replace_from(....); $log_level = NULL; # reset the log level of the current process to its default level ....... } Deleted lines 446-449:
Message Flags (hexadecimal) (Removed in OpenSIPS 1.9)$mF -reference to message/transaction flags set for current SIP request in hexa Deleted lines 594-597:
Script flags (hexadecimal) (Removed in OpenSIPS 1.9)$sF - reference to script flags - hexa output March 07, 2016, at 05:39 PM
by
- Changed lines 581-583 from:
Script flags$sf - displays a list with the script flags set for the current SIP request to:
Script flags (Removed in OpenSIPS 3.6)$sf - displays a list with the script flags set for the current SIP request November 20, 2015, at 04:54 PM
by
- Changed line 672 from:
$cfg_line - Holds the current line of the action being executed, useful for logging purposes to:
$cfg_line - Holds the current line from the script of the action being executed, useful for logging purposes \\ November 20, 2015, at 04:21 PM
by
- add $cfg_line $cfg_file documentationAdded lines 670-673:
Current script line and file$cfg_line - Holds the current line of the action being executed, useful for logging purposes $cfg_file - Holds the current name of the cfg file being executed, useful when using multiple scripts via the include statement May 19, 2015, at 04:50 PM
by
- Changed line 494 from:
$pr or $proto - protocol of received message (UDP, TCP, TLS, SCTP) to:
$pr or $proto - protocol of received message (UDP, TCP, TLS, SCTP, WS) March 13, 2015, at 07:12 PM
by
- Changed lines 333-337 from:
$cT - reference to body of content-type header and also the content-type headers inside a multi-part body
to:
$cT - reference to body of Content-Type header and also the content-type headers inside a multi-part body
|