Toolpack monitoring sip simulator variables
From TBwiki
(Difference between revisions)
(Page structure for now (under construction)) |
(Preparing variables) |
||
Line 25: | Line 25: | ||
To see other SIP messages default formatting, check in the [[Toolpack_monitoring_sip_simulator]] configuration page in the Web Portal. | To see other SIP messages default formatting, check in the [[Toolpack_monitoring_sip_simulator]] configuration page in the Web Portal. | ||
− | == | + | == Variables == |
+ | All variables are referenced in the SIP messages definition by wrapping them inside '''#{}''' | ||
+ | For example: #{call_id} | ||
+ | |||
+ | There are "well-known" variables, which value is dynamically replaced by the SIP simulator according to the context. | ||
+ | |||
+ | There are "user-defined" variables that can be inserted in the SIP messages. | ||
+ | |||
+ | === Well-known variables === | ||
+ | |||
+ | |||
+ | === User-defined variables === | ||
== User-defined variables == | == User-defined variables == |
Revision as of 12:34, 21 April 2016
The Toolpack_monitoring_sip_simulator is formatting the generated SIP messages based on a text-based configuration, which describes the SIP message content.
Well-known variables are used to define portion of the SIP messages that change from one call to the other.
Contents |
Example SIP message format
INVITE sip:#{called}@#{callee_sip_ip}:#{callee_sip_port} SIP/2.0 Call-ID:#{call_id} X-Monitored-Sender:#{sender_label}:#{sender} X-Isdn-Info:interface-id:#{isdn_interface_id};channel-number:#{isdn_channel_number} X-Example-Var:#{example_var} To:<sip:#{sip_to}> From:#{calling_display}<sip:#{sip_from}>;tag=#{caller_tag} Remote-Party-ID:#{calling_private_display}<sip:#{calling_private}@#{caller_sip_ip}:#{caller_sip_port}>;party=calling;screen=#{calling_screening};privacy=#{calling_presentation};noa=#{calling_noa} Privacy:#{calling_privacy} Contact:sip:#{calling}@#{caller_sip_ip}:#{caller_sip_port} Via:SIP/2.0/UDP #{caller_sip_ip}:#{caller_sip_port};branch=#{branch};rport User-to-User:#{uui};encoding=text;purpose=isdn-interwork;content=isdn-uui Date:#{date} Timestamp:#{timestamp} CSeq:#{cseq} Max-Forwards:70 #{caller_content}
To see other SIP messages default formatting, check in the Toolpack_monitoring_sip_simulator configuration page in the Web Portal.
Variables
All variables are referenced in the SIP messages definition by wrapping them inside #{}
For example: #{call_id}
There are "well-known" variables, which value is dynamically replaced by the SIP simulator according to the context.
There are "user-defined" variables that can be inserted in the SIP messages.