Hello,

We want to extend our solution for audio streaming with SIP SIMPLE Presence and 
IM, in order to do this we have installed OpenSIPs, MediaRelay, MSRPRelay, 
OpenXCAP and related packages.
The target is to have a XCAP server communicating with OpenSIPs through 
database 
(second scenario 
from http://www.opensips.org/Resources/PresenceServer#ps_architecture) and we 
setup a script for OpenSIPs as we found in OpenXCAP configuration guide (of 
course we updated) , we added only handling of REGISTER method.

The REGISTER method works well, the Blink client is updated, but the SUBSCRIBE 
doesn't work, we receive the following in the Blink log:

2011-06-15 12:32:38.563000 [blink.exe 5516]: SENDING: Packet 4, +0:00:02.107000
192.168.6.152:50586 -(SIP over UDP)-> 80.97.x.x:5060
SUBSCRIBE sip:[email protected] SIP/2.0
Via: SIP/2.0/UDP 
192.168.6.152:50586;rport;branch=z9hG4bKPj98e9cb74a49b49e1b65eb1f46974cdf5
Max-Forwards: 70
From: "liviu_ext_IP" <sip:[email protected]>;tag=045698592abc4b748888c0de6b80568e
To: <sip:[email protected]>
Contact: <sip:[email protected]:50586>
Call-ID: f65b71fc05b3427e87e775e7a56cbd8d
CSeq: 16073 SUBSCRIBE
Event: message-summary
Expires: 3600
Accept: application/simple-message-summary
Allow-Events: conference, message-summary, presence, presence.winfo, xcap-diff, 
refer
User-Agent: Blink 0.2.6 (Windows)
Content-Length:  0

2011-06-15 12:32:38.564000 [blink.exe 5516]: RECEIVED: Packet 5, +0:00:02.108000
80.97.x.x:5060 -(SIP over UDP)-> 192.168.6.152:50586
SIP/2.0 403 Subscription to others message-summary is forbidden
Via: SIP/2.0/UDP 
192.168.6.152:50586;rport=30541;branch=z9hG4bKPj98e9cb74a49b49e1b65eb1f46974cdf5;received=80.97.161.66

From: "liviu_ext_IP" <sip:[email protected]>;tag=045698592abc4b748888c0de6b80568e
To: <sip:[email protected]>;tag=4b68da8d3b4cd9de939c44370a5367db.cb3f
Call-ID: f65b71fc05b3427e87e775e7a56cbd8d
CSeq: 16073 SUBSCRIBE
Server: OpenSIPS (1.6.4-2-notls (i386/linux))
Content-Length: 0
Warning: 392 80.97.x.x:5060 "Noisy feedback tells:  pid=2022 
req_src_ip=80.97.y.y req_src_port=30541 in_uri=sip:[email protected] 
out_uri=sip:[email protected] via_cnt==1"

And in the log we found:
Jun 15 13:13:58 P4302 opensips[2485]: Account <null>@<null> tried to subscribe 
to sip:[email protected] for message-summary

which obviously come from the following code:
                   if ((avp_check("$hdr(Event)", "fm/*.winfo/i") || 
avp_check("$hdr(Event)", "eq/message-summary/i")) &&
                        ($au != $rU || $ar != $rd)) {
                        xlog("L_WARN", "Account $au@$ar tried to subscribe to 
$ru for $hdr(Event)\n");
                        sl_send_reply("403", "Subscription to others 
$hdr(Event) 
is forbidden");
                        return;
                    }

What we have to do? The example script from OpenXCAP is not complete and we 
miss 
something?
We think that for Blink client the settings are OK since can REGISTER.

Would be welcome a working example of opensips.cfg for Presence.

Thanks,
Liviu
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to