Hi all,

again on BLF...i noticed that after correct SUBSCRIPTION on the server
and on the phones of the monitored extension, when one of that change
its status, the NOTIFY was send to the server that reply with 404 and
*not* to the monitoring phone.

Here's a siptrace of what's happens:

U 2015/03/26 14:52:15.359182 172.20.1.47:47362 -> 172.20.1.2:5060

NOTIFY sip:[email protected]:32768 SIP/2.0.
Via: SIP/2.0/UDP 172.20.1.47:47362;branch=z9hG4bK-xvlhtivkog2x;rport.
From: <sip:[email protected]:5060;user=phone>;tag=o5sz371uyn.
To: <sip:[email protected]:5060>;tag=aqhxe3d198.
Call-ID: 5512ce5dc6fa-5z8xbqdcqj6f.
CSeq: 4 NOTIFY.
Max-Forwards: 70.
User-Agent: snom760/8.7.5.13.
Contact: <sip:[email protected]:47362>;reg-id=1.
Event: dialog.
Subscription-State: active.
Content-Type: application/dialog-info+xml.
Content-Length: 619.
.
<?xml version="1.0"?>
<dialog-info xmlns="urn:ietf:params:xml:ns:dialog-info" version="3"
state="full" entity="sip:[email protected]:5060;user=phone"><dialog
id="f2e27cd312a10cc126736ec8173b4f42" direction='recipient'
call-id='cb725de1020312e8' local-tag="tediqnmq6i"
remote-tag="fe6112ffc8"><state>terminated</state><local><identity
display="Michele Pinassi">sip:[email protected]:5060</identity><target
uri="sip:[email protected]:47362"><param pname="x-line-id" pval="0"
/></target></local><remote><identity>sip:[email protected]:5060</identity><target
uri="sip:[email protected]:5060"/></remote></dialog></dialog-info>


U 2015/03/26 14:52:15.359534 172.20.1.2:5060 -> 172.20.1.47:47362

SIP/2.0 404 Not here.
Via: SIP/2.0/UDP
172.20.1.47:47362;received=172.20.1.47;branch=z9hG4bK-xvlhtivkog2x;rport=47362.
From: <sip:[email protected]:5060;user=phone>;tag=o5sz371uyn.
To: <sip:[email protected]:5060>;tag=aqhxe3d198.
Call-ID: 5512ce5dc6fa-5z8xbqdcqj6f.
CSeq: 4 NOTIFY.
Server: OpenSIPS (1.11.3-tls (i386/linux)).
Content-Length: 0.
.

Here's the part of opensips.cfg involved:

#### XCAP modules
loadmodule "xcap.so"
loadmodule "xcap_client.so"

modparam("xcap", "integrated_xcap_server", 1)

#### PRESENCE modules
loadmodule "presence.so"
loadmodule "presence_mwi.so"
loadmodule "presence_callinfo.so"
loadmodule "presence_xml.so"
loadmodule "presence_dialoginfo.so"

modparam("presence", "db_url", "mysql://")
modparam("presence", "server_address", "sip:voip.unisi.it:5060")

modparam("presence", "notify_offline_body", 1)
modparam("presence", "fallback2db", 1)
modparam("presence", "clean_period",  30)
modparam("presence", "mix_dialog_presence", 1)

modparam("presence_xml","force_active",1)

[...]
route {
[...]
    ### PRESENCE
    if(is_method("PUBLISH|SUBSCRIBE")) {
        route(handle_presence);
    }
[...]
}

# Presence route
route[handle_presence] {
    xlog("L_INFO","Route PRESENCE on $rm [$fd/$fu/$rd/$ru/$si/]\n");
    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();
   }

    exit;
}

How i can route NOTIFY to the right extensions ?

Thanks, Michele

-- 
Michele Pinassi
Responsabile Telefonia di Ateneo
Servizio Reti, Sistemi e Sicurezza Informatica - Università degli Studi di Siena
tel: 0577.(23)5000 - fax: 0577.(23)2053

Per trovare una soluzione rapida ai tuoi problemi tecnici
consulta le FAQ di Ateneo, http://www.faq.unisi.it 


Attachment: signature.asc
Description: OpenPGP digital signature

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

Reply via email to