Hi,

When you use forward( ) it loops itself since the dispatcher function is not selecting a destination, and the SIP request is destined to your server. Do you have any error in your log file?

Reda



On Mon, Apr 16, 2012 at 14:31, Karsten Horsmann <khorsmann@gmail.com> wrote:
Hi Carsten,


its still the same if i use ds_select_domain to rewrite the ruri.
It seems not to fetch the values from the database.

#!ifdef WITH_DISPATCHER
       if (!lookup("location")) {
               if(ds_select_domain("1", "4")) {
               xlog("DISPATCHER ds_select_dst\n");
               forward();
               }
       }
#!endif

2012/4/16 Carsten Bock <carsten@ng-voice.com>:
> Hi,
>
> you should distinguish between ds_select_dst and ds_select_domain:
> ds_select_dst only sets $du (Next Hop) while ds_select_domain actually
> rewrites the Request URI (like a lookup would do).
> Maybe this is your problem.
>


--
Mit freundlichen Grüßen
*Karsten Horsmann*

_______________________________________________
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