Skip to content

Commit

Permalink
sems: finish 'routing' section
Browse files Browse the repository at this point in the history
  • Loading branch information
furmur committed Nov 2, 2024
1 parent ff36da7 commit 56fffaa
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions en/sems/sems.rst
Original file line number Diff line number Diff line change
Expand Up @@ -476,4 +476,38 @@ SEMS is application server so it is possible to load multiple application at sam
application = yeti
}
application (default: empty)
Specifies applications to handle initial SIP INVITE requests.

Format is the list of mappings separated by ``|``. Session factory will iterate mappings in order they were specified until one of them returned destination application

Each mapping can be one of:

* ``app_name``: explicit application name
* ``$(ruri.user)``: get application name from the INVITE RURI-user
* ``$(ruri.param)``: get application name from the INVITE RURI header ``app``
* ``$(apphdr)``: get application name from the INVITE ``P-App-Name`` header
* ``$(mapping)``: use regex mapping from the ``/etc/sems/etc/app_mapping.conf``

.. code-block:: bash
# sems application mapping
#
# the application mapping defined here is used,
# if application=$(mapping) is set in sems.conf.
#
# the first regular expression which matches on the
# request URI sets the application that is executed.
#
# format:
# regexp=>application
# lines starting with '#' and empty lines are ignored
^sip:100=>echo
.*=>yeti
register_application (default: empty)
Override application for REGISTER requests

options_application (default: empty)
Override application for OPTIONS requests

0 comments on commit 56fffaa

Please sign in to comment.