[ previous ] [ next ] [ threads ]
 To :  yate@v...
 From :  Sven <svoop@d...>
 Subject :  Instant Voicemail
 Date :  Thu, 3 Jun 2010 18:39:42 +0000 (UTC)
Hi

Here's another regexroute noob question.

Say I fork an incoming call on two SIP clients and - in case none answers - to
voicemail (one mailbox for all lines, thus the called):

[contexts]
${called}^123456789$=from_provider_xy

[from_provider_xy]
${id}^fork/^=fork lateroute/10 lateroute/20 |drop=20000
external/nodata/leavemail.php;called=99

This works as long as 10 and/or 20 are registered. However, if none of them is
registered the call should go to voicemail immediately. Is that doable?

As a side question: I'm not sure if it's good practice to have one context per
incoming provider or whether it's better to put all in one context e.g. incoming
and then do something like this (untested):

[incoming]
${called}^123456789$^=fork lateroute/10 lateroute/20 |drop=20000
external/nodata/leavemail.php;called=99

Thanks a bunch for your insight!