~ubuntu-branches/debian/sid/kamailio/sid

« back to all changes in this revision

Viewing changes to modules/sl/sl.c

  • Committer: Package Import Robot
  • Author(s): Victor Seva
  • Date: 2014-01-06 11:47:13 UTC
  • mfrom: (1.1.5)
  • Revision ID: package-import@ubuntu.com-20140106114713-t8xidp4arzrnyeya
Tags: 4.1.1-1
* New upstream release
* debian/patches:
  - add upstream fixes
* Added tls outbound websocket autheph dnssec modules
  - openssl exception added to their license
* removing sparc and ia64 from supported archs
  for mono module (Closes: #728915)

Show diffs side-by-side

added added

removed removed

Lines of Context:
78
78
static int default_code = 500;
79
79
static str default_reason = STR_STATIC_INIT("Internal Server Error");
80
80
 
81
 
int _sl_filtered_ack_route = -1; /* default disabled */
82
 
 
83
81
static int sl_bind_tm = 1;
84
82
static struct tm_binds tmb;
85
83
 
101
99
        {"sl_reply",       w_sl_send_reply,             2, fixup_sl_reply,
102
100
                REQUEST_ROUTE},
103
101
        {"send_reply",     w_send_reply,                2, fixup_sl_reply,
104
 
                REQUEST_ROUTE|BRANCH_ROUTE|FAILURE_ROUTE},
 
102
                REQUEST_ROUTE|ONREPLY_ROUTE|FAILURE_ROUTE},
105
103
        {"sl_reply_error", w_sl_reply_error,            0, 0,
106
104
                REQUEST_ROUTE},
107
105
        {"sl_forward_reply",  w_sl_forward_reply0,      0, 0,
176
174
                }
177
175
        }
178
176
 
179
 
        _sl_filtered_ack_route=route_lookup(&event_rt, "sl:filtered-ack");
180
 
        if (_sl_filtered_ack_route>=0 && event_rt.rlist[_sl_filtered_ack_route]==0)
181
 
                _sl_filtered_ack_route=-1; /* disable */
 
177
        sl_lookup_event_routes();
182
178
 
183
179
        return 0;
184
180
}
286
282
                }
287
283
        }
288
284
 
 
285
        if(msg->first_line.type==SIP_REPLY)
 
286
                goto error;
 
287
 
289
288
        LM_DBG("reply in stateless mode (sl)\n");
290
289
        ret = sl_send_reply(msg, code, r);
291
290