[ previous ] [ next ] [ threads ]
 To :  yate@v...
 From :  "Raffaele P. Guidi" <raffaele.p.guidi@g...>
 Subject :  Cannot get $(rotate) and $(index) functions to work
 Date :  Thu, 18 Jun 2009 02:17:28 +0200
I followed the instructions on the wiki (
http://yate.null.ro/pmwiki/index.php?n=Main.Routing) to put together a
simple roundrobin routing between two extensions (with or without fallback):

   ^test$=fork $(rotate, $idxTest2, | sip/sip:1001@localhost, |
sip/sip:1002@localhost)

or:

  ^test$=fork $(index, $idxTest2, sip/sip:1001@localhost,
sip/sip:1002@localhost)

now: both functions simply don't rotate - extension 1001 gets called again
and again (1001 and 1002 are both connected and I'm calling from ext 1000;
if I put 1002 before 1001 then 1002 gets called forever).

I'm using yate 2.0, binary installation on windows.

Thanks in advance for your help.

Regards,
   Raffaele



I followed the instructions on the wiki (http://yate.null.ro/pmwiki/index.php?n=Main.Routing) to put together a simple roundrobin routing between two extensions (with or without fallback):

   ^test$=fork $(rotate, $idxTest2, | sip/sip:1001@localhost, | sip/sip:1002@localhost)

or:

  ^test$=fork $(index, $idxTest2, sip/sip:1001@localhost, sip/sip:1002@localhost)

now: both functions simply don't rotate - extension 1001 gets called again and again (1001 and 1002 are both connected and I'm calling from ext 1000; if I put 1002 before 1001 then 1002 gets called forever).

I'm using yate 2.0, binary installation on windows.

Thanks in advance for your help. 

Regards,
   Raffaele