[OpenSIPS-Users] Routing NOTIFY to the phone - MAYBE SOLVED
Michele Pinassi
michele.pinassi at unisi.it
Fri Mar 27 15:29:34 CET 2015
Oh dear,
maybe i've found the bug: in my routing logic, NOTIFY messages return
true for "has_totag()" but false for "loose_route()" so they felt into
sl_send_reply("404","Not here").
Maybe i've solved adding a else if(is_method("NOTIFY") and just relaying
them, as follow:
if (has_totag()) {
if (loose_route()) {
[...]
} else {
if ( is_method("ACK") ) {
if ( t_check_trans() ) {
t_relay();
exit;
} else {
exit;
}
} else if(is_method("NOTIFY")) {
t_relay();
exit;
}
sl_send_reply("404","Not here");
}
exit;
}
Hope this works.
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
More information about the Users
mailing list