Re: [Asterisk-Users] callerid validation and expression

2005-10-11 Thread trixter http://www.0xdecafbad.com
On Tue, 2005-10-11 at 17:06 +0200, Joseph Rothstein wrote:
> Thanks for the reply Bret. 
> 
> I have tested this parsing issue ever way possible, equal variables unequal
> variables, arithmetic, ie $[1 + 1], etc., etc., and my conclusion is that
> Solaris does not parse the $[expr1 operator expr2] function properly. It
> always produces a value of 0.
> 
> I installed 1.2beta on a SUSE box and it works flawlessly.
> 
> Thanks,
> Joe

Ok, I only saw what you posted, where the numbers were not equal and it
did what was expected in that scenario.  I cant say for solaris with
1.2-beta otherwise.  I find it very odd that it works on one operating
system but not on another given that that part of the code should be
platform independant.


-- 
Trixter http://www.0xdecafbad.com Bret McDanel
UK +44 870 340 4605   Germany +49 801 777 555 3402
US +1 360 207 0479 or +1 516 687 5200
FreeWorldDialup: 635378


signature.asc
Description: This is a digitally signed message part
___
--Bandwidth and Colocation sponsored by Easynews.com --

Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [Asterisk-Users] callerid validation and expression

2005-10-11 Thread Joseph Rothstein
Thanks for the reply Bret. 

I have tested this parsing issue ever way possible, equal variables unequal
variables, arithmetic, ie $[1 + 1], etc., etc., and my conclusion is that
Solaris does not parse the $[expr1 operator expr2] function properly. It
always produces a value of 0.

I installed 1.2beta on a SUSE box and it works flawlessly.

Thanks,
Joe

___
--Bandwidth and Colocation sponsored by Easynews.com --

Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] callerid validation and expression parser problems on Solaris 10

2005-10-11 Thread Paul

trixter http://www.0xdecafbad.com wrote:


On Tue, 2005-10-11 at 14:12 +0200, Joseph Rothstein wrote:
 


I am setting up a voicemail (VM) system based on Asterisk. From what
I've heard Vonage uses Asterisk as their VM platform as well. I am
running 1.2beta with a MYSQL backend for extensions and VM user info.
All the sound files and vm messages are being stored through an NFS
mount externally. The reason for this is that there will be several
asterisk VM frontends, all accessing the same config and vm user info
as well as sounds files.

   



By sound files do you mean the static 'enter your password' type files?
You may do a lot better having those on the individual boxes to reduce
the load on the network.  If its static keep it on the box, as a general
rule.


 

Are the frontends and the nfs server close enough to easily cable them 
together? If so just add a nic to each box and a switch. That way you 
can have a separate lan for that network activity. I helped somebody do 
a gigabit ethernet lan that had a monster raid5 nfs server on 10.1.1.1 
with 6 nfs clients to start out. Next thing he will put on the lan is a 
dedicated database server.


___
--Bandwidth and Colocation sponsored by Easynews.com --

Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] callerid validation and expression parser problems on Solaris 10

2005-10-11 Thread trixter http://www.0xdecafbad.com
On Tue, 2005-10-11 at 14:12 +0200, Joseph Rothstein wrote:
> I am setting up a voicemail (VM) system based on Asterisk. From what
> I've heard Vonage uses Asterisk as their VM platform as well. I am
> running 1.2beta with a MYSQL backend for extensions and VM user info.
> All the sound files and vm messages are being stored through an NFS
> mount externally. The reason for this is that there will be several
> asterisk VM frontends, all accessing the same config and vm user info
> as well as sounds files.
> 

By sound files do you mean the static 'enter your password' type files?
You may do a lot better having those on the individual boxes to reduce
the load on the network.  If its static keep it on the box, as a general
rule.



> priority='5',app='gotoif',appdata='$[${sanity}]?10:20';
goto 10 if true 20 if false

[...]
> 
> -- Executing set("SIP/10.10.13.110-00123d48", "sanity=0")
> 
0 means false

[...]
> -- Goto (default,03413306999,20)
> 
goes to 20 as you told it to


> Sanity is just a variable to keep track of whether or not cid and vmid
> are equal. IN this case they are, so the statement
no they arent.

> priority='1',app='Set',appdata='vmid=03413306999';
> priority='2',app='Set',appdata='cid=03413306990';

6990 vs 6999

> 
> If anyone has come across this problem, and has a solution I would
> very much appreciate any input.
> 
>  
Many times I have been victim of typos.  My solution has always been to
fix the typo then proceed.  Hopefully that solution works for you too :)

> 
-- 
Trixter http://www.0xdecafbad.com Bret McDanel
UK +44 870 340 4605   Germany +49 801 777 555 3402
US +1 360 207 0479 or +1 516 687 5200
FreeWorldDialup: 635378


signature.asc
Description: This is a digitally signed message part
___
--Bandwidth and Colocation sponsored by Easynews.com --

Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users