Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- route[WITHINDLG] {
- if (has_totag()) {
- if (loose_route()) {
- record_route();
- if (is_present_hf("Contact")) {
- fix_nated_contact();
- }
- t_on_reply("REPLY_INDIALOG");
- append_hf("X-Server: SERVERNAME\r\n");
- if (!t_relay()) {
- sl_reply_error();
- }
- } else {
- if ( is_method("ACK") ) {
- if ( t_check_trans() ) {
- t_relay();
- exit;
- } else {
- exit;
- }
- }
- if ( is_method("NOTIFY") ) {
- record_route();
- ... doing some DB stuff here
- add_rr_param(";dfpx=$avp(defaultpbx);kd=$avp(kundenid)");
- append_hf("X-Server: SERVERNAME\r\n");
- t_relay();
- exit;
- }
- sl_send_reply("404","Not here");
- }
- exit;
- }
- }
Add Comment
Please, Sign In to add comment