12345678910111213141516171819202122232425262728293031323334353637383940 |
- debug=9 # debug level (cmd line: -dddddddddd)
- log_stderror=yes # (cmd line: -E)
- check_via=yes # (cmd. line: -v)
- dns=on # (cmd. line: -r)
- rev_dns=yes # (cmd. line: -R)
- fork=no # (cmd. line: -D)
- port=5080
- listen=192.168.99.100
- loop_checks=1
- # for more info: sip_router -h
- #modules
- loadmodule "modules/print/print.so"
- #loadmodule "modules/tm/tm.so"
- route{
- if ( t_lookup_request()) {
- if ( method=="ACK" ) {
- t_release();
- forward(195.37.77.100, 5090 );
- # once it supports ACK too
- # t_forward(195.37.77.100, 5090 );
- } else {
- t_retransmit_reply();
- };
- } else {
- if (method=="ACK") {
- forward(195.37.77.100, 5090 );
- } else {
- t_add_transaction();
- if (method=="CANCEL") {
- t_send_reply( "200", "glad to cancel");
- } else {
- t_send_reply("100", "trying -- your call is important to us");
- };
- t_forward("195.37.77.100", "5090" );
- };
- };
-
- }
|