This is only the route block for dispatcher, but where is executed -- full content with routing blocks is more helpful.
I would suggest that you look also at the example from dispatcher docs: - https://www.kamailio.org/docs/modules/stable/modules/dispatcher.html#dispatcher.ex.config It offers a very good starting point config for using the module. Cheers, Daniel On 09/11/16 17:28, Slava Bendersky wrote: > Hello Everyone, > I changed dispatcher algorithm from 0 to 1 and start working as > expected. Yes group 0 is accepted. > > route[DISPATCHER] { > if(!ds_select_dst("0", "1")) { > xlog("L_ERROR","ERROR: Proxy Mapping - Desitnation for $fd not > found...request dropped \n"); > sl_send_reply("404","Desitination Not Found \n"); > drop(); > } else { > $var(did) = 1; > } > if($var(did)) { > if (!t_relay()) { > sl_reply_error(); > } > #forward(); > } > > t_on_failure("DISPATCHER_FAIL_ROUTE"); > exit; > } > > Slava. > > ------------------------------------------------------------------------ > *From: *"Daniel-Constantin Mierla" <mico...@gmail.com> > *To: *"sr-users" <sr-users@lists.sip-router.org> > *Sent: *Wednesday, 9 November, 2016 04:33:33 > *Subject: *Re: [SR-Users] BYE dispatcher > > Hello, > > > On 08/11/16 20:42, Slava Bendersky wrote: > > Hello Everyone, > My setup is kamailio as proxy with few boxes of freeswitch in the > LAN. Having issue with BYE when extensions register on different > freeswitch boxes. Here are some trace of the call. > Not sure if this tag= miss match or routing. > > Dispatcher use group 0 with option 4 (round robin). > > is group value 0 accepted? I think this may create problems if a > function returns the group in the config as return code -- iirc, this > was changed maybe for lcr or permissions. > > On the other hand, the registrations are quite independent in SIP in > relation with calls. The BYE should be routed based on record-routing > to the freeswitch that was involved in routing initial INVITE, with no > relation to new registrations from end devices. Is the BYE sent to the > freeswitch that got the initial BYE. > > Cheers, > Daniel > -- > Daniel-Constantin Mierla > http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda > Kamailio Advanced Training, Berlin, Nov 28-30, 2016 - http://www.asipto.com > > _______________________________________________ > SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list > sr-users@lists.sip-router.org > http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users -- Daniel-Constantin Mierla http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda Kamailio Advanced Training, Berlin, Nov 28-30, 2016 - http://www.asipto.com
_______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users