Re: [Asterisk-Users] Re: Re: Limit on call in minuttes.

2004-03-08 Thread Nicolas Gudino
Hi Hans,

http://bugs.digium.com/bug_view_page.php?bug_id=773

This patch plays a tone 40,30,20 and 10 seconds before absolutetimeout.

--
Nicolas Gudino
Buenos Aires - Argentina

- Original Message - 
From: Hans-Henrik Andresen [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, March 07, 2004 3:02 PM
Subject: [Asterisk-Users] Re: Re: Limit on call in minuttes.


 Hi,

 This isn't quit good :(  The caller have the message played, but the
called
 person are cut off without any warning..

 I hoped to be warned, like In 1 minnute the line will be disconected, or
 just som beep beep

 /HHA

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


[Asterisk-Users] Re: Re: Limit on call in minuttes.

2004-03-07 Thread Hans-Henrik Andresen
HMM - This wont work :(

exten = 10,1,Dial(SIP/hha1,20,S(10))
exten = 10,2,VoiceMail,u10
exten = 10,102,VoiceMail,b10

Soren Rathje [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Ok, it actually works fine here..

 Asterisk CVS-03/06/04-14:35:21, Copyright (C) 1999-2004 Digium.

 
 From extensions.conf:

 [pstn-out-nat]
 ;
 ignorepat = 0

 ; NOT USED
 exten = _0XX0X,1,Congestion

 ; Local eight-digit dialing accessed through trunk interface
 exten = _0NXXX,1,Dial(${TRUNK}/${EXTEN:${TRUNKMSD}},20,S(20))
 exten = _0NXXX,2,Congestion

 
 From * console:

 -- Executing Dial(SIP/1000-4d25, Zap/1/4060|20|S(30)) in new
 stack
 -- Setting call duration limit to 30 seconds.
 -- Called 1/4060
 -- Zap/1-1 answered SIP/1000-4d25
 -- Hungup 'Zap/1-1'
   == Spawn extension (default, 04060, 1) exited non-zero on
 'SIP/1000-4d25'
 cdr_odbc: Query Successful!


 -- Søren

 Hans-Henrik Andresen [EMAIL PROTECTED] wrote in message
 news:[EMAIL PROTECTED]
  Hi,
 
  Thank you, but this I cant get to work.
 
  /HHA
 
  
   so that should enable you to do the following:
   Call timeout = 20 sec
   Max Call Duration = 300 sec = 5 min.
  
   exten =
  411,1,Dial(IAX2/[EMAIL PROTECTED]/[EMAIL PROTECTED],20,S(300))
  
   however, I have not tried it yet so someone correct me if I am wrong..
 
 
 
 
  ___
  Asterisk-Users mailing list
  [EMAIL PROTECTED]
  http://lists.digium.com/mailman/listinfo/asterisk-users
  To UNSUBSCRIBE or update options visit:
 http://lists.digium.com/mailman/listinfo/asterisk-users
 
 

 ___
 Asterisk-Users mailing list
 [EMAIL PROTECTED]
 http://lists.digium.com/mailman/listinfo/asterisk-users
 To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users




___
Asterisk-Users mailing list
[EMAIL PROTECTED]
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] Re: Re: Limit on call in minuttes.

2004-03-07 Thread andrewg
On Sun, Mar 07, 2004 at 07:04:55PM +0100, Hans-Henrik Andresen wrote:
 HMM - This wont work :(
 
 exten = 10,1,Dial(SIP/hha1,20,S(10))
 exten = 10,2,VoiceMail,u10
 exten = 10,102,VoiceMail,b10

Maybe itneeds SIP/hha1|20,S(10) ?

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
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] Re: Re: Limit on call in minuttes.

2004-03-07 Thread Senad Jordanovic
Sorry, but that IS NOT implemented into asterisk... (as far I know of).


 Hi,
 
 This isn't quit good :(  The caller have the message played, but the
 called person are cut off without any warning.. 
 
 I hoped to be warned, like In 1 minnute the line will be
 disconected, or just som beep beep 
 
 /HHA
 
 Senad Jordanovic [EMAIL PROTECTED] wrote in message
 news:[EMAIL PROTECTED] 
 Yes, it is. (If I remember correctly :)
 
 It is T that you need to include in that context.
 
 [$CONTEXT]
 exten = 1,AbsoluteTimeout($SECONDS)
 exten = 2,Dial($SOMETHING)
 exten = T,Playback($YOURMESSAGE)
 
 Save $YOURMASSAGE in /var/lib/asterisk/sounds
 
 If above does not work, please let me know.
 
 Ta
 SJ
 
 
 Thank you This works, but. It just cut the line, I had hoped for
 some bip bip bip to remind that now your about to be disconected, is
 this possible as well ?
 



___
Asterisk-Users mailing list
[EMAIL PROTECTED]
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] Re: Re: Limit on call in minuttes.

2004-03-07 Thread NetOne Administrator
CW_ASN wrote:

People:

1) Some guy wrote a app_dial modification to start to count time when answer
arrives. Interested? (thanks to Luciano!)
AbsoluteTimeOut counts time since this statement is executed... If you have
a long ring time (without answer), it is counted!
With the proper patch, the time is counted since answer is recognized.
The sintax is:

[Description]:

Dial(Technology/resource[Technology2/resource2...][|timeout][|options][|URL
][|whenhangup]):
whenhangup is the time to hangup the call in seconds. This time is counted
since answer is detected. This parameter is a bit different than
AbsoluteTimeOut
 

 This is wrongs. It's me who wrote the patch, it's available in CVS 
also. See 'help application dial' for the correct options.
It's an addition to Dial cmd transfer options. It's set via 
S(number-of-seconds). So try something like this:
Dial(tech/channel,timeout,S(xx))

This is the way it works, for sure.

2) Other guy wrote a patch for channel.c to insert tones x seconds before
hangup. I can't remember his name (Nicolás, from Rosario?), please look in
http://bugs.digium.com/
Hope this helps,

Gus

- Original Message -
From: Senad Jordanovic [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, March 07, 2004 3:26 PM
Subject: RE: [Asterisk-Users] Re: Re: Limit on call in minuttes.
 

Sorry, but that IS NOT implemented into asterisk... (as far I know of).

   

Hi,

This isn't quit good :(  The caller have the message played, but the
called person are cut off without any warning..
I hoped to be warned, like In 1 minnute the line will be
disconected, or just som beep beep
/HHA

Senad Jordanovic [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 

Yes, it is. (If I remember correctly :)

It is T that you need to include in that context.

[$CONTEXT]
exten = 1,AbsoluteTimeout($SECONDS)
exten = 2,Dial($SOMETHING)
exten = T,Playback($YOURMESSAGE)
Save $YOURMASSAGE in /var/lib/asterisk/sounds

If above does not work, please let me know.

Ta
SJ
   

Thank you This works, but. It just cut the line, I had hoped for
some bip bip bip to remind that now your about to be disconected, is
this possible as well ?
 

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users
   



___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users
 



___
Asterisk-Users mailing list
[EMAIL PROTECTED]
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] Re: Re: Limit on call in minuttes.

2004-03-07 Thread CW_ASN
   This is wrongs. It's me who wrote the patch, it's available in CVS
Are you Klaus? If you're not Klaus, you wrote another patch. If you're
Klaus, as you see, works in that way.






___
Asterisk-Users mailing list
[EMAIL PROTECTED]
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] Re: Re: Limit on call in minuttes.

2004-03-07 Thread NetOne Administrator
CW_ASN wrote:

 This is wrongs. It's me who wrote the patch, it's available in CVS
   

Are you Klaus? If you're not Klaus, you wrote another patch. If you're
Klaus, as you see, works in that way.
 

 Nopez i'm not





___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users
 



___
Asterisk-Users mailing list
[EMAIL PROTECTED]
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] Re: Re: Limit on call in minuttes.

2004-03-07 Thread Soren Rathje
Hans-Henrik Andresen [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 HMM - This wont work :(

 exten = 10,1,Dial(SIP/hha1,20,S(10))
 exten = 10,2,VoiceMail,u10
 exten = 10,102,VoiceMail,b10


When did you checkout your version of Asterisk from CVS ??

This feature was put into CVS on the 6'th as a fix for bug #1107 but I
have not seen it in v1-0_stable.

-- Søren

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
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] Re: Re: Limit on call in minuttes.

2004-03-07 Thread NetOne Administrator
Soren Rathje wrote:

Hans-Henrik Andresen [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 

HMM - This wont work :(

exten = 10,1,Dial(SIP/hha1,20,S(10))
exten = 10,2,VoiceMail,u10
exten = 10,102,VoiceMail,b10
   

When did you checkout your version of Asterisk from CVS ??

This feature was put into CVS on the 6'th as a fix for bug #1107 but I
have not seen it in v1-0_stable.
 

This is a new feature, that's why it is NOT in 1.0-stable.
Only bugfixes go into -stable. New feautres - in CVS.
-- Søren

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users
 



___
Asterisk-Users mailing list
[EMAIL PROTECTED]
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] Re: Re: Limit on call in minuttes.

2004-03-07 Thread CW_ASN
 Are you Klaus? If you're not Klaus, you wrote another patch. If you're
 Klaus, as you see, works in that way.
 
 
   Nopez i'm not

In that case, exists another patch from a guy called Klaus. I'm using this
patch since Dec2003.
Maybe helps, I don't know, but this is other alternative.
Its merged with the last app_dial from CVS, maybe isn't correct for the last
status (announce override).

Best regards,

Gus




begin 666 app_dial.patch
M-#)C-#(*/!S=%T:6,@8VAAB JWEN;W!S:7,@/2 B4[EMAIL PROTECTED]
M(%N9!C;VYN96-T('1O('1H92!C=7)R96YT(-H86YN96PB.PHM+2T*/B!S
M=%T:6,@8VAAB JWEN;W!S:7,@/2 B5!L86-E([EMAIL PROTECTED];!A;[EMAIL PROTECTED]
M;F5C=!T;R!T:[EMAIL PROTECTED]F5N=!C:%N;F5L(CL-C0U8S0UCP@(B @1EA
M;A496-H;F]L;V=Y+W)EV]UF-E6R9496-H;F]L;V=Y,B]R97-O=7)C93(N
M+BY=6WQT:6UE;W5T75M\;W!T:6]NUU;?%523%TI.EQN(@HM+2T*/B B(!$
M:6%L*%1E8VAN;VQO9WDOF5S;W5R8V5;)E1E8VAN;VQO9WDR+W)EV]UF-E
M,BXN+EU;?'1I;65O=71=6WQO'1I;VYS75M\55),75M\=VAE;FAA;F=U%TI
M.EQN(@T*-3)C-3(*/ B8VAA;FYE;',@F5T=7)N()UWD@;W(@97)R;W(N
M($EN(=E;F5R86PL('1H92!D:6%L97(@=VEL;!R971UFX@,!I9B!I=%QN
M(@HM+2T*/B B8VAA;FYE;',@F5T=7)N()UWD@;W(@97)R;W(N($EN(=E
M;F5R86PL('1H92!D:6%L;5R('=I;P@F5T=7)N(# @:68@:71;B(-C4U
M8S4UCP@(FX@:7,@=AE('!R:6]R:71Y(]F('1H92!D:6%L97(@:6YS=%N
M8V4I+!T:5N(ET('=I;[EMAIL PROTECTED]@=AE(YE'1;B(*+2TMCX@(FX@:7,@
M=AE('!R:6]R:71Y(]F('1H92!D:6%L;5R(ENW1A;[EMAIL PROTECTED]AE;B!I
M=!W:6QL()E('1H92!N97AT7XB#0HU-V$U.PU.0H^()W:5N:%N9W5P
M(ES('1H92!T:6UE('1O(AA;F=U!T:[EMAIL PROTECTED];!I;B!S96-O;F1S+B!4
M:ES('1I;64@:7,@8V]U;G1E9%QN(@T*/B B[EMAIL PROTECTED](ES(1E
M=5C=5D+B!4:ES('!AF%M971EB!IR!A()I=!D:69F97)E;[EMAIL PROTECTED]AA
M;B!!8G-O;'5T951I;65/=71;B(-CP9#QCP@(B @( @(=3*'@I)R M
M+2!H86YG=7 @=AE(-A;[EMAIL PROTECTED](@!S96-O;F1S($%5$52(-A;QE
M9!P87)T2!P:[EMAIL PROTECTED];B(@( D*-S-C-S0*/ B(!4:4@;W!T:6]N
[EMAIL PROTECTED]),('=I;[EMAIL PROTECTED]@V5N=!T;R!T:[EMAIL 
PROTECTED];5D('!AG1Y(EF('1H
M92!C:%N;F5L('-U'!OG1S7XBBTM+0H^((@(%1H92!O'1I;VYN86P@
M55),('=I;[EMAIL PROTECTED]@V5N=!T;R!T:[EMAIL PROTECTED];5D('!AG1Y(EF('1H92!C
M:%N;F5L('-U'!OG1S7XB#0HQ,#EC,3$PCP@W1A=EC('-TG5C=!A
MW1?8VAA;FYE; J=V%I=%]F;W)?86YS=V5R*'-TG5C=!AW1?8VAA;FYE
M; J:6XL('-TG5C=!L;V-A;'5S97(@*F]U==O:6YG+!I;[EMAIL PROTECTED]!I
M;[EMAIL PROTECTED];]WF5D:7)?:6XL(EN= J86QL;W=R961IE]O=70L(EN= J
M86QL;W=D:7-C;VYN96-T*0HM+2T*/B!S=%T:6,@W1R=6-T(%S=%]C:%N
M;F5L(IW86ET7V9OE]A;G-W97(HW1R=6-T(%S=%]C:%N;F5L(II;BP@
MW1R=6-T(QO8V%L=7-EB J;W5T9V]I;FL(EN= J=\L(EN= J86QL
M;W=R961IE]I;BP@:6YT(IA;QO=W)E9ER7V]U=P@:6YT(IA;QO=V1I
MV-O;FYE8W0L:6YT(UA1UF%T:6]N*0D)[EMAIL PROTECTED],@36]D(HO#0HQ
M,C1A,3(V+#$R. H^( ES=')[EMAIL PROTECTED]EM979A;!C86QL=7!T:6UE.PDO*B!+
M;%UR!-;[EMAIL PROTECTED]CX@6EN=!U93TP.PD)[EMAIL PROTECTED],@36]D(HO#0H^
M( EC:%R(-A;QU%LR,%T[2\J($ML875S($UO9 J+PT*,3DP83$Y-2PR
M,# */B )0D)+R\)87-T7VQO9RA,3T=?3D]424-%+)M87AD=7)A=EO;CTE
M8UQN(BQM87AD=7)A=EO;BD[#0H^( D)0D)9V5T=EM96]F9%Y*9C86QL
M=7!T:6UE+$Y53$PI.PDO*B!+;%UR!-;[EMAIL PROTECTED]CX@0D)0EU92 ](-A
M;QU'1I;64N='9?V5C.PDO*B!+;%UR!-;[EMAIL PROTECTED]CX@0D)0ES;G!R
M:6YT9BAC86QL=7 LVEZ96]F*-A;QUDM,2PB)60B+'5E*3L)[EMAIL PROTECTED]
M=7,@36]D(HO#0H^( D)0D))X7V)U:6QT:6Y?V5T=F%R7VAE;'!EBAI
M;BPB0T%,3%50(BQC86QL=7 I.PDO*B!+;%UR!-;[EMAIL PROTECTED]CX@( @( D)
M0D)87-T7V-H86YN96Q?V5T=VAE;G1O:%N9W5P*EN+UA1UF%T:6]N
M*3L)[EMAIL PROTECTED],@36]D(HO#0HR,#8L,C(U8S([EMAIL PROTECTED]( D)0D)?2!E;'-E
M('L*/ )0D)0EI9B H:6XM/F-A;QEFED*2![CP@0D)0D)6EF(AO
M+3YC:%N+3YC86QL97)I9D*/ )0D)0D)69R964H;RT^8VAA;BT^8V%L
M;5R:60I.PH\( D)0D)0EO+3YC:%N+3YC86QL97)I9 ](UA;QO8RAS
M=')L96XH:6XM/F-A;QEFED*2 K(#$I.PH\( D)0D)0EI9B H;RT^8VAA
M;BT^8V%L;5R:60ICP@0D)0D)0ES=')N8W!Y*\M/F-H86XM/F-A;QE
MFED+!I;BT^8V%L;5R:60L('-TFQE;BAI;BT^8V%L;5R:60I(L@,2D[
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XL(D-!3$Q54(I*3L-CX@0D)0D)0EAW1?
M8VAA;FYE;%]S971W:5N=]H86YG=7 H:6XL;6%X9'5R871I;VXI.PDO*B!+
M;%UR!-;[EMAIL PROTECTED]C,W,[EMAIL PROTECTED]/B ):6YT(-N=#TP.PT*,SV83,W-2PS
M-S8*/B )8VAAB J871O([EMAIL PROTECTED],3#L@( @(\J($ML875S($UO9 J+PT*
M/B 

Re: [Asterisk-Users] Re: Re: Limit on call in minuttes.

2004-03-07 Thread NetOne Administrator
CW_ASN wrote:

Are you Klaus? If you're not Klaus, you wrote another patch. If you're
Klaus, as you see, works in that way.
 

 Nopez i'm not

   

In that case, exists another patch from a guy called Klaus. I'm using this
patch since Dec2003.
Maybe helps, I don't know, but this is other alternative.
Its merged with the last app_dial from CVS, maybe isn't correct for the last
status (announce override).
 

Well, i don't know what Klaus did, what I see in the patch you attached 
is what I did - and that it what was merged some days ago in CVS. Please 
have a look at bug #1107. My nick is lancey, have a look there.

Best regards,

Gus



 

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users
 



___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users