[ previous ] [ next ] [ threads ]
 To :  yate@v...
 From :  Sven <svoop@d...>
 Subject :  Re: Enforce iLBC Codec
 Date :  Fri, 9 Apr 2010 07:22:36 +0000 (UTC)
Hi Gerrit

> In your case regexroutes routes first. also you should not route to localhost,
> that is yate itself. The call then loops.

I thought so, but it was the only way to get this to work for incoming calls
which are supposed to ring more than one registered phone:

[contexts]
${called}^0112222222$=from_provider

[from_provider]
.*=fork sip/sip:10@localhost sip/sip:20@localhost

If I omit the @localhost, nothing happens.

Furthermore, I'd like to do a fallback to leavemail.php in case nobody answers,
someting like:

.*=fork sip/sip:10@localhost sip/sip:20@localhost
| external/nodata/leavemail.php;maxcall=20000

It would of course make more sense to not forward to leavemail in regexroutes
but to set it per registered phone in regfile. And maybe the example in "Forking
a call routed by a different module" on
http://yate.null.ro/pmwiki/index.php?n=Main.Callfork points the way, but I
honestly don't understand that example nor where the config should go.

Thanks for your hints!  -sven