Re: [Misdn-asterisk] WaitForDigits

2006-12-04 Thread Igor Neves
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Stefan Agethen wrote:
> Hi,
> 
> i am searching for a solution to my problem in my Asterisk and mISDN.
> 
> I am using 0.3.1 rc 23 and if a caller calls me on my isdn ptp line and
> he use an pots "block" dial , this means the number is dialed in one
> block, the last digit fails.
> 
> It happens 3 or 4 times a day, people who wants to call an extension
> like  reach .
> 
> I have tried to use wait4digits but it seems not to work as well as i
> think.
> 
> I need help in this case , i can not call it stable working...
> 
> Best Wishes - Stefan

Try to use waitfordigits(|||3000) for waiting 3sec, but how can that
works sometimes, and sometimes dont?

Cheers.
- --
Igor Neves <[EMAIL PROTECTED]>
3GNTW - Tecnologias de Informação, Lda

 sip [EMAIL PROTECTED]  jid [EMAIL PROTECTED]
 icq 249075444

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2.2 (GNU/Linux)

iD8DBQFFdCreLL6dC1KoiA4RAh1xAJ9VlEPK1sbV9rz5vX7ymcZir24oYwCeNWJ6
clXmvU0uKbmmZDqURUB/s2o=
=ECN0
-END PGP SIGNATURE-
___
Misdn-asterisk mailing list
Misdn-asterisk@lists.beronet.com
http://lists.beronet.com/cgi-bin/mailman/listinfo/misdn-asterisk


[Misdn-asterisk] WaitForDigits

2006-12-04 Thread Stefan Agethen

Hi,

i am searching for a solution to my problem in my Asterisk and mISDN.

I am using 0.3.1 rc 23 and if a caller calls me on my isdn ptp line and
he use an pots "block" dial , this means the number is dialed in one
block, the last digit fails.

It happens 3 or 4 times a day, people who wants to call an extension
like  reach .

I have tried to use wait4digits but it seems not to work as well as i think.

I need help in this case , i can not call it stable working...

Best Wishes - Stefan

___
Misdn-asterisk mailing list
Misdn-asterisk@lists.beronet.com
http://lists.beronet.com/cgi-bin/mailman/listinfo/misdn-asterisk


Re: [Misdn-asterisk] waitfordigits on incoming call

2006-09-19 Thread Ralf Schlatterbeck
On Tue, Sep 19, 2006 at 01:27:43PM +0200, Kai Ober wrote:
> this would make tings possible like DIAL(local/300&local/301)
> if you use goto.. ah forget about this point.
OK, I see.

> the point is, after a dial local you can't use call deflection any more.
> 
> ahmm you just want to do "CD im amt" ?
Yes, the idea is to redirect calls to my mobile phone when I'm not in my
office (and I'm following the other thread on the list about deflection).

Ralf
-- 
Ralf Schlatterbeck
email: [EMAIL PROTECTED] FAX: +43/2243/26465/23

___
Misdn-asterisk mailing list
Misdn-asterisk@lists.beronet.com
http://lists.beronet.com/cgi-bin/mailman/listinfo/misdn-asterisk


Re: [Misdn-asterisk] waitfordigits on incoming call

2006-09-19 Thread Kai Ober



I think you mean
 Goto(extern,${EXTEN:1},1)
here -- nothing was in you original mail.
  

i used cut instead of copy and paste ;)


This would save the new extension only into ${NEWEXTEN} without changing
${EXTEN}. (I found this out by RTFS) and I could then do
 Goto(extern,${NEWEXTEN:1},1)
  

hmm didn't not know this exists, nice :)



instead of the goto you could do a dial(local/{exten:1})


I don't understand why that is nicer (and I do want to use call
deflection, earlier tests with an older version of chan_misdn didn't
work but I want to re-test it)
  

this would make tings possible like DIAL(local/300&local/301)
if you use goto.. ah forget about this point.

the point is, after a dial local you can't use call deflection any more.

ahmm you just want to do "CD im amt" ?

Regards
Kai


___
Misdn-asterisk mailing list
Misdn-asterisk@lists.beronet.com
http://lists.beronet.com/cgi-bin/mailman/listinfo/misdn-asterisk


Re: [Misdn-asterisk] waitfordigits on incoming call

2006-09-19 Thread Ralf Schlatterbeck
On Tue, Sep 19, 2006 at 11:26:22AM +0200, Kai Ober wrote:
> normally i is for invalid.
> 
> you issed somting in line
> 
> exten => s,4,Goto(extern,${EXTEN},1)
> my idea is to do
> 
I think you mean
 Goto(extern,${EXTEN:1},1)
here -- nothing was in you original mail.

> which will cut the first digit.
Yes. Probably. I'm still not sure if it doesn't directly jump into the
dialplan. For me it looks like as soon as the waitfordigits app changes
${EXTEN} the dialplan is re-evaluated and jumps automagically.
But maybe I should call
exten => s,3,Waitfordigits(4000,3,false,15)
This would save the new extension only into ${NEWEXTEN} without changing
${EXTEN}. (I found this out by RTFS) and I could then do
 Goto(extern,${NEWEXTEN:1},1)


> Plz have a look here:
> http://www.voip-info.org/wiki-Asterisk+variables
I know... The problem was that statements after the waitfordigits where
not executed.

> 
> this morning i tested something else, which is nicer than the goto in some
> points (only if you don't ever want to use misdn_facility(calldeflection)
> 
> instead of the goto you could do a dial(local/{exten:1})
I don't understand why that is nicer (and I do want to use call
deflection, earlier tests with an older version of chan_misdn didn't
work but I want to re-test it)
> 
> i would also design the kontext stuff a little differen [default] is 
> nice, yes but
> 
> use somthing like
> context=from-extern
> in your misdn.config
> 
> don't include the other contexts in the default context
I sometimes get incoming calls that already have the full extension set
immediately in the setup. I want these to not go through the
waitfordigits stuff, so I think the dialplan is OK as it is...

Note that my "default" context is used for most incoming calls and has
no privileges. Otherwise I'd had to change all the channel driver
configs...

Ralf
-- 
Ralf Schlatterbeck
email: [EMAIL PROTECTED] FAX: +43/2243/26465/23

___
Misdn-asterisk mailing list
Misdn-asterisk@lists.beronet.com
http://lists.beronet.com/cgi-bin/mailman/listinfo/misdn-asterisk


Re: [Misdn-asterisk] waitfordigits on incoming call

2006-09-19 Thread Kai Ober

normally i is for invalid.

you issed somting in line

exten => s,4,Goto(extern,${EXTEN},1)
my idea is to do


which will cut the first digit.

Plz have a look here:
http://www.voip-info.org/wiki-Asterisk+variables


this morning i tested something else, which is nicer than the goto in some
points (only if you don't ever want to use misdn_facility(calldeflection)

instead of the goto you could do a dial(local/{exten:1})


exten => s,4,DIAL(local/${EXTEN:[EMAIL PROTECTED],1)


i would also design the kontext stuff a little differen [default] is 
nice, yes but


use somthing like
context=from-extern
in your misdn.config

don't include the other contexts in the default context

when call from extern is signalled:

[from-extern]

exten => s,1,Noop(s)
exten => s,2,SetAccount(wfd-${EXTEN}-)
exten => s,3,Waitfordigits(4000,3,addexten,15)
exten => s,4,Goto(extern-handling,${EXTEN:1},1)


[extern-handling]

exten => _X.,1,Dial(${$EXTEN})
exten => _X.,2,NoOp(DIALSTATUS = ${DIALSTATUS}
exten => _X.,3,GotoIf($[${DIALSTATUS}=BUSY]?BUSY,1:NOANSWER,1)

exten => BUSY,1,do busy handling
exten => NOANSWER,1,do naoanswer handling


[default]
;use for call from inside to outside, or so.






for the following dialplan snippet:
[waitfordigits]
exten => s,1,Noop(s)
exten => s,2,SetAccount(wfd-${EXTEN}-)
exten => s,3,Waitfordigits(4000,3,addexten,15)
exten => s,4,Goto(extern,${EXTEN},1)

[extern]
...
exten => i,1,SetAccount(${ACCOUNTCODE}${EXTEN}_ext_i)
exten => i,2,Noop(i)
exten => i,3,Dial(${UNTEN})
exten => i,4,Busy()
exten => i,104,Busy()
...

[default]
include => waitfordigits
include => extern

  


___
Misdn-asterisk mailing list
Misdn-asterisk@lists.beronet.com
http://lists.beronet.com/cgi-bin/mailman/listinfo/misdn-asterisk


Re: [Misdn-asterisk] waitfordigits on incoming call

2006-09-19 Thread Ralf Schlatterbeck
On Tue, Sep 19, 2006 at 09:19:28AM +0200, Kai Ober wrote:
> 
> This is weird, as my waitfordigts does not jump anywhere. You confuse me ;)
> 
> >No. The Goto will never be reached. Waitfordigits jumps and doesn't
> >reach the next instruction 

Maybe I jumped to the wrong conclusion, I'm getting:

-- Executing NoOp("mISDN/1-1", "s") in new stack
-- Executing SetAccount("mISDN/1-1", "wfd-s-") in new stack
-- Executing waitfordigits("mISDN/1-1", "4000|3|addexten|15") in new stack
You passed timeout:4000 maxnum:3 addexten:1 control:15
Overwriting extension:11 with new Number: s11
Sending CONTROL: 15  to Channel s11
P[ 1] After SETUP BC
-- Sent into invalid extension 's11' in context 'default' on mISDN/1-1
-- Executing SetAccount("mISDN/1-1", "wfd-s-i_ext_i") in new stack
-- Executing NoOp("mISDN/1-1", "i") in new stack
-- Executing Dial("mISDN/1-1", "Zap/4") in new stack
-- Called 4
-- Zap/4-1 is ringing

for the following dialplan snippet:
[waitfordigits]
exten => s,1,Noop(s)
exten => s,2,SetAccount(wfd-${EXTEN}-)
exten => s,3,Waitfordigits(4000,3,addexten,15)
exten => s,4,Goto(extern,${EXTEN},1)

[extern]
...
exten => i,1,SetAccount(${ACCOUNTCODE}${EXTEN}_ext_i)
exten => i,2,Noop(i)
exten => i,3,Dial(${UNTEN})
exten => i,4,Busy()
exten => i,104,Busy()
...

[default]
include => waitfordigits
include => extern


And the Goto I have after the waitfordigits is not shown in the debug although
it *is* shown for other instances of Goto.

I *think* I placed a SetAccount for debugging immediately before the Goto in
the example above which wasn't executed. I'll re-add that and check.

Ralf
-- 
Ralf Schlatterbeck
email: [EMAIL PROTECTED] FAX: +43/2243/26465/23

___
Misdn-asterisk mailing list
Misdn-asterisk@lists.beronet.com
http://lists.beronet.com/cgi-bin/mailman/listinfo/misdn-asterisk


Re: [Misdn-asterisk] waitfordigits on incoming call

2006-09-19 Thread Kai Ober


This is weird, as my waitfordigts does not jump anywhere. You confuse me ;)


No. The Goto will never be reached. Waitfordigits jumps and doesn't
reach the next instruction 


___
Misdn-asterisk mailing list
Misdn-asterisk@lists.beronet.com
http://lists.beronet.com/cgi-bin/mailman/listinfo/misdn-asterisk


Re: [Misdn-asterisk] waitfordigits on incoming call

2006-09-18 Thread Ralf Schlatterbeck
On Mon, Sep 18, 2006 at 12:52:47PM +0200, Kai Ober wrote:
> the s thing can be done, is you jumt to an outer kontext, cutting the 
> first digit...
> 
> so as you have an contexte extern do it like that
> 
> [waitfordigits]
> exten => s,1,Noop(s)
> exten => s,2,SetAccount(wfd)
> exten => s,3,Waitfordigits(4000,3(or more),true,15)
> exten => s,4,Goto(extern,${EXTEN:1},1)
> 
> [extern]
> exten => _X.,1,DO WHAT YOU LIKE
> 
> 
> as you jump, the s will be cut off forever

No. The Goto will never be reached. Waitfordigits jumps and doesn't
reach the next instruction (hmm not quite asterisk-terminology, I'm
always thinking of the dialplan as a Basic program :-). But maybe I have
an ages-old version of Waitfordigits? I'm using
http://www.beronet.com/download/apps/app_bundle.tar.gz

But looking into the code I should be able to fix it...

Ralf
-- 
Ralf Schlatterbeck
email: [EMAIL PROTECTED] FAX: +43/2243/26465/23

___
Misdn-asterisk mailing list
Misdn-asterisk@lists.beronet.com
http://lists.beronet.com/cgi-bin/mailman/listinfo/misdn-asterisk


Re: [Misdn-asterisk] waitfordigits on incoming call

2006-09-18 Thread Kai Ober

Ralf Schlatterbeck schrieb:

On Mon, Sep 18, 2006 at 10:56:46AM +0200, Kai Ober wrote:
  

Have you tried a waitfordigits (time,maxnum) with maxnum =3 ?
in my rc23 maxnum is NOT maxnum after the exteten, but including the 
exten: ie



Good tip. I hat maxnum=2 so far, will try with 3 and let you know if it
works out for me. (But that probably still leaves the problem with the
leading "s", maybe I'll have to look into the code...)

Ralf
  



the s thing can be done, is you jumt to an outer kontext, cutting the 
first digit...


so as you have an contexte extern do it like that

[waitfordigits]
exten => s,1,Noop(s)
exten => s,2,SetAccount(wfd)
exten => s,3,Waitfordigits(4000,3(or more),true,15)
exten => s,4,Goto(extern,${EXTEN:1},1)

[extern]
exten => _X.,1,DO WHAT YOU LIKE


as you jump, the s will be cut off forever


___
Misdn-asterisk mailing list
Misdn-asterisk@lists.beronet.com
http://lists.beronet.com/cgi-bin/mailman/listinfo/misdn-asterisk


Re: [Misdn-asterisk] waitfordigits on incoming call

2006-09-18 Thread Ralf Schlatterbeck
On Mon, Sep 18, 2006 at 10:56:46AM +0200, Kai Ober wrote:
> 
> Have you tried a waitfordigits (time,maxnum) with maxnum =3 ?
> in my rc23 maxnum is NOT maxnum after the exteten, but including the 
> exten: ie

Good tip. I hat maxnum=2 so far, will try with 3 and let you know if it
works out for me. (But that probably still leaves the problem with the
leading "s", maybe I'll have to look into the code...)

Ralf
-- 
Ralf Schlatterbeck
email: [EMAIL PROTECTED] FAX: +43/2243/26465/23

___
Misdn-asterisk mailing list
Misdn-asterisk@lists.beronet.com
http://lists.beronet.com/cgi-bin/mailman/listinfo/misdn-asterisk


[Fwd: Re: [Misdn-asterisk] waitfordigits on incoming call]

2006-09-18 Thread Kai Ober

sry posted direct so sender...
--- Begin Message ---


I have chan_misdn-0.3.1-rc23. But cutting the "s" away wouldn't help
alone: It would have to jump to extension 11, not 1. So it should
probably concatenate what it already received?
Do I interpret the message above correctly, that it already *has* a "1"
which is overwritten with "s1" instead of concatenating the second
received "1" to the first it already has, making "11" instead of "s1"?

  


Have you tried a waitfordigits (time,maxnum) with maxnum =3 ?


in my rc23 maxnum is NOT maxnum after the exteten, but including the 
exten: ie


exten => _4711.,1,waitfordigits(4000,4)
exten =>  ,2, do dialing...

does NOT wait for 4 digits behind the 4711 it dieals directlie after 
getting 4711


i have to use
exten => _4711.,1,waitfordigits(4000,7)
exten =>  ,2, do dialing...


when my ddi's are 3 digits long.

the documentation on voipinfo discribes this, in my opinon, wrong.
not sure which of the two ways is the way it SHOUL work,   the way it 
actually works in rc23, or as discribed in voipinfo wiki


KAI


--- End Message ---
___
Misdn-asterisk mailing list
Misdn-asterisk@lists.beronet.com
http://lists.beronet.com/cgi-bin/mailman/listinfo/misdn-asterisk


Re: [Misdn-asterisk] waitfordigits on incoming call

2006-09-15 Thread Ralf Schlatterbeck
On Fri, Sep 15, 2006 at 10:39:26AM +0200, Christian Richter wrote:
> Ralf Schlatterbeck wrote:
> >Overwriting extension:1 with new Number: s1
> >Sending CONTROL: 15  to Channel s1
> >P[ 1] After SETUP BC
> >-- Sent into invalid extension 's1' in context 'default' on mISDN/1-1
> >
> as far as i remember the s should be cut away, i'll need to look into
> the code more detailed.
I have chan_misdn-0.3.1-rc23. But cutting the "s" away wouldn't help
alone: It would have to jump to extension 11, not 1. So it should
probably concatenate what it already received?
Do I interpret the message above correctly, that it already *has* a "1"
which is overwritten with "s1" instead of concatenating the second
received "1" to the first it already has, making "11" instead of "s1"?

> >Should I switch to chan_misdn 0.4 which has a timeout option? Does 0.4
> >work with asterisk 1.2?
> >  
> >
> you can do that. The versions on our website will work with asterisk
> 1.2, but we've decided that new developement for 0.4 goes into trunk of
> asterisk directly, which means it will not be compatible with 1.2 anymore.
Sad fact :-)
You certainly would get me as a tester (and maybe others, too) if it
would stay compatible for some time, but maybe its too late now :-(

Ralf
-- 
Ralf Schlatterbeck
email: [EMAIL PROTECTED] FAX: +43/2243/26465/23

___
Misdn-asterisk mailing list
Misdn-asterisk@lists.beronet.com
http://lists.beronet.com/cgi-bin/mailman/listinfo/misdn-asterisk


Re: [Misdn-asterisk] waitfordigits on incoming call

2006-09-15 Thread Christian Richter
Ralf Schlatterbeck wrote:

>On Wed, Sep 13, 2006 at 11:24:44AM +0200, Ralf Schlatterbeck wrote:
>  
>
>>On Wed, Sep 13, 2006 at 12:24:12AM +0200, Christian Richter wrote:
>>
>>Yes, I noticed that Waitfordigits jumps to the extension and I don't need a
>>Goto afterwards.
>>>From my logs it looks like I would end up with an extension of "s1" in case
>>somebody dials 21 as the extension and the first half "2" is received during
>>setup while the second half "1" is received as overlap, is that correct? Or
>>will reception of one half of the extension during setup and the other half in
>>overlap work with Waitfordigits?
>>
>>
>
>Looks like this is really the case, the following example looks like
>somebody dialled -11 as the extension and "1" was received during setup
>and the second half in overlap:
>
>You passed timeout:4000 maxnum:2 addexten:1 control:15
>Overwriting extension:1 with new Number: s1
>Sending CONTROL: 15  to Channel s1
>P[ 1] After SETUP BC
>-- Sent into invalid extension 's1' in context 'default' on mISDN/1-1
>
>  
>
as far as i remember the s should be cut away, i'll need to look into
the code more detailed.

>Should I switch to chan_misdn 0.4 which has a timeout option? Does 0.4
>work with asterisk 1.2?
>  
>
you can do that. The versions on our website will work with asterisk
1.2, but we've decided that new developement for 0.4 goes into trunk of
asterisk directly, which means it will not be compatible with 1.2 anymore.

>BTW: I've only now turned on 'need_more_infos' in misdn.conf and keep
>testing some more.
>
>Ralf
>  
>

___
Misdn-asterisk mailing list
Misdn-asterisk@lists.beronet.com
http://lists.beronet.com/cgi-bin/mailman/listinfo/misdn-asterisk


Re: [Misdn-asterisk] waitfordigits on incoming call

2006-09-15 Thread Ralf Schlatterbeck
On Wed, Sep 13, 2006 at 11:24:44AM +0200, Ralf Schlatterbeck wrote:
> On Wed, Sep 13, 2006 at 12:24:12AM +0200, Christian Richter wrote:
> 
> Yes, I noticed that Waitfordigits jumps to the extension and I don't need a
> Goto afterwards.
> >From my logs it looks like I would end up with an extension of "s1" in case
> somebody dials 21 as the extension and the first half "2" is received during
> setup while the second half "1" is received as overlap, is that correct? Or
> will reception of one half of the extension during setup and the other half in
> overlap work with Waitfordigits?

Looks like this is really the case, the following example looks like
somebody dialled -11 as the extension and "1" was received during setup
and the second half in overlap:

You passed timeout:4000 maxnum:2 addexten:1 control:15
Overwriting extension:1 with new Number: s1
Sending CONTROL: 15  to Channel s1
P[ 1] After SETUP BC
-- Sent into invalid extension 's1' in context 'default' on mISDN/1-1

Should I switch to chan_misdn 0.4 which has a timeout option? Does 0.4
work with asterisk 1.2?

BTW: I've only now turned on 'need_more_infos' in misdn.conf and keep
testing some more.

Ralf
-- 
Ralf Schlatterbeck
email: [EMAIL PROTECTED] FAX: +43/2243/26465/23

___
Misdn-asterisk mailing list
Misdn-asterisk@lists.beronet.com
http://lists.beronet.com/cgi-bin/mailman/listinfo/misdn-asterisk


Re: [Misdn-asterisk] waitfordigits on incoming call

2006-09-13 Thread Ralf Schlatterbeck
On Wed, Sep 13, 2006 at 12:24:12AM +0200, Christian Richter wrote:
> 
> >Now some questions:
> >- When in the waitfordigits context I'm getting the following verbose 3
> >  output:
> >-- Executing waitfordigits("mISDN/1-2", "4000|2|true|15") in new 
> > stack
> >You passed timeout:4000 maxnum:2 addexten:0 control:15
> >Not Overwriting extension:s with new Number: s
> >Sending CONTROL: 15  to Channel s
> >  
> >  Hu? I passed "true" as 3rd parameter and it tells me addexten is off?
> >
> you actually need to use:
> 
> waitfordigits(4000|2|addexten|15)
OK, then the example on voip-info is wrong.
http://www.voip-info.org/wiki/view/Asterisk+DID+mISDN

> so you really need to write addexten. But this is default in chan_misdn,
> so you do not need this in waitfordigits.
Ok. Is the fourth parameter (15 seems to be some flag for the isdn
stack) also default? Or don't I need that?

> >- Wouldn't the better way to handle overlap dialling be to do it in the
> >  channel driver directly without resorting to waitfordigits? Maybe with
> >  a configurable timeout in misdn.conf?
> We have done that in 0.4.0, but the application is much more flexible.
Hmm, yes more flexible but also not very easy to configure -- and other
channel drivers like chan_capi also use a timeout afaik.

> I would suggest to use a context like:
> [incoming]
> exten => s,1,Waitfordigits(4000)
> exten => _XX,1,do_what_ever_you_want_with_2_digits_extensions
Wouldn't I want to specify
exten => s,1,Waitfordigits(4000,2)
to avoid waiting for 4 seconds even after having received the two digits?
Or will Waitfordigits immediately jump once it has found a dialplan-match?
That would explain why it doesn't work for me, I also have an '_X.' extension
to receive calls that don't have a correct extension dialled on a default
phone.

Yes, I noticed that Waitfordigits jumps to the extension and I don't need a
Goto afterwards.
>From my logs it looks like I would end up with an extension of "s1" in case
somebody dials 21 as the extension and the first half "2" is received during
setup while the second half "1" is received as overlap, is that correct? Or
will reception of one half of the extension during setup and the other half in
overlap work with Waitfordigits?
Example asterisk debug-output:
-- Executing waitfordigits("mISDN/1-1", "4000|2|true|15") in new stack
You passed timeout:4000 maxnum:2 addexten:0 control:15
Not Overwriting extension:1 with new Number: s1
Sending CONTROL: 15  to Channel 1
P[ 1] After SETUP BC
-- Sent into invalid extension '1' in context 'default' on mISDN/1-1

That log is still with the uncorrected third parameter, thats the reason for
the error message.

Ralf
-- 
Ralf Schlatterbeck
email: [EMAIL PROTECTED] FAX: +43/2243/26465/23

___
Misdn-asterisk mailing list
Misdn-asterisk@lists.beronet.com
http://lists.beronet.com/cgi-bin/mailman/listinfo/misdn-asterisk


Re: [Misdn-asterisk] waitfordigits on incoming call

2006-09-12 Thread Christian Richter

>Now some questions:
>- When in the waitfordigits context I'm getting the following verbose 3
>  output:
>-- Executing waitfordigits("mISDN/1-2", "4000|2|true|15") in new stack
>You passed timeout:4000 maxnum:2 addexten:0 control:15
>Not Overwriting extension:s with new Number: s
>Sending CONTROL: 15  to Channel s
>  
>  Hu? I passed "true" as 3rd parameter and it tells me addexten is off?
>
>  
>
you actually need to use:

waitfordigits(4000|2|addexten|15)

so you really need to write addexten. But this is default in chan_misdn,
so you do not need this in waitfordigits.

>- Should I expect that I get "half" dialled extension, e.g. that I
>  receive a DID of "1" and the second half of the DID as an overlap
>  dialled digit, so that I should add some more to the waitfordigits
>  context like
>exten => _X.,1,Noop(s)
>exten => _X.,2,SetAccount(wfd)
>exten => _X.,3,Waitfordigits(4000,1,true,15)
>exten => _X.,4,Goto(extern,${EXTEN},1)
>  (That example probably wouldn't work, I'd need to save the previous
>  extension here but servers to illustrate the point, that half of the
>  extension comes with the call setup and the other half as overlap --
>  can I instruct waitfordigits to *append* to the existing ${EXTEN}?)
>
>- Wouldn't the better way to handle overlap dialling be to do it in the
>  channel driver directly without resorting to waitfordigits? Maybe with
>  a configurable timeout in misdn.conf?
>
>  
>
We have done that in 0.4.0, but the application is much more flexible.


I would suggest to use a context like:

[incoming]

exten => s,1,Waitfordigits(4000)
exten => _XX,1,do_what_ever_you_want_with_2_digits_extensions


that seems to me what you like to do

Christian

___
Misdn-asterisk mailing list
Misdn-asterisk@lists.beronet.com
http://lists.beronet.com/cgi-bin/mailman/listinfo/misdn-asterisk


[Misdn-asterisk] waitfordigits on incoming call

2006-09-08 Thread Ralf Schlatterbeck
I'm quite successfully running chan-misdn_0.3.1-rc23 on an Austrian P2P
line. Recently I introduced a new waitfordigits context similar to the
wiki page http://www.voip-info.org/wiki/view/Asterisk+DID+mISDN
I've turned on "immediate=yes" in misdn.conf and misdn is configured to
jump into the "default" context. Previously I had immediate=no but when
somebody dialled the base-number without DID (Durchwahl) the caller
would get busy and Asterisk would never see the call.

A note to understand the extensions.conf sample: In Austria we're
getting only the DID (Durchwahl) on a P2P line, we are *not* getting the
base number (Kopfnummer) part of the number, *only* the digits dialled
after that.

My extensions.conf snippet:
[waitfordigits]
exten => s,1,Noop(s)
exten => s,2,SetAccount(wfd)
exten => s,3,Waitfordigits(4000,2,true,15)
exten => s,4,Goto(extern,${EXTEN},1)

[default]
include => waitfordigits
include => extern

Now some questions:
- When in the waitfordigits context I'm getting the following verbose 3
  output:
-- Executing waitfordigits("mISDN/1-2", "4000|2|true|15") in new stack
You passed timeout:4000 maxnum:2 addexten:0 control:15
Not Overwriting extension:s with new Number: s
Sending CONTROL: 15  to Channel s
  
  Hu? I passed "true" as 3rd parameter and it tells me addexten is off?

- Should I expect that I get "half" dialled extension, e.g. that I
  receive a DID of "1" and the second half of the DID as an overlap
  dialled digit, so that I should add some more to the waitfordigits
  context like
exten => _X.,1,Noop(s)
exten => _X.,2,SetAccount(wfd)
exten => _X.,3,Waitfordigits(4000,1,true,15)
exten => _X.,4,Goto(extern,${EXTEN},1)
  (That example probably wouldn't work, I'd need to save the previous
  extension here but servers to illustrate the point, that half of the
  extension comes with the call setup and the other half as overlap --
  can I instruct waitfordigits to *append* to the existing ${EXTEN}?)

- Wouldn't the better way to handle overlap dialling be to do it in the
  channel driver directly without resorting to waitfordigits? Maybe with
  a configurable timeout in misdn.conf?

Ralf
-- 
Ralf Schlatterbeck
email: [EMAIL PROTECTED] FAX: +43/2243/26465/23

___
Misdn-asterisk mailing list
Misdn-asterisk@lists.beronet.com
http://lists.beronet.com/cgi-bin/mailman/listinfo/misdn-asterisk