浏览代码

- proper info about server_address parameter
- update examples to pua_xmpp_notify()
- reported by Cesar Troncoso


git-svn-id: https://openser.svn.sourceforge.net/svnroot/openser/trunk@4583 689a6050-402a-0410-94f2-e92a70836424

Daniel-Constantin Mierla 17 年之前
父节点
当前提交
43a34e73a0
共有 2 个文件被更改,包括 11 次插入11 次删除
  1. 6 6
      modules_k/pua_xmpp/README
  2. 5 5
      modules_k/pua_xmpp/doc/pua_xmpp_admin.xml

+ 6 - 6
modules_k/pua_xmpp/README

@@ -41,7 +41,7 @@ Anca-Maria Vamanu
    List of Examples
 
    1.1. Set server_address parameter
-   1.2. Notify2Xmpp usage
+   1.2. pua_xmpp_notify usage
    1.3. xmpp_send_winfo usage
 
 Chapter 1. Admin Guide
@@ -73,11 +73,11 @@ Chapter 1. Admin Guide
 
 1.3.1. server_address(str)
 
-   The IP address of the server.
+   The SIP URI specifying the address of the SIP server.
 
    Example 1.1. Set server_address parameter
 ...
-modparam("pua_xmpp", "server_address", "160.23.23.10")
+modparam("pua_xmpp", "server_address", "sip:160.23.23.10")
 ...
 
 1.4. Exported Functions
@@ -93,11 +93,11 @@ modparam("pua_xmpp", "server_address", "160.23.23.10")
 
    This function can be used from REQUEST_ROUTE.
 
-   Example 1.2. Notify2Xmpp usage
+   Example 1.2. pua_xmpp_notify usage
 ...
-        if( is_method("NOTIFY") && uri=~"sip:.+@sip-xmpp.siphub.ro")
+        if( is_method("NOTIFY") && uri=~"sip:.+@sip-xmpp.kamailio.org")
         {
-                if(Notify2Xmpp())
+                if(pua_xmpp_notify())
                         t_reply("200", "OK");
                 exit;
         }

+ 5 - 5
modules_k/pua_xmpp/doc/pua_xmpp_admin.xml

@@ -60,13 +60,13 @@
 		<section>
 		<title><varname>server_address</varname>(str)</title>
 		<para>
-		The IP address of the server. 
+		The SIP URI specifying the address of the SIP server. 
 		</para>
 		<example>
 		<title>Set <varname>server_address</varname> parameter</title>
 		<programlisting format="linespecific">
 ...
-modparam("pua_xmpp", "server_address", "160.23.23.10")
+modparam("pua_xmpp", "server_address", "sip:160.23.23.10")
 ...
 </programlisting>
 		</example>
@@ -92,12 +92,12 @@ modparam("pua_xmpp", "server_address", "160.23.23.10")
 		This function can be used from REQUEST_ROUTE.
 		</para>
 		<example>
-		<title><function>Notify2Xmpp</function> usage</title>
+		<title><function>pua_xmpp_notify</function> usage</title>
 		<programlisting format="linespecific">
 ...
-	if( is_method("NOTIFY") &amp;&amp; uri=~"sip:.+@sip-xmpp.siphub.ro")
+	if( is_method("NOTIFY") &amp;&amp; uri=~"sip:.+@sip-xmpp.kamailio.org")
 	{
-		if(Notify2Xmpp())
+		if(pua_xmpp_notify())
 			t_reply("200", "OK");
 		exit;
 	}