It seems that the
GotoIf(${SET(DB(avoics/route)=$[!0${DB(avoics/route)}])}?route1:route2) is
always returning false as if the SET command is not returning a value nor is
it changing the value in the DB.
Will this not work because I am running Asterisk 1.4.25.1??
On Thu, Oct 28, 2010 at 3:15 PM, Ti
I updated it as follows and I am still only getting the SayNumber(2)
[tim]
exten =>
_X.,1,GotoIf(${SET(DB(avoics/route)=$[!0${DB(avoics/route)}])}?route1:route2)
exten => _X.,n(route1),SayNumber(1)
exten => _X.,n,Hangup()
exten => _X.,n(route2),SayNumber(2)
exten => _X.,n,Hangup()
On Thu, Oct 2
Its not so much me load balancing but the carrier requires that every other
call I send goes to the other address..
On Thu, Oct 28, 2010 at 2:36 PM, Barry Miller wrote:
> On Thu, Oct 28, 2010 at 11:08:12AM -0400, Tim King wrote:
> > I have a very simple setup with two SIP routes to my carrier. I
On Thu, Oct 28, 2010 at 11:08:12AM -0400, Tim King wrote:
> I have a very simple setup with two SIP routes to my carrier. I need to have
> every other phone call placed to that carrier go to a different address.
>
> This is what I need the call flow to look like. I have spent many hours
> searchin
Thanks For The replies. I have tried piecing the samples together. Just for
testing purposes i have created the following.
[test]
exten =>
_X.,1,GotoIf(${SET(DB(avoics/route)=$[!0${DB(avoics/route)}])}?route1:route2)
exten => _X.,n(route1),Set(DB(avoics/route)=1)
exten => _X.,n,SayNumber(1)
exten
On Thu, 28 Oct 2010, Tim King wrote:
> On Thu, Oct 28, 2010 at 11:24 AM, Roger Burton West
> wrote:
>
>> On Thu, Oct 28, 2010 at 11:08:12AM -0400, Tim King wrote:
>>> I have a very simple setup with two SIP routes to my carrier. I need to
>> have
>>> every other phone call placed to that carrier
Actually it was not so difficult to understand what Roger said, but let me
expand it further (the way I would do it):
First of all setup a global variable TRUNK in extension.conf;
[globals]
TRUNK=0;
Then use your dialplan like this:
exten => NXXNX,1,GotoIf($["${TRUNK}"="0"]?trunk1:trunk2)
e
Sorry for the confusion, but the last sentence throws me off. "Translation
of this to dialplan logic is left as an exercise for the
student." Is this example from some sort of book or is this a way of saying
I am left to figure the rest out??
I was hoping to find a simple example of how this works
On Thu, Oct 28, 2010 at 11:08:12AM -0400, Tim King wrote:
>I have a very simple setup with two SIP routes to my carrier. I need to have
>every other phone call placed to that carrier go to a different address.
I think what you need to do here is check/set a variable in the astdb.
(If the variable
- Original Message -
I have a very simple setup with two SIP routes to my carrier. I need to have
every other phone call placed to that carrier go to a different address.
This is what I need the call flow to look like. I have spent many hours
searching and have not found a working ex
I have a very simple setup with two SIP routes to my carrier. I need to have
every other phone call placed to that carrier go to a different address.
This is what I need the call flow to look like. I have spent many hours
searching and have not found a working example.
Call1 exten => NXXNX,2,
11 matches
Mail list logo