This is an old revision of the document!


Table of Contents

Selects

The select is READ-ONLY "function", that helps to get direct access to some parts of SIP message within the script (like @to, @cseg.method, @msg.["P-anyheader-youwant"]), but generally could be seen as function returning a string with certainnumber of parameters.

Each module can extend the syntax the select framework understands registering it's own select table. Look on TLS module or db_ops as good samples.

Select Classes

ruri

Syntax:

@ruri

Return the value of request URI (R-URI).

via

Syntax:

@via
@via[index]
@via[index].param
...

Return entire or parts of Via header.

Example:

  • return the IP of top most Via header
@via[1].host

Navigation

Wiki

Other

QR Code
QR Code cookbooks:selects:devel (generated for current page)