Skip to content

Commit f878a06

Browse files
committed
cookbooks/devel/pseudovariables: formatting updates
1 parent ad4ec6d commit f878a06

1 file changed

Lines changed: 15 additions & 13 deletions

File tree

docs/cookbooks/devel/pseudovariables.md

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,13 @@ Predefined pseudo-variables are listed in alphabetical order.
4444
**$\_s(format)** - returns the string after evaluating all
4545
pseudo-variables in format
4646

47+
``` shell
4748
$var(x) = "sip:" + $rU + "@" + $fd;
4849

4950
# is equivalent of:
5051

5152
$var(x) = $_s(sip:$rU@$fd);
53+
```
5254

5355
### $ai - URI in P-Asserted-Identity header
5456

@@ -108,23 +110,23 @@ additional branches, the main branch can be accessed using $ru and $du.
108110
additional branches - the branch_route will be called once for each one
109111
of them.)
110112

111-
The 'name' can be:
113+
The `name` can be:
112114

113-
- uri - return uri of the branch
114-
- dst_uri - return destination uri (next hop address)
115-
- path - return the path vector for the branch
116-
- q - return the q value of the branch as integer `0..100` (representing `q * 100`)
117-
- send_socket - return the socket to be used to send the branch
118-
- count - return the number of the branches
119-
- flags - return the branch flags value
120-
- ruid - (readonly) - return the ruid of the branch (Record internal
115+
- `uri` - return uri of the branch
116+
- `dst_uri` - return destination uri (next hop address)
117+
- `path` - return the path vector for the branch
118+
- `q` - return the q value of the branch as integer `0..100` (representing `q * 100`)
119+
- `send_socket` - return the socket to be used to send the branch
120+
- `count` - return the number of the branches
121+
- `flags` - return the branch flags value
122+
- `ruid` - (readonly) - return the ruid of the branch (Record internal
121123
Unique ID from usrloc
122-
- location_ua - (readonly) - user agent from the location record
123-
- instance - (readonly) - the value of instance field
124-
- otcpid - outbound tcp connection id
124+
- `location_ua` - (readonly) - user agent from the location record
125+
- `instance` - (readonly) - the value of instance field
126+
- `otcpid` - outbound tcp connection id
125127

126128
The PV can take an index to access a specific branch:
127-
$(branch(name)\[index\])
129+
`$(branch(name)[index])`
128130

129131
Example:
130132

0 commit comments

Comments
 (0)