User Tools

Site Tools


cookbooks:3.2.x:core

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
cookbooks:3.2.x:core [2011/12/12 10:19]
85.178.77.57 [syn_branch]
cookbooks:3.2.x:core [2016/02/02 16:31] (current)
alexh !~ does not exist in 3.2
Line 59: Line 59:
   * #!else - swtich to false branch of ifdef/ifndef region   * #!else - swtich to false branch of ifdef/ifndef region
   * #!endif - end ifdef/ifndef region   * #!endif - end ifdef/ifndef region
 +  * #!trydef -  add a define if not already defined
 +  * #!redefine - force redefinition even if already defined
  
 Among benefits: Among benefits:
Line 643: Line 645:
 Prototype: **loadmodule "modulepath"** Prototype: **loadmodule "modulepath"**
  
-If modulepath is only modulename or modulename.so, then Kamailio will try to search also for **modulename/modulename.so**, very useful when usining directly the version compiled in the source tree.+If modulepath is only modulename or modulename.so, then Kamailio will try to search also for **modulename/modulename.so**, very useful when using directly the version compiled in the source tree.
  
 Example of usage: Example of usage:
Line 808: Line 810:
 ==== mem_summary ==== ==== mem_summary ====
  
-Parameter to control printing of mmemory debugging information displayed on exit or SIGUSR1. The value can be composed by following flags:+Parameter to control printing of memory debugging information displayed on exit or SIGUSR1. The value can be composed by following flags:
   * 1 - dump all the pkg used blocks (status)   * 1 - dump all the pkg used blocks (status)
   * 2 - dump all the shm used blocks (status)   * 2 - dump all the shm used blocks (status)
Line 1048: Line 1050:
  
 If the internal resolver/cache is enabled you can add/remove records by hand (using sercmd or xmlrpc) using the DNS RPCs, e.g. dns.add_a, If the internal resolver/cache is enabled you can add/remove records by hand (using sercmd or xmlrpc) using the DNS RPCs, e.g. dns.add_a,
-dns.add_srv, dns.delete_a a.s.o. For more info on DNS RPCs see http://sip-router.org/docbook/sip-router/branch/master/rpc_list/rpc_list.html#dns.add_a+dns.add_srv, dns.delete_a a.s.o. For more info on DNS RPCs see http://www.kamailio.org/docs/docbooks/3.2.x/rpc_list/rpc_list.html#dns.add_a
  
 Note: During startup of SIP-Router, before the internal resolver is loaded, the system resolver will be used (it will be used for queries done from module register functions or modparams fixups, but not for queries done from mod_init() or normal fixups).  Note: During startup of SIP-Router, before the internal resolver is loaded, the system resolver will be used (it will be used for queries done from module register functions or modparams fixups, but not for queries done from mod_init() or normal fixups). 
Line 1908: Line 1910:
               resetflag(b);  # equiv. to resetflag(2)                resetflag(b);  # equiv. to resetflag(2) 
  
 +==== is_int ====
 +Checks if a pseudo variable argument contains integer value. 
  
 +  if(is_int("$avp(foobar)")) {
 +    log("foobar contains an integer\n");
 +  }
  
 ==== log ==== ==== log ====
Line 2123: Line 2130:
 Try to close the connection (the one on which the message is sent out) after forwarding the current message. Can be used in same route blocks as set_forward_no_connect(). Try to close the connection (the one on which the message is sent out) after forwarding the current message. Can be used in same route blocks as set_forward_no_connect().
  
-Note: Use with care as you might not receive the replies anymore as the connection is closed.+Note: Use with care as you might not receive the replies anymore as the connection is [[http://vdo.com.vn]] closed.
  
  
Line 2423: Line 2430:
   !=      not equal   !=      not equal
   =~      regular expression matching: Note: Posix regular expressions will be used, e.g. use [[:digit:]]{3} instead of \d\d\d   =~      regular expression matching: Note: Posix regular expressions will be used, e.g. use [[:digit:]]{3} instead of \d\d\d
-  !~      regular expression not-matching 
   >       greater   >       greater
   >=      greater or equal   >=      greater or equal
cookbooks/3.2.x/core.1323681548.txt.gz ยท Last modified: 2011/12/12 10:19 by 85.178.77.57