[asterisk-users] GoToIfTime issue

Zhang Shukun bitzsk at gmail.com
Wed Jan 27 01:48:47 CST 2010


2010/1/22 Tilghman Lesher <tlesher at digium.com>:
> On Friday 22 January 2010 04:06:29 Zhang Shukun wrote:
>> 2010/1/22 Randy R <randulo2008 at gmail.com>:
>> > On Fri, Jan 22, 2010 at 9:51 AM, Zhang Shukun <bitzsk at gmail.com> wrote:
>> >> exten => 222,1,GoToIfTime(11:00-14:00|mon,wed|*|*?1:3,1)
>> >>
>> >> but what should i do. if i want to set seperate weekdays,like mon,wed.
>> >> not continuous weekday like mon-fri.
>> >
>> > I couldn't find any reference to multiple, non-contiguous days on a
>> > quick Google, but this would work at the cost of an extra line:
>> >
>> > exten => 222,1,GoToIfTime(11:00-14:00|mon|*|*?1:3,1)
>> > exten => 222,2,GoToIfTime(11:00-14:00|wed|*|*?1:3,1)
>>
>> Thank you, but why don't it to be comma seperate to represent seperate
>> weekdays?  as | mon,wed,fri |
>>
>> it's also very understandable.
>
> Starting in 1.6.2, you can use the ampersand to join days.

when i update from 1.4.28 to 1.6.2.1, the join days problem solved.
but not the realtime queue not work.

should i change the queue_table and queue_member_table definition
along with the upgrading?

because i don't know how the two table match each other.

mysql> select * from queue_table;
+--------------+---------------+-------------+
| name         | beginworktime | endworktime |
+--------------+---------------+-------------+
| 950401234561 | 09:30:00      | 17:30:00    |
| 950401234562 | 11:30:00      | 17:30:00    |
| 950401234563 | 16:30:00      | 17:30:00    |
+--------------+---------------+-------------+
3 rows in set (0.00 sec)

mysql> select * from queue_member_table;
+----------+----------------+--------------+-----------+---------+--------+
| uniqueid | membername     | queue_name   | interface | penalty | paused |
+----------+----------------+--------------+-----------+---------+--------+
|       18 | Zhang Shukun   | 950401234561 | SIP/1001  |       0 |      1 |
|       19 | Li Aiwei       | 950401234561 | SIP/1002  |       0 |      1 |
|       20 | Zhang Jianming | 950401234561 | SIP/1003  |       0 |      1 |
+----------+----------------+--------------+-----------+---------+--------+
3 rows in set (0.00 sec)


how colume name queue_name in queue_member_table match name in queue_table?

how does the system recognize them.   i mean queue_name is not an
configure option in agent.conf

>
> --
> Tilghman Lesher
> Digium, Inc. | Senior Software Developer
> twitter: Corydon76 | IRC: Corydon76-dig (Freenode)
> Check us out at: www.digium.com & www.asterisk.org
>
> --
> _____________________________________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users
>



-- 
Best regards,
Sucan



More information about the asterisk-users mailing list