Table of Contents
List of Tables
List of Examples
This module is a gateway for presence between SIP and XMPP.
It translates one format into another and uses xmpp, pua and presence modules to manage the transmition of presence state information.
The following modules must be loaded before this module:
presence.
pua.
xmpp.
Functions exported to be used in configuration file.
Function that handles Notify messages addressed to a user from an xmpp domain. It requires filtering after method and domain in configuration file. If the function is successful, a 2xx reply must be sent.
This function can be used from REQUEST_ROUTE.
Example 1.3. Notify2Xmpp
usage
... if( is_method("NOTIFY") && $ru=~"sip:.+@sip-xmpp.siphub.ro") { if(Notify2Xmpp()) t_reply("200", "OK"); exit; } ...
Function called when a Subscribe addressed to a user from a xmpp domain is received. It calls sending a Subscribe for winfo for the user, and the following Notify with dialog-info is translated into a subscription in xmpp. It also requires filtering in configuration file, after method, domain and event(only for presence).
It takes 2 parameters: request_uri and the value of Expires header field in received Subscribe.
This function can be used from REQUEST_ROUTE.
Example 1.4. xmpp_send_winfo
usage
... if( is_method("SUBSCRIBE")) { handle_subscribe(); if($ru=~"sip:.+@sip-xmpp.siphub.ro" && $hdr(Event)== "presence") { pua_xmpp_req_winfo("$ruri", "$hdr(Expires)"); } t_release(); } ...
Table 3.1. Top contributors by DevScore(1), authored commits(2) and lines added/removed(3)
Name | DevScore | Commits | Lines ++ | Lines -- | |
---|---|---|---|---|---|
1. | Anca Vamanu | 58 | 17 | 3287 | 806 |
2. | Bogdan-Andrei Iancu (@bogdan-iancu) | 16 | 13 | 58 | 81 |
3. | Razvan Crainea (@razvancrainea) | 13 | 11 | 24 | 33 |
4. | Liviu Chircu (@liviuchircu) | 13 | 10 | 40 | 61 |
5. | Daniel-Constantin Mierla (@miconda) | 10 | 8 | 27 | 21 |
6. | Vlad Patrascu (@rvlad-patrascu) | 4 | 2 | 3 | 2 |
7. | Ovidiu Sas (@ovidiusas) | 3 | 1 | 14 | 2 |
8. | Sergio Gutierrez | 3 | 1 | 5 | 5 |
9. | Vlad Paiu (@vladpaiu) | 3 | 1 | 4 | 14 |
10. | Konstantin Bokarius | 3 | 1 | 3 | 5 |
All remaining contributors: Juha Heinanen (@juha-h), Walter Doekes (@wdoekes), Edson Gellert Schubert, Stanislaw Pitucha.
(1) DevScore = author_commits + author_lines_added / (project_lines_added / project_commits) + author_lines_deleted / (project_lines_deleted / project_commits)
(2) including any documentation-related commits, excluding merge commits. Regarding imported patches/code, we do our best to count the work on behalf of the proper owner, as per the "fix_authors" and "mod_renames" arrays in opensips/doc/build-contrib.sh. If you identify any patches/commits which do not get properly attributed to you, please submit a pull request which extends "fix_authors" and/or "mod_renames".
(3) ignoring whitespace edits, renamed files and auto-generated files
Table 3.2. Most recently active contributors(1) to this module
Name | Commit Activity | |
---|---|---|
1. | Razvan Crainea (@razvancrainea) | Feb 2012 - Jul 2020 |
2. | Liviu Chircu (@liviuchircu) | Mar 2014 - Jan 2020 |
3. | Bogdan-Andrei Iancu (@bogdan-iancu) | Jul 2007 - Jun 2018 |
4. | Vlad Patrascu (@rvlad-patrascu) | May 2017 - Jul 2017 |
5. | Ovidiu Sas (@ovidiusas) | Jan 2013 - Jan 2013 |
6. | Vlad Paiu (@vladpaiu) | Aug 2011 - Aug 2011 |
7. | Stanislaw Pitucha | Jul 2010 - Jul 2010 |
8. | Walter Doekes (@wdoekes) | Apr 2010 - Apr 2010 |
9. | Anca Vamanu | Apr 2007 - Mar 2010 |
10. | Sergio Gutierrez | Nov 2008 - Nov 2008 |
All remaining contributors: Daniel-Constantin Mierla (@miconda), Konstantin Bokarius, Edson Gellert Schubert, Juha Heinanen (@juha-h).
(1) including any documentation-related commits, excluding merge commits
Last edited by: Bogdan-Andrei Iancu (@bogdan-iancu), Liviu Chircu (@liviuchircu), Vlad Patrascu (@rvlad-patrascu), Razvan Crainea (@razvancrainea), Anca Vamanu, Daniel-Constantin Mierla (@miconda), Konstantin Bokarius, Edson Gellert Schubert.
doc copyrights:
Copyright © 2007 Voice Sistem SRL