[OpenSIPS-Users] SUBSCRIBE event error

Barsan Liviu barsanl at yahoo.com
Wed Jun 15 12:27:18 CEST 2011


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:bll at 80.97.x.x SIP/2.0
Via: SIP/2.0/UDP 
192.168.6.152:50586;rport;branch=z9hG4bKPj98e9cb74a49b49e1b65eb1f46974cdf5
Max-Forwards: 70
From: "liviu_ext_IP" <sip:bll at 80.97.x.x>;tag=045698592abc4b748888c0de6b80568e
To: <sip:bll at 80.97.x.x>
Contact: <sip:kfudecwb at 192.168.6.152: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:bll at 80.97.x.x>;tag=045698592abc4b748888c0de6b80568e
To: <sip:bll at 80.97.x.x>;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:bll at 80.97.x.x 
out_uri=sip:bll at 80.97.x.x 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:bll at 80.97.x.x 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20110615/3138fe87/attachment.htm>


More information about the Users mailing list