Browse Source

- Added more functions
- Mode needs to be specified on first nonblank line

Juha Heinanen 4 years ago
parent
commit
ae69d196b1
2 changed files with 4 additions and 3 deletions
  1. 3 2
      README.md
  2. 1 1
      kamailio-mode.el

+ 3 - 2
README.md

@@ -7,6 +7,7 @@ Emacs mode for kamailio.cfg syntax highlighting and indentation
 
 (load "path_to_kamalio-mode.el")
 
-- To activate the mode, add somewhere in your kamailio.cfg a line, such as:
+- To activate the mode, tell it on the first nonblank line of your
+  kamailio.cfg file, for example:
 
-#-*-mode: kamailio; tab-width: 4; c-basic-offset: 4;
+# -*- mode: kamailio; tab-width: 4; c-basic-offset: 4; -*-

+ 1 - 1
kamailio-mode.el

@@ -8,7 +8,7 @@
             (x-constants '())
             (x-events '())
             ;; define functions
-            (x-functions '("acc_db_request" "add_path_received" "add_rr_param" "allow_routing" "allow_trusted" "append_hf" "append_to_reply" "avp_check" "avp_delete" "change_reply_status" "check_route_param" "defined" "dp_translate" "ERROR" "fix_nated_sdp" "force_send_socket" "forward" "get_redirects" "handle_ruri_alias" "inactivate_gw" "INFO" "in_list" "isflagset" "is_avp_set" "isbflagset" "is_direction" "is_domain_local" "is_e164" "is_gflag" "is_gruu" "is_method" "is_numeric" "is_present_hf" "jsonrpc_dispatch" "load_gws" "lookup_domain" "lookup" "loose_route" "modparam" "mt_match" "NOTICE" "proxy_challenge" "record_route" "redirecting" "remove_hf" "resetflag" "rtpengine_answer" "rtpengine_delete" "rtpengine_offer" "save" "sdp_content" "sdp_transport" "send_reply_mode" "send_reply" "setbflag" "setflag" "setxflag" "set_reply_close" "set_reply_no_connect" "set_rtpengine_set" "set_uri_host" "set_uri_user" "set_forward_no_connect" "sql_query" "sql_result_free" "starts_with" "subst_uri" "tel2sip" "t_check_status" "t_is_canceled" "t_load_contacts" "t_next_contacts" "t_on_branch" "t_on_failure" "t_on_reply" "t_relay_cancel" "t_relay" "t_set_fr" "unregister" "WARN" "ws_handle_handshake" "www_challenge" "xhttp_reply"))
+            (x-functions '("acc_db_request" "add_path_received" "add_rr_param" "allow_routing" "allow_trusted" "append_hf" "append_to_reply" "avp_check" "avp_delete" "change_reply_status" "check_route_param" "defined" "dp_translate" "ERROR" "fix_nated_sdp" "force_rport" "force_send_socket" "forward" "get_redirects" "handle_ruri_alias" "has_totag" "inactivate_gw" "INFO" "in_list" "isflagset" "is_avp_set" "isbflagset" "is_direction" "is_first_hop" "is_domain_local" "is_e164" "is_gflag" "is_gruu" "is_method" "is_numeric" "is_present_hf" "is_tel_number" "jsonrpc_dispatch" "load_gws" "lookup_domain" "lookup" "loose_route" "maxfwd_process" "modparam" "mt_match" "nat_uac_test" "NOTICE" "pike_check_req" "proxy_challenge" "record_route" "redirecting" "remove_hf" "resetflag" "rtpengine_answer" "rtpengine_delete" "rtpengine_offer" "save" "sanity_check" "sdp_content" "sdp_transport" "send_reply_mode" "send_reply" "setbflag" "setflag" "setxflag" "set_reply_close" "set_reply_no_connect" "set_rtpengine_set" "set_uri_host" "set_uri_user" "set_forward_no_connect" "sql_query" "sql_result_free" "starts_with" "sipdump_send" "subst_uri" "tel2sip" "t_check_status" "t_check_trans" "t_is_canceled" "t_load_contacts" "t_lookup_cancel" "t_next_contacts" "t_on_branch" "t_on_failure" "t_on_reply" "t_precheck_trans" "t_relay_cancel" "t_relay" "t_set_fr" "unregister" "WARN" "ws_handle_handshake" "www_challenge" "xerr" "xhttp_reply" "xdbg" "xinfo" "xnotice" "xwarn"))
             (x-keywords-regexp (regexp-opt x-keywords 'words))
             (x-types-regexp (regexp-opt x-types 'words))
             (x-constants-regexp (regexp-opt x-constants 'words))