[OpenSIPS-Users] opensips presence integration

Anca Vamanu anca at opensips.org
Mon Jul 6 11:45:29 CEST 2009


Hi,

Please don't send e-mails to me directly.
Find my replies inline.

ac at webpress.de wrote:
> Hello Anca,
>  
> i was writing with Bogdan at #opensips back and forth about several 
> opensips related issues and he told me to contact you because now i 
> came across the presence part :-)
>  
> Using
>  
> loadmodule "presence.so"
> modparam("presence", "server_address", "sip:OPENSIPS_HOST:5060") 
> modparam("presence", "fallback2db", 1)
>  
> loadmodule "presence_xml.so"
> modparam("presence_xml", "integrated_xcap_server", 1)
>  
> loadmodule "presence_dialoginfo.so"
>  
> loadmodule "pua.so"
> loadmodule "pua_dialoginfo.so"
> modparam("pua_dialoginfo", "presence_server", 
> "sip:presence at OPENSIPS_IP:OPENSIPS_UDP_SIP_PORT") 
>  
> loadmodule "pua_bla.so"
> modparam("pua_bla", "default_domain",  "OPENSIPS_HOST")
> modparam("pua_bla", "header_name",  "Sender")
> modparam("pua_bla", "server_address", "sip:bla at OPENSIPS_IP")
>  
> loadmodule "presence_xcapdiff.so"
>  
> plus the db_url needed stuff and roughly:
>  
> if (!t_newtran()) {
>
> sl_reply_error();
> exit;
>
> }
>  
> if (is_method("PUBLISH")) {
> if ($hdr(Sender) != NULL) handle_publish("$hdr(Sender)");
> else handle_publish();
>
> } else if (is_method("SUBSCRIBE")) {
>
> handle_subscribe();
>
> }
>  
> in a snippet of the routing script i managed to get pickup and such 
> working
>  
> Also i am creating the dialog with if (is_method("INVITE")) 
> create_dialog(); just before relaying the packets using if 
> (!t_relay()) sl_reply_error();
>  
> Currently the problem is the pickup is also working on outbound calls.
>  
> So my question would be if there is a flag (needed) to indicate wether 
> the current call should only (outgoing) trigger BLF or (incoming) 
> indicate a PICKUP?
No there is not such a flag. You must decide from the script for with 
Invites to create dialogs.
>  
> I also noted several flaws in the documentation regarding 
> "server_addresses":
>  
> in pua_dialoginfo it says: presence_server: sip:ps at opensips.org:5060
> in presence the server_address is sip:10.10.10.10:5060
> in pua_bla the server_address is sip:bla at 160.34.23.12 and the 
> presence_server sip:pa at opensips.org
> and in rls (didn't implement it yet) we have presence_server 
> sip:pres at opensips.org:5060 and server_address sip:rls at opensips.org:5060.
>  
> So sometimes the presence_server has port definition, sometimes not.
> But worse the server_address sometimes is user at host while in other 
> cases missing the user and only having sip:10.10.10.10:port
>  
> Maybe you could clear that up for me and even for the docs :-)
>  
All the variants are correct.

regards,
Anca
> Thank you very much in advance.
>  
> Greets,
> André Christlieb
> --
> + webpress internet services deutschland
> + bucher strasse 86-88
> + 90408 nuernberg
> + fon: 0911 / 350 666 90
> + fax: 0911 / 350 666 91
> + mail at webpress.de
> + ust: de 228074558 
>  




More information about the Users mailing list