![]() |
|
Welcome to BroadbanterBanter. You are currently viewing as a guest which gives you limited access to view most discussions and other FREE features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today. |
| | |||||||
| uk.telecom.voip (UK VOIP) (uk.telecom.voip) Discussion of topics relevant to packet based voice technologies including Voice over IP (VoIP), Fax over IP (FoIP), Voice over Frame Relay (VoFR), Voice over Broadband (VoB) and Voice on the Net (VoN) as well as service providers, hardware and software for use with these technologies. Advertising is not allowed. |
| Tags: aah , confusing , dial , plan |
| | Thread Tools | Display Modes |
|
#1
| |||
| |||
| 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 |
| Ads |
|
#2
| |||
| |||
| 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) ) 10:11:19 up 14 days, 4:08, 1 user, load average: 0.58, 0.80, 0.51 This is my BOOOOOOOOOOOOOOOOOOOOOMSTICK |
|
#3
| |||
| |||
| 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. |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
| | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Cisco Dial Plan! | sean | uk.telecom.voip (UK VOIP) | 6 | May 31st 06 03:25 PM |
| Dial voipcheap from dial plan | John DH | uk.telecom.voip (UK VOIP) | 6 | February 1st 06 10:58 PM |
| Dial Plan - PAP2? | ras | uk.telecom.voip (UK VOIP) | 5 | October 3rd 05 05:32 PM |
| Fwd Dial Plan | ras | uk.telecom.voip (UK VOIP) | 4 | October 1st 05 09:25 PM |
| UK Dial plan | Andrew Gabriel | uk.telecom.voip (UK VOIP) | 31 | July 21st 05 09:30 PM |