[SR-Users] set host as inactive and probing in dispatcher

Uri Shacked ushacked at gmail.com
Mon Dec 12 11:13:38 CET 2011


version :

version: kamailio 3.2.0 (i386/linux) e19bb8
flags: STATS: Off, USE_IPV6, USE_TCP, USE_TLS, TLS_HOOKS, USE_RAW_SOCKS,
DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP, PKG_MALLOC,
DBG_QM_MALLOC, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE,
USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLACKLIST, HAVE_RESOLV_RES
ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16,
MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 4MB
poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
id: e19bb8
compiled on 18:43:11 Oct 24 2011 with gcc 4.1.2
and with log level 3 :
13(11897) ERROR: <script>:  OSPRPL is 408 now disable destination
13(11897) ERROR: *** cfgtrace: c=[/usr/local/etc/kamailio/kamailio.cfg]
l=1266 a=26 n=ds_mark_dst
13(11897) DEBUG: dispatcher [dispatch.c:1994]: mode [1] grp [47] dst
[sip:10.10.21.28]
13(11897) ERROR: *** cfgtrace: c=[/usr/local/etc/kamailio/kamailio.cfg]
l=1267 a=26 n=xlog
13(11897) ERROR: <script>:  after disabling destination

On Mon, Dec 12, 2011 at 11:14 AM, Daniel-Constantin Mierla <
miconda at gmail.com> wrote:

> Hello,
>
> cn you give output of 'kamailio -V' and the log messages with debug=3 in
> config file?
>
> Note that from the moment you set the gateway in some state and you dump
> the list via mi, there can be keepalives that change the state.
>
> Cheers,
> Daniel
>
>
> On 12/11/11 3:42 PM, Uri Shacked wrote:
>
>   Hi,
>
> i tried to change the ds_probing_mode as well. it didn't do any good.
> i need the probing mode to be set to 1 anyway.
>
> so,
> any ideas?
>
> here is the cfg again:
>
> after the failure route i turn to this route
>
> "route[OSPRPLERR] {
> xlog("$C(rg) SCRIPT : in OSPRPLERR $ru $C(xx)\n");
> if($avp(OSPRPL)!=404) {
>  xlog("$C(rg) OSPRPL is $avp(OSPRPL)* now disable destination* $C(xx)\n");
>  ds_mark_dst("AP");
>  xlog("$C(rg) *after disabling destination* $C(xx)\n");
>  }"
>
>
> here is the log:
>
> 13(5760) ERROR: <script>:  SCRIPT : in OSPRPLERR sip:36264529 at 10.10.21.29
> 13(5760) ERROR: *** cfgtrace: c=[/usr/local/etc/kamailio/kamailio.cfg]
> l=1264 a=17 n=if
> 13(5760) ERROR: *** cfgtrace: c=[/usr/local/etc/kamailio/kamailio.cfg]
> l=1259 a=26 n=xlog
> 13(5760) ERROR: <script>:  OSPRPL is 408 *now disable destination
> *13(5760) ERROR: *** cfgtrace: c=[/usr/local/etc/kamailio/kamailio.cfg]
> l=1260 a=26 n=ds_mark_dst
> 13(5760) ERROR: *** cfgtrace: c=[/usr/local/etc/kamailio/kamailio.cfg]
> l=1261 a=26 n=xlog
> 13(5760) ERROR: <script>:  *after disabling destination*
>
> now i check the dispatcher list status:
>
> kamctl fifo ds_list
>
> SET:: 47
>         URI:: sip:10.10.21.20 flags=AX priority=25 attrs=OSP_B4
>         URI:: sip:10.10.21.22 flags=AX priority=25 attrs=OSP_B3
>         URI:: sip:10.10.21.23 flags=AX priority=25 attrs=OSP_B2
>         URI:: sip:10.10.21.21 flags=AX priority=25 attrs=OSP_B1
> SET:: 41
>         URI:: sip:10.10.21.29 flags=AX priority=25 attrs=OSP_A4
>         URI:: sip:10.10.21.27 flags=AX priority=25 attrs=OSP_A3
>         URI:: sip:10.10.21.25 flags=AX priority=25 attrs=OSP_A1
>         URI:: sip:10.10.21.24 flags=AX priority=25 attrs=OSP_A2
>
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing listsr-users at lists.sip-router.orghttp://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
>
> --
> Daniel-Constantin Mierla -- http://www.asipto.comhttp://linkedin.com/in/miconda -- http://twitter.com/miconda
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20111212/6be4065c/attachment-0001.htm>


More information about the sr-users mailing list