Re: [asterisk-users] ((uint64_t)1 << 35) is zero! was: Prevent Dial if any extension is busy

2009-11-30 Thread Leif Neland
Leif Neland wrote: #define OPT_PEER_H ((uint64_t)1 << 34) #define OPT_SINGLE_BUSY ((uint64_t)1 << 35) but all these constants have the value zero! I'm compiling on FreeBSD, asterisk seems to work anyway... Whats going on? doh... 64 bits doesn't fit in %d %llu works better. L

[asterisk-users] ((uint64_t)1 << 35) is zero! was: Prevent Dial if any extension is busy

2009-11-30 Thread Leif Neland
Leif Neland wrote: I think a modification should be done around here to return busy if just one channel was busy (only enabled if an option on dial is set) in asterisk-1.6.0.15/apps/app_dial.c, line 610 Is somebody willing to try? while (*to && !peer) { struct chanlist *o; in