Re: [asterisk-users] Is this Asterisk issue of feature

2011-06-04 Thread virendra bhati
Hi List,

Yes as per your suggestion I make a bash script for sleep the server. But
doing so asterisk session also stop and server can't do any job in such
time.

Actually I am using Asterisk and a2billing for my calling card system. When
We hangup our call then a2billing start billing script which is my priority
to do some changes into the call information after 2 sec. of wait for which
I need to sleep the service at certain time. But if I start bash script for
sleep then all thread of server also stop and I will on the same stage as
before..

Do you have any other idea ? I already used php sleep(2) function..

and I can't do any work in between this sleep time into server.

On Thu, May 26, 2011 at 7:00 PM, A J Stiles
asterisk_l...@earthshod.co.ukwrote:

 On Thursday 26 May 2011, virendra bhati wrote:
  Hi ,
 
  Thanks for reply ..
  What is the meaning of that line which you have mention on the recent
  conversation
 
  System(path/to/sleep Xs)
 
  path/to/sleep = is the paths of any php script where sleep function is
  mention or anything else ?
  please illustrate if it is possible 

 It's fairly common to write something like /path/to/some/file to indicate
 that you need to specify a full  (absolute)  path, all the way back to the
 root folder; and many people have been using Unix for so long that they
 forget not everybody knows this.

 System() is an Asterisk dialplan command which executes a program; it
 expects
 the full path to the program it is going to execute.  sleep is a standard
 Unix command  (i.e., you could type it at the shell prompt if you wanted)
 which just does nothing for so many seconds.  You can find the path to
 the sleep command on your system by typing

 $ which sleep

 Then whatever output this gives you is what you need to use in place
 of /path/to/sleep.

 --
 AJS

 Answers come *after* questions.

 --
 _
 -- Bandwidth and Colocation Provided by http://www.api-digital.com --
 New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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




-- 



-
Thanks and regards

 Virendra Bhati
+91-9172341457
Asterisk Engineer
--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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

[asterisk-users] Is this Asterisk issue of feature

2011-05-26 Thread virendra bhati
Hi List,

I am confuse about this feature.
When we use Wait(20)  in active call session then it's work. But when we use
after hangup the call then Asterisk don't wait from define time.

Ex:-

[call_log]

exten = 4368,1,Answer()
exten = 4368,n,Flite(Welcome)
exten = 4368,n,Set(__StartTime=${STRFTIME(${EPOCH},Asia/Calcutta,%Y-%m-%d
%H:%M:%S)})
exten = 4368,n,Set(__uniqueId=${UNIQUEID})
*exten = 4368,n,Wait(20)* *; At this moment it's work.*
exten = 4368,n,Hangup()


exten = h,1,NoOp(***Now wait(20) wouldn't work
* )
exten = h,n,Wait(20) *  ; At this moment it's not work.*
exten = h,n,NoOp(***never come  into execution
**)

-
Thanks and regards

 Virendra Bhati
+91-9172341457
Asterisk Engineer
--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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

Re: [asterisk-users] Is this Asterisk issue of feature

2011-05-26 Thread James zhu

hi:
i think the wait is used for answer command.  please show any debug info?

Best regards,
James.zhu
Doing asterisk/PRI/ss7/dahdi, linux, asterisk cards, gateway(fxs/fxo/pri-SIP).
website: www.voipviews.com 




Date: Thu, 26 May 2011 16:15:31 +0530
From: virbh...@gmail.com
To: asterisk-users@lists.digium.com
Subject: [asterisk-users] Is this Asterisk issue of feature

Hi List,

I am confuse about this feature.
When we use Wait(20)  in active call session then it's work. But when we use 
after hangup the call then Asterisk don't wait from define time.


Ex:- 

[call_log]

exten = 4368,1,Answer()
exten = 4368,n,Flite(Welcome)
exten = 4368,n,Set(__StartTime=${STRFTIME(${EPOCH},Asia/Calcutta,%Y-%m-%d 
%H:%M:%S)})
exten = 4368,n,Set(__uniqueId=${UNIQUEID})

exten = 4368,n,Wait(20) ; At this moment it's work.
exten = 4368,n,Hangup()


exten = h,1,NoOp(***Now wait(20) wouldn't work 
* )

exten = h,n,Wait(20)   ; At this moment it's not work.
exten = h,n,NoOp(***never come  into execution 
**)
  
-
Thanks and regards

 Virendra Bhati
+91-9172341457
Asterisk Engineer




--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users  
  --
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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

Re: [asterisk-users] Is this Asterisk issue of feature

2011-05-26 Thread Sherwood McGowan
Wait is not ONLY for use with Answer, that just happens to be a common use.

To answer the OP, a quick look at 
http://www.voip-info.org/wiki/view/Asterisk+cmd+Wait confirmed that Wait does 
not work after a channel is hung up:
If Wait() is run on a channel which has been hung up (i.e. from the 'h' 
extension), the Wait() application returns 0 immediately and no further 
processing of the 'h' extension priorities takes place. You can get around this 
with 'System(path/to/sleep Xs)', where 'X' is the number of seconds to wait. 
Nasty, but it works. 

Sent from my iPhone

On May 26, 2011, at 6:00 AM, James zhu zhulizh...@live.com wrote:

 hi:
 i think the wait is used for answer command.  please show any debug info?
 
 Best regards,
 James.zhu
 Doing asterisk/PRI/ss7/dahdi, linux, asterisk cards, 
 gateway(fxs/fxo/pri-SIP).
 website: www.voipviews.com 
 
 
 
 
 Date: Thu, 26 May 2011 16:15:31 +0530
 From: virbh...@gmail.com
 To: asterisk-users@lists.digium.com
 Subject: [asterisk-users] Is this Asterisk issue of feature
 
 Hi List,
 
 I am confuse about this feature.
 When we use Wait(20)  in active call session then it's work. But when we use 
 after hangup the call then Asterisk don't wait from define time.
 
 Ex:- 
 
 [call_log]
 
 exten = 4368,1,Answer()
 exten = 4368,n,Flite(Welcome)
 exten = 4368,n,Set(__StartTime=${STRFTIME(${EPOCH},Asia/Calcutta,%Y-%m-%d 
 %H:%M:%S)})
 exten = 4368,n,Set(__uniqueId=${UNIQUEID})
 exten = 4368,n,Wait(20) ; At this moment it's work.
 exten = 4368,n,Hangup()
 
 
 exten = h,1,NoOp(***Now wait(20) wouldn't work 
 * )
 exten = h,n,Wait(20)   ; At this moment it's not work.
 exten = h,n,NoOp(***never come  into execution 
 **)
   
 -
 Thanks and regards
 
  Virendra Bhati
 +91-9172341457
 Asterisk Engineer
 
 
 -- _ -- 
 Bandwidth and Colocation Provided by http://www.api-digital.com -- New to 
 Asterisk? Join us for a live introductory webinar every Thurs: 
 http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or 
 update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
 --
 _
 -- Bandwidth and Colocation Provided by http://www.api-digital.com --
 New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello
 
 asterisk-users mailing list
 To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users
--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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

Re: [asterisk-users] Is this Asterisk issue of feature

2011-05-26 Thread virendra bhati
Hi ,

Thanks for reply ..
What is the meaning of that line which you have mention on the recent
conversation

System(path/to/sleep Xs)

path/to/sleep = is the paths of any php script where sleep function is
mention or anything else ?
please illustrate if it is possible 

On Thu, May 26, 2011 at 4:43 PM, Sherwood McGowan 
sherwood.mcgo...@gmail.com wrote:

 Wait is not ONLY for use with Answer, that just happens to be a common use.

 To answer the OP, a quick look at
 http://www.voip-info.org/wiki/view/Asterisk+cmd+Wait confirmed that Wait
 does not work after a channel is hung up:
 If Wait() is run on a channel which has been hung up (i.e. from the 'h'
 extension), the Wait() application returns 0 immediately and no further
 processing of the 'h' extension priorities takes place. You can get around
 this with 'System(path/to/sleep Xs)', where 'X' is the number of seconds to
 wait. Nasty, but it works. 

 Sent from my iPhone

 On May 26, 2011, at 6:00 AM, James zhu zhulizh...@live.com wrote:

 hi:
 i think the wait is used for answer command.  please show any debug info?

 Best regards,
 James.zhu
 Doing asterisk/PRI/ss7/dahdi, linux, asterisk cards,
 gateway(fxs/fxo/pri-SIP).
 website: www.voipviews.com




 --
 Date: Thu, 26 May 2011 16:15:31 +0530
 From: virbh...@gmail.comvirbh...@gmail.com
 To: asterisk-users@lists.digium.comasterisk-users@lists.digium.com
 Subject: [asterisk-users] Is this Asterisk issue of feature

 Hi List,

 I am confuse about this feature.
 When we use Wait(20)  in active call session then it's work. But when we
 use after hangup the call then Asterisk don't wait from define time.

 Ex:-

 [call_log]

 exten = 4368,1,Answer()
 exten = 4368,n,Flite(Welcome)
 exten = 4368,n,Set(__StartTime=${STRFTIME(${EPOCH},Asia/Calcutta,%Y-%m-%d
 %H:%M:%S)})
 exten = 4368,n,Set(__uniqueId=${UNIQUEID})
 *exten = 4368,n,Wait(20)* *; At this moment it's work.*
 exten = 4368,n,Hangup()


 exten = h,1,NoOp(***Now wait(20) wouldn't work
 * )
 exten = h,n,Wait(20) *  ; At this moment it's not work.*
 exten = h,n,NoOp(***never come  into execution
 **)

 -
 Thanks and regards

  Virendra Bhati
 +91-9172341457
 Asterisk Engineer


 -- _ --
 Bandwidth and Colocation Provided by http://www.api-digital.com -- New to
 Asterisk? Join us for a live introductory webinar every Thurs:
 http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE
 or update options visit:
 http://lists.digium.com/mailman/listinfo/asterisk-users

 --
 _

 -- Bandwidth and Colocation Provided by http://www.api-digital.com --
 New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
 http://www.asterisk.org/hello

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


 --
 _
 -- Bandwidth and Colocation Provided by http://www.api-digital.com --
 New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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




-- 



-
Thanks and regards

 Virendra Bhati
+91-9172341457
Asterisk Engineer
--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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

Re: [asterisk-users] Is this Asterisk issue of feature

2011-05-26 Thread Sherwood McGowan
sleep is a Bash command, the author was illustrating that you must include 
the full path to the binary 

Sent from my iPhone

On May 26, 2011, at 8:07 AM, virendra bhati virbh...@gmail.com wrote:

 Hi ,
 
 Thanks for reply ..
 What is the meaning of that line which you have mention on the recent 
 conversation 
 
 System(path/to/sleep Xs)
 
 path/to/sleep = is the paths of any php script where sleep function is 
 mention or anything else ? 
 please illustrate if it is possible  
 
 On Thu, May 26, 2011 at 4:43 PM, Sherwood McGowan 
 sherwood.mcgo...@gmail.com wrote:
 Wait is not ONLY for use with Answer, that just happens to be a common use.
 
 To answer the OP, a quick look at 
 http://www.voip-info.org/wiki/view/Asterisk+cmd+Wait confirmed that Wait does 
 not work after a channel is hung up:
 If Wait() is run on a channel which has been hung up (i.e. from the 'h' 
 extension), the Wait() application returns 0 immediately and no further 
 processing of the 'h' extension priorities takes place. You can get around 
 this with 'System(path/to/sleep Xs)', where 'X' is the number of seconds to 
 wait. Nasty, but it works. 
 
 Sent from my iPhone
 
 On May 26, 2011, at 6:00 AM, James zhu zhulizh...@live.com wrote:
 
 hi:
 i think the wait is used for answer command.  please show any debug info?
 
 Best regards,
 James.zhu
 Doing asterisk/PRI/ss7/dahdi, linux, asterisk cards, 
 gateway(fxs/fxo/pri-SIP).
 website: www.voipviews.com 
 
 
 
 
 Date: Thu, 26 May 2011 16:15:31 +0530
 From: virbh...@gmail.com
 To: asterisk-users@lists.digium.com
 Subject: [asterisk-users] Is this Asterisk issue of feature
 
 Hi List,
 
 I am confuse about this feature.
 When we use Wait(20)  in active call session then it's work. But when we use 
 after hangup the call then Asterisk don't wait from define time.
 
 Ex:- 
 
 [call_log]
 
 exten = 4368,1,Answer()
 exten = 4368,n,Flite(Welcome)
 exten = 4368,n,Set(__StartTime=${STRFTIME(${EPOCH},Asia/Calcutta,%Y-%m-%d 
 %H:%M:%S)})
 exten = 4368,n,Set(__uniqueId=${UNIQUEID})
 exten = 4368,n,Wait(20) ; At this moment it's work.
 exten = 4368,n,Hangup()
 
 
 exten = h,1,NoOp(***Now wait(20) wouldn't work 
 * )
 exten = h,n,Wait(20)   ; At this moment it's not work.
 exten = h,n,NoOp(***never come  into execution 
 **)
   
 -
 Thanks and regards
 
  Virendra Bhati
 +91-9172341457
 Asterisk Engineer
 
 
 -- _ -- 
 Bandwidth and Colocation Provided by http://www.api-digital.com -- New to 
 Asterisk? Join us for a live introductory webinar every Thurs:   
  http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or 
 update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
 --
 _
 
 -- Bandwidth and Colocation Provided by http://www.api-digital.com --
 New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello
 
 asterisk-users mailing list
 To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users
 
 --
 _
 -- Bandwidth and Colocation Provided by http://www.api-digital.com --
 New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello
 
 asterisk-users mailing list
 To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users
 
 
 
 -- 
 
 
 
 -
 Thanks and regards
 
  Virendra Bhati
 +91-9172341457
 Asterisk Engineer
 
 --
 _
 -- Bandwidth and Colocation Provided by http://www.api-digital.com --
 New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello
 
 asterisk-users mailing list
 To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users
--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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

Re: [asterisk-users] Is this Asterisk issue of feature

2011-05-26 Thread virendra bhati
HI,

http://ss64.com/bash/sleep.html

link define the same but not any help is provided from here . If you have
any idea how system() command run any bash file then I will do it


On Thu, May 26, 2011 at 6:44 PM, Sherwood McGowan 
sherwood.mcgo...@gmail.com wrote:

 sleep is a Bash command, the author was illustrating that you must
 include the full path to the binary

 Sent from my iPhone

 On May 26, 2011, at 8:07 AM, virendra bhati virbh...@gmail.com wrote:

 Hi ,

 Thanks for reply ..
 What is the meaning of that line which you have mention on the recent
 conversation

 System(path/to/sleep Xs)

 path/to/sleep = is the paths of any php script where sleep function is
 mention or anything else ?
 please illustrate if it is possible 

 On Thu, May 26, 2011 at 4:43 PM, Sherwood McGowan 
 sherwood.mcgo...@gmail.com
 sherwood.mcgo...@gmail.com wrote:

 Wait is not ONLY for use with Answer, that just happens to be a common
 use.

 To answer the OP, a quick look at 
 http://www.voip-info.org/wiki/view/Asterisk+cmd+Wait
 http://www.voip-info.org/wiki/view/Asterisk+cmd+Wait confirmed that Wait
 does not work after a channel is hung up:
 If Wait() is run on a channel which has been hung up (i.e. from the 'h'
 extension), the Wait() application returns 0 immediately and no further
 processing of the 'h' extension priorities takes place. You can get around
 this with 'System(path/to/sleep Xs)', where 'X' is the number of seconds to
 wait. Nasty, but it works. 

 Sent from my iPhone

 On May 26, 2011, at 6:00 AM, James zhu  zhulizh...@live.com
 zhulizh...@live.com wrote:

  hi:
 i think the wait is used for answer command.  please show any debug info?

 Best regards,
 James.zhu
 Doing asterisk/PRI/ss7/dahdi, linux, asterisk cards,
 gateway(fxs/fxo/pri-SIP).
 website: http://www.voipviews.comwww.voipviews.com




 --
 Date: Thu, 26 May 2011 16:15:31 +0530
 From: virbh...@gmail.com virbh...@gmail.comvirbh...@gmail.com
 To: asterisk-users@lists.digium.com asterisk-users@lists.digium.com
 asterisk-users@lists.digium.com
 Subject: [asterisk-users] Is this Asterisk issue of feature

 Hi List,

 I am confuse about this feature.
 When we use Wait(20)  in active call session then it's work. But when we
 use after hangup the call then Asterisk don't wait from define time.

 Ex:-

 [call_log]

 exten = 4368,1,Answer()
 exten = 4368,n,Flite(Welcome)
 exten = 4368,n,Set(__StartTime=${STRFTIME(${EPOCH},Asia/Calcutta,%Y-%m-%d
 %H:%M:%S)})
 exten = 4368,n,Set(__uniqueId=${UNIQUEID})
 *exten = 4368,n,Wait(20)* *; At this moment it's work.*
 exten = 4368,n,Hangup()


 exten = h,1,NoOp(***Now wait(20) wouldn't work
 * )
 exten = h,n,Wait(20) *  ; At this moment it's not work.*
 exten = h,n,NoOp(***never come  into execution
 **)

 -
 Thanks and regards

  Virendra Bhati
 +91-9172341457
 Asterisk Engineer


 -- _
 -- Bandwidth and Colocation Provided by http://www.api-digital.com
 http://www.api-digital.com -- New to Asterisk? Join us for a live
 introductory webinar every Thurs: http://www.asterisk.org/hello
 http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE
 or update options visit:
 http://lists.digium.com/mailman/listinfo/asterisk-users
 http://lists.digium.com/mailman/listinfo/asterisk-users

 --
 _

 -- Bandwidth and Colocation Provided by http://www.api-digital.com
 http://www.api-digital.com --
 New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hellohttp://www.asterisk.org/hello
 http://www.asterisk.org/hello

 asterisk-users mailing list
 To UNSUBSCRIBE or update options visit:

 http://lists.digium.com/mailman/listinfo/asterisk-usershttp://lists.digium.com/mailman/listinfo/asterisk-users
 http://lists.digium.com/mailman/listinfo/asterisk-users


 --
 _
 -- Bandwidth and Colocation Provided by http://www.api-digital.com
 http://www.api-digital.com --
 New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello
 http://www.asterisk.org/hello

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




 --



 -
 Thanks and regards

  Virendra Bhati
 +91-9172341457
 Asterisk Engineer

  --
 _

 -- Bandwidth and Colocation Provided by http://www.api-digital.com --
 New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
 http://www.asterisk.org/hello

 asterisk-users mailing list
 To UNSUBSCRIBE or update options visit:
http