Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Computing > UK VOIP > Confusing aah dial plan

Reply
Thread Tools

Confusing aah dial plan

 
 
Jono
Guest
Posts: n/a
 
      06-02-2006
Would some kind sould help me modify the below Asterisk@home code?

I would like all calls to reach the NVFaxDetect application,
whether they have a blank CLID or not.

Then I would like any voice calls with a blank CLID to hear a system WAV
file ("The number you are calling does not accept annonymous calls. Please
redial using 0871XXXXXXX, or call back without withholding your number"),
whilst callers with a CLID should be allowed to complete their call.

All my attempts are failing. In a deliberate attempt not to embarrass
myself, I haven't included my failed changes.


[from-pstn-reghours]
exten => s,1,GotoIf($[${FAX_RX} = disabled]?from-pstn-reghours-nofax,s,1:2)
exten => s,3,Playtones(ring)
exten => s,4,NVFaxDetect(10)
exten => s,5,SetVar(intype=${INCOMING})
exten => s,6,Cut(intype=intype,-,1)
exten => s,7,GotoIf($[${intype} = EXT]?8:9)
exten => s,8,Goto(ext-local,${INCOMING:4},1)
exten => s,9,GotoIf($[${intype} = GRP]?10:11)
exten => s,10,Goto(ext-group,${INCOMING:4},1)
exten => s,11,GotoIf($[${intype} = QUE]?12:13)
exten => s,12,Goto(ext-queues,${INCOMING:4},1)
exten => s,13,Goto(${INCOMING},s,1)
exten => fax,1,Goto(ext-fax,in_fax,1)
exten => h,1,Hangup


 
Reply With Quote
 
 
 
 
alexd
Guest
Posts: n/a
 
      06-03-2006
Jono wrote:

> I would like all calls to reach the NVFaxDetect application,
> whether they have a blank CLID or not.
>
> Then I would like any voice calls with a blank CLID to hear a system WAV
> file ("The number you are calling does not accept annonymous calls. Please
> redial using 0871XXXXXXX, or call back without withholding your number"),
> whilst callers with a CLID should be allowed to complete their call.


[from-pstn-reghours]
exten => s,1,GotoIf($[${FAX_RX} => disabled]?from-pstn-reghours-nofax,s,1:2)

; Out of interest, what happened to priority 2? Surely the above won't work
; without priority 2?

exten => s,3,Playtones(ring)
exten => s,4,NVFaxDetect(10)
exten => s,5,GotoIf($[${CALLERIDNUM:0:7} = "Private"]?acr,1:6)

; OK jono this is just a wild-assed guess I'm making here. I don't have an *
; connected to a PSTN circuit so I don't know what you get in the UK when a
; number is anonymous, and I don't know what you want to class as
; 'anonymous' - are Private, Unknown, International etc 'anonymous' in your
; book? If so, you'll have to add more GotoIf()s in a chain to catch them.
; To be honest, I don't even know if it's $CALLERIDNUM or $CALLERIDNAME that
; gets set. Again, you'll need to write more rules to match them.

exten => s,6,SetVar(intype=${INCOMING})
exten => s,7,Cut(intype=intype,-,1)
exten => s,8,GotoIf($[${intype} = EXT]?9:10)
exten => s,9,Goto(ext-local,${INCOMING:4},1)
exten => s,10,GotoIf($[${intype} = GRP]?11:12)
exten => s,11,Goto(ext-group,${INCOMING:4},1)
exten => s,12,GotoIf($[${intype} = QUE]?13:14)
exten => s,13,Goto(ext-queues,${INCOMING:4},1)
exten => s,14,Goto(${INCOMING},s,1)

exten => acr,1,Playback(custom/no-anonymous-thanks)
exten => acr,2,Hangup()

exten => fax,1,Goto(ext-fax,in_fax,1)

exten => h,1,Hangup

Good luck!


--
<http://ale.cx/> (AIM:troffasky) ((E-Mail Removed))
10:11:19 up 14 days, 4:08, 1 user, load average: 0.58, 0.80, 0.51
This is my BOOOOOOOOOOOOOOOOOOOOOMSTICK

 
Reply With Quote
 
 
 
 
Jono
Guest
Posts: n/a
 
      06-03-2006
alexd has brought this to us :
> Jono wrote:
>
>> I would like all calls to reach the NVFaxDetect application,
>> whether they have a blank CLID or not.
>>
>> Then I would like any voice calls with a blank CLID to hear a system WAV
>> file ("The number you are calling does not accept anonymous calls. Please
>> redial using 0871XXXXXXX, or call back without withholding your number"),
>> whilst callers with a CLID should be allowed to complete their call.

>
> [from-pstn-reghours]
> exten => s,1,GotoIf($[${FAX_RX} => disabled]?from-pstn-reghours-nofax,s,1:2)
>
> ; Out of interest, what happened to priority 2? Surely the above won't work
> ; without priority 2?
>
> exten => s,3,Playtones(ring)
> exten => s,4,NVFaxDetect(10)
> exten => s,5,GotoIf($[${CALLERIDNUM:0:7} = "Private"]?acr,1:6)
>
> ; OK jono this is just a wild-assed guess I'm making here. I don't have an *
> ; connected to a PSTN circuit so I don't know what you get in the UK when a
> ; number is anonymous, and I don't know what you want to class as
> ; 'anonymous' - are Private, Unknown, International etc 'anonymous' in your
> ; book? If so, you'll have to add more GotoIf()s in a chain to catch them.
> ; To be honest, I don't even know if it's $CALLERIDNUM or $CALLERIDNAME that
> ; gets set. Again, you'll need to write more rules to match them.
>
> exten => s,6,SetVar(intype=${INCOMING})
> exten => s,7,Cut(intype=intype,-,1)
> exten => s,8,GotoIf($[${intype} = EXT]?9:10)
> exten => s,9,Goto(ext-local,${INCOMING:4},1)
> exten => s,10,GotoIf($[${intype} = GRP]?11:12)
> exten => s,11,Goto(ext-group,${INCOMING:4},1)
> exten => s,12,GotoIf($[${intype} = QUE]?13:14)
> exten => s,13,Goto(ext-queues,${INCOMING:4},1)
> exten => s,14,Goto(${INCOMING},s,1)
>
> exten => acr,1,Playback(custom/no-anonymous-thanks)
> exten => acr,2,Hangup()
>
> exten => fax,1,Goto(ext-fax,in_fax,1)
>
> exten => h,1,Hangup
>
> Good luck!


Ooops! priority two is in the actual conf: exten => s,2,Answer. Bit too
much cutty pasty!

All my SIP inbound routes point to this context, so I can receive faxes
by SIP......so no PSTN is involved.

None of my phones display Caler ID name, so basically I just want voice
calls with blank numerical CLIDs to hear the acr message.

I will give your suggestion a try........cheers.


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How NOT to dial with Sipura's dial plan ? Marc Zirnheld UK VOIP 3 03-26-2008 11:46 PM
How to Pause or Wait during dial in a Dial Plan for SPA3102 Mike Sun UK VOIP 4 12-07-2007 01:39 PM
Dial Plan Quick Dial Numbers?? Phil UK VOIP 4 05-03-2007 11:27 PM
Dial voipcheap from dial plan John DH UK VOIP 6 02-01-2006 09:58 PM
AAH Sipura 3000 Matt UK VOIP 27 11-24-2005 04:18 PM



Advertisments