Re: AzMan viability
Hi Greg, did you manage to solve this issue? The following page seems to indicate it can still be done via the Enterprise Library http://stackoverflow.com/questions/14229771/azman-obsolete-what-is-the-new-alternative-to-azman I have officially given-up on using AzMan. I thought it would be as easy as making the rules (which is really easy in the msc plugin), then referencing a library and making a few calls. I was going well until I couldn't find the library and the public methods didn't match any of the sample code, not even code in MSDN magazine articles or Keith Brown's book http://www.amazon.com/NET-Developers-Guide-Windows-Security/dp/0321228359. If EntLib has a wrapper around azman.dll then that's too bad, as I'm not going back to using that bloated mess. I had to use EntLib years ago due to a dependency from netTiers, and it just cluttered things up (a poor decision by the template authors I think). For years I thought that Azman was just a database combined with an API, the sort of thing any of us could write, but I suspect now that it was a wrapper over the non-trivial AuthZ API http://msdn.microsoft.com/en-us/library/windows/desktop/ff394773(v=vs.85).aspx which exposes the kernel-mode SRM (Security Reference Monitor) model in user-mode. Years ago I asked in here if there was a way of using ACLs to protect arbitrary application defined objects (as we did on IBM mainframes with RACF). I think the answer was no or it's really hard as you'd have to manage and serialize the ACLs yourself, so the Windows security model is not easily extensible for use in applications. I further suspect now that Azman was designed to bridge this gap, but advertising for it was misleading or sparse and it never became popular in communities like this. If anyone has insider knowledge and can confirm or deny what I've said, then I'm all ears! *Greg K*
Programmatically call forward
I have a client who wants to be able to have a button in our app to turn on/off call forwarding on their phone system. Does Telstra (or Optus) have any API anyone knows about for things like this? Craig
Re: Programmatically call forward
On: *21forward number# Off: #21# -- Regards, Mark Hurd, B.Sc.(Ma.)(Hons.) On 16 December 2014 at 18:58, Craig van Nieuwkerk crai...@gmail.com wrote: I have a client who wants to be able to have a button in our app to turn on/off call forwarding on their phone system. Does Telstra (or Optus) have any API anyone knows about for things like this? Craig
Re: Programmatically call forward
I don't know much about it, but when our office telecoms system was replaced a few years back, it then included this kind of functionality. I can (or could, when I was in the office) have an exchange toolbar that allows me to control my phone, including call forwarding behavior. I don’t think the API was public, but as I understood it what was actually going on under the covers was the plugin was talking to a local server/service, which sent commands up into the telco cloud. Between them the different telcos must have dynamic peering arrangements, because it could fwd my desk phone to my mobile seamlessly, complete with caller ID and everything (and the company picking up the charge differences between landline rates and mobile rates IRRC) So I think the first thing to find out is : what is their call system? It's more likely you'd be talking to that than to Telstra direct (I'd have thought) From: Mark Hurd Sent: Tuesday, December 16, 2014 6:00 PM To: ozDotNet On: *21forward number# Off: #21# -- Regards, Mark Hurd, B.Sc.(Ma.)(Hons.) On 16 December 2014 at 18:58, Craig van Nieuwkerk crai...@gmail.com wrote: I have a client who wants to be able to have a button in our app to turn on/off call forwarding on their phone system. Does Telstra (or Optus) have any API anyone knows about for things like this? Craig
Re: Programmatically call forward
Can I do this programatically though, from a .NET program? On Tue, Dec 16, 2014 at 9:00 PM, Mark Hurd markeh...@gmail.com wrote: On: *21forward number# Off: #21# -- Regards, Mark Hurd, B.Sc.(Ma.)(Hons.) On 16 December 2014 at 18:58, Craig van Nieuwkerk crai...@gmail.com wrote: I have a client who wants to be able to have a button in our app to turn on/off call forwarding on their phone system. Does Telstra (or Optus) have any API anyone knows about for things like this? Craig
Re: Good code to read
http://www.funnelweblog.com/ is good +1 for ayende (ravendb source anyone?) On Tue, Dec 16, 2014 at 2:53 PM, Tom P tompbi...@gmail.com wrote: Thanks William I am checking out the mvc source code now actually but wanted maybe a good non trivial web app and not a framework as such. Thanks Tom On 16 December 2014 at 17:45, William Luu will@gmail.com wrote: How about reading the source code for ASP.NET MVC (vNext/6)? :) https://github.com/aspnet/mvc/ To be honest, I'm not too sure on what projects. Maybe Orchard CMS? http://orchard.codeplex.com/ On 16 December 2014 at 16:51, Tom P tompbi...@gmail.com wrote: Obviously you all write some killer code but can someone recommend some really good open source code I can read and learn from? Preferably ASP.NET MVC with some mobile support. Thanks Tom
Re: Programmatically call forward
The short answer is - Yes. A long time ago, in a galaxy far far away, there were modems. You plugged the phone line into them and then plugged the modem into your coms/serial port. The software would then send commands to the modem to send the appropriate tones for '*' '2' '1'' phone number' '#'. I see no reason why you still can't do it. CodeProject had several examples you can use to send the appropriate code to your modem/router and it should also be possible to interface with the modem/router via the network rather than the serial port. You may need an API to the router, not the telco service provider. On 16/12/2014 10:05 PM, Craig van Nieuwkerk wrote: Can I do this programatically though, from a .NET program? On Tue, Dec 16, 2014 at 9:00 PM, Mark Hurd markeh...@gmail.com mailto:markeh...@gmail.com wrote: On: *21forward number# Off: #21# -- Regards, Mark Hurd, B.Sc.(Ma.)(Hons.) On 16 December 2014 at 18:58, Craig van Nieuwkerk crai...@gmail.com mailto:crai...@gmail.com wrote: I have a client who wants to be able to have a button in our app to turn on/off call forwarding on their phone system. Does Telstra (or Optus) have any API anyone knows about for things like this? Craig
Re: Programmatically call forward
I remember the old 1200/75 Viatel model all too well :-) I will look into this. Craig. On Wed, Dec 17, 2014 at 4:11 AM, Glen Harvy g...@aquarius.com.au wrote: The short answer is - Yes. A long time ago, in a galaxy far far away, there were modems. You plugged the phone line into them and then plugged the modem into your coms/serial port. The software would then send commands to the modem to send the appropriate tones for '*' '2' '1'' phone number' '#'. I see no reason why you still can't do it. CodeProject had several examples you can use to send the appropriate code to your modem/router and it should also be possible to interface with the modem/router via the network rather than the serial port. You may need an API to the router, not the telco service provider. On 16/12/2014 10:05 PM, Craig van Nieuwkerk wrote: Can I do this programatically though, from a .NET program? On Tue, Dec 16, 2014 at 9:00 PM, Mark Hurd markeh...@gmail.com wrote: On: *21forward number# Off: #21# -- Regards, Mark Hurd, B.Sc.(Ma.)(Hons.) On 16 December 2014 at 18:58, Craig van Nieuwkerk crai...@gmail.com wrote: I have a client who wants to be able to have a button in our app to turn on/off call forwarding on their phone system. Does Telstra (or Optus) have any API anyone knows about for things like this? Craig
Re: Good code to read
Perhaps just search through the various github repositories with the search parameter language:C#. Eg: https://github.com/search?utf8=%E2%9C%93q=language%3AC%23type=Repositoriesref=advsearchl=C%23 And then add words like CMS https://github.com/search?utf8=%E2%9C%93q=language%3AC%23+CMStype=Repositoriesref=searchresults, Store https://github.com/search?utf8=%E2%9C%93q=language%3AC%23+Storetype=Repositoriesref=searchresults, Forum https://github.com/search?utf8=%E2%9C%93q=language%3AC%23+Forumtype=Repositoriesref=searchresults, etc. A few random ones I've found that might interest you: * ASP.NET MiniBlog - https://github.com/madskristensen/miniblog * MVC Forum - https://github.com/leen3o/mvcforum While not using ASP.NET MVC, JabbR might be worth looking at too - https://github.com/JabbR/JabbR/tree/dev/JabbR It uses SignalR, NancyFx On 16 December 2014 at 23:30, Wallace Turner wallace.tur...@gmail.com wrote: http://www.funnelweblog.com/ is good +1 for ayende (ravendb source anyone?) On Tue, Dec 16, 2014 at 2:53 PM, Tom P tompbi...@gmail.com wrote: Thanks William I am checking out the mvc source code now actually but wanted maybe a good non trivial web app and not a framework as such. Thanks Tom On 16 December 2014 at 17:45, William Luu will@gmail.com wrote: How about reading the source code for ASP.NET MVC (vNext/6)? :) https://github.com/aspnet/mvc/ To be honest, I'm not too sure on what projects. Maybe Orchard CMS? http://orchard.codeplex.com/ On 16 December 2014 at 16:51, Tom P tompbi...@gmail.com wrote: Obviously you all write some killer code but can someone recommend some really good open source code I can read and learn from? Preferably ASP.NET MVC with some mobile support. Thanks Tom
Re: Programmatically call forward
Your modem modern probably doesn't even connect to a phone line. Or may not, ADSL is often naked as well. So you'd need a DTMF with AUSTEL approved isolator. Hmmm. Or a sound card could do the generation, but you'd still need to get it isolated. On Wed, Dec 17, 2014 at 4:11 AM, Glen Harvy g...@aquarius.com.au wrote: The short answer is - Yes. A long time ago, in a galaxy far far away, there were modems. You plugged the phone line into them and then plugged the modem into your coms/serial port. The software would then send commands to the modem to send the appropriate tones for '*' '2' '1'' phone number' '#'. I see no reason why you still can't do it. CodeProject had several examples you can use to send the appropriate code to your modem/router and it should also be possible to interface with the modem/router via the network rather than the serial port. You may need an API to the router, not the telco service provider. On 16/12/2014 10:05 PM, Craig van Nieuwkerk wrote: Can I do this programatically though, from a .NET program? On Tue, Dec 16, 2014 at 9:00 PM, Mark Hurd markeh...@gmail.com wrote: On: *21forward number# Off: #21# -- Regards, Mark Hurd, B.Sc.(Ma.)(Hons.) On 16 December 2014 at 18:58, Craig van Nieuwkerk crai...@gmail.com wrote: I have a client who wants to be able to have a button in our app to turn on/off call forwarding on their phone system. Does Telstra (or Optus) have any API anyone knows about for things like this? Craig -- Meski http://courteous.ly/aAOZcv Going to Starbucks for coffee is like going to prison for sex. Sure, you'll get it, but it's going to be rough - Adam Hills
RE: AzMan viability
Hi Greg, I used AzMan a while ago for an MVC application running through an intranet (not publicly accessible), and used an xml file to store the roles and groups (just because it was easy to set up, but still seems to work well in practice). I didn’t have to do anything too low-level to get this working. I can’t provide the full code to everyone on the list, but it involved adding a System.Web.Security.AuthorizationStoreRoleProvider item to the roleManager/providers section of the web.config, adding a connection string that points to the xml file, then adding the allowed roles into the authorization section. I could then use standard security attributes on Controllers and views via the [Authorize] attribute. I think you originally mentioned you were looking to do this for a desktop application rather than web, but I wondered if the ‘Enable Client Application Services’ section of the project properties might allow this here as well (never played around with this though, so can’t offer any further advice here). Might be something I will have a tinker with in my spare time… Otherwise, let me know off-list if you need more specific details and I may be able to assist. Cheers, Mark. From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com] On Behalf Of Greg Keogh Sent: Tuesday, 16 December 2014 6:37 PM To: ozDotNet Subject: Re: AzMan viability Hi Greg, did you manage to solve this issue? The following page seems to indicate it can still be done via the Enterprise Library http://stackoverflow.com/questions/14229771/azman-obsolete-what-is-the-new-alternative-to-azman I have officially given-up on using AzMan. I thought it would be as easy as making the rules (which is really easy in the msc plugin), then referencing a library and making a few calls. I was going well until I couldn't find the library and the public methods didn't match any of the sample code, not even code in MSDN magazine articles or Keith Brown's book http://www.amazon.com/NET-Developers-Guide-Windows-Security/dp/0321228359 . If EntLib has a wrapper around azman.dll then that's too bad, as I'm not going back to using that bloated mess. I had to use EntLib years ago due to a dependency from netTiers, and it just cluttered things up (a poor decision by the template authors I think). For years I thought that Azman was just a database combined with an API, the sort of thing any of us could write, but I suspect now that it was a wrapper over the non-trivial AuthZ API http://msdn.microsoft.com/en-us/library/windows/desktop/ff394773(v=vs.85).aspx which exposes the kernel-mode SRM (Security Reference Monitor) model in user-mode. Years ago I asked in here if there was a way of using ACLs to protect arbitrary application defined objects (as we did on IBM mainframes with RACF). I think the answer was no or it's really hard as you'd have to manage and serialize the ACLs yourself, so the Windows security model is not easily extensible for use in applications. I further suspect now that Azman was designed to bridge this gap, but advertising for it was misleading or sparse and it never became popular in communities like this. If anyone has insider knowledge and can confirm or deny what I've said, then I'm all ears! Greg K
RE: Programmatically call forward
Wouldn’t the “phone” through the modem be done by VOIP – whether cable or ADSL – and therefore you would be looking at SIP for communications? Try a search for something like SIP SDK or MSDN SIP and you may get some ideas. _ Ian Thomas Albert Park, Victoria From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com] On Behalf Of mike smith Sent: Wednesday, December 17, 2014 11:49 AM To: Glen Harvy; ozDotNet Subject: Re: Programmatically call forward Your modem modern probably doesn't even connect to a phone line. Or may not, ADSL is often naked as well. So you'd need a DTMF with AUSTEL approved isolator. Hmmm. Or a sound card could do the generation, but you'd still need to get it isolated. On Wed, Dec 17, 2014 at 4:11 AM, Glen Harvy g...@aquarius.com.au wrote: The short answer is - Yes. A long time ago, in a galaxy far far away, there were modems. You plugged the phone line into them and then plugged the modem into your coms/serial port. The software would then send commands to the modem to send the appropriate tones for '*' '2' '1'' phone number' '#'. I see no reason why you still can't do it. CodeProject had several examples you can use to send the appropriate code to your modem/router and it should also be possible to interface with the modem/router via the network rather than the serial port. You may need an API to the router, not the telco service provider. On 16/12/2014 10:05 PM, Craig van Nieuwkerk wrote: Can I do this programatically though, from a .NET program? On Tue, Dec 16, 2014 at 9:00 PM, Mark Hurd markeh...@gmail.com wrote: On: *21forward number# Off: #21# -- Regards, Mark Hurd, B.Sc.(Ma.)(Hons.) On 16 December 2014 at 18:58, Craig van Nieuwkerk crai...@gmail.com wrote: I have a client who wants to be able to have a button in our app to turn on/off call forwarding on their phone system. Does Telstra (or Optus) have any API anyone knows about for things like this? Craig -- Meski http://courteous.ly/aAOZcv http://courteous.ly/aAOZcv Going to Starbucks for coffee is like going to prison for sex. Sure, you'll get it, but it's going to be rough - Adam Hills
Re: Programmatically call forward
Depends on whether you want to control the virtual (SIP) phone, or a local (POTS) phone. On Wed, Dec 17, 2014 at 12:42 PM, ILT (O) il.tho...@outlook.com wrote: Wouldn’t the “phone” through the modem be done by VOIP – whether cable or ADSL – and therefore you would be looking at SIP for communications? Try a search for something like SIP SDK or MSDN SIP and you may get some ideas. -- Ian Thomas Albert Park, Victoria *From:* ozdotnet-boun...@ozdotnet.com [mailto: ozdotnet-boun...@ozdotnet.com] *On Behalf Of *mike smith *Sent:* Wednesday, December 17, 2014 11:49 AM *To:* Glen Harvy; ozDotNet *Subject:* Re: Programmatically call forward Your modem modern probably doesn't even connect to a phone line. Or may not, ADSL is often naked as well. So you'd need a DTMF with AUSTEL approved isolator. Hmmm. Or a sound card could do the generation, but you'd still need to get it isolated. On Wed, Dec 17, 2014 at 4:11 AM, Glen Harvy g...@aquarius.com.au wrote: The short answer is - Yes. A long time ago, in a galaxy far far away, there were modems. You plugged the phone line into them and then plugged the modem into your coms/serial port. The software would then send commands to the modem to send the appropriate tones for '*' '2' '1'' phone number' '#'. I see no reason why you still can't do it. CodeProject had several examples you can use to send the appropriate code to your modem/router and it should also be possible to interface with the modem/router via the network rather than the serial port. You may need an API to the router, not the telco service provider. On 16/12/2014 10:05 PM, Craig van Nieuwkerk wrote: Can I do this programatically though, from a .NET program? On Tue, Dec 16, 2014 at 9:00 PM, Mark Hurd markeh...@gmail.com wrote: On: *21forward number# Off: #21# -- Regards, Mark Hurd, B.Sc.(Ma.)(Hons.) On 16 December 2014 at 18:58, Craig van Nieuwkerk crai...@gmail.com wrote: I have a client who wants to be able to have a button in our app to turn on/off call forwarding on their phone system. Does Telstra (or Optus) have any API anyone knows about for things like this? Craig -- Meski http://courteous.ly/aAOZcv Going to Starbucks for coffee is like going to prison for sex. Sure, you'll get it, but it's going to be rough - Adam Hills -- Meski http://courteous.ly/aAOZcv Going to Starbucks for coffee is like going to prison for sex. Sure, you'll get it, but it's going to be rough - Adam Hills
Re: Programmatically call forward
Local phone is preferred. On Wed, Dec 17, 2014 at 1:23 PM, mike smith meski...@gmail.com wrote: Depends on whether you want to control the virtual (SIP) phone, or a local (POTS) phone. On Wed, Dec 17, 2014 at 12:42 PM, ILT (O) il.tho...@outlook.com wrote: Wouldn’t the “phone” through the modem be done by VOIP – whether cable or ADSL – and therefore you would be looking at SIP for communications? Try a search for something like SIP SDK or MSDN SIP and you may get some ideas. -- Ian Thomas Albert Park, Victoria *From:* ozdotnet-boun...@ozdotnet.com [mailto: ozdotnet-boun...@ozdotnet.com] *On Behalf Of *mike smith *Sent:* Wednesday, December 17, 2014 11:49 AM *To:* Glen Harvy; ozDotNet *Subject:* Re: Programmatically call forward Your modem modern probably doesn't even connect to a phone line. Or may not, ADSL is often naked as well. So you'd need a DTMF with AUSTEL approved isolator. Hmmm. Or a sound card could do the generation, but you'd still need to get it isolated. On Wed, Dec 17, 2014 at 4:11 AM, Glen Harvy g...@aquarius.com.au wrote: The short answer is - Yes. A long time ago, in a galaxy far far away, there were modems. You plugged the phone line into them and then plugged the modem into your coms/serial port. The software would then send commands to the modem to send the appropriate tones for '*' '2' '1'' phone number' '#'. I see no reason why you still can't do it. CodeProject had several examples you can use to send the appropriate code to your modem/router and it should also be possible to interface with the modem/router via the network rather than the serial port. You may need an API to the router, not the telco service provider. On 16/12/2014 10:05 PM, Craig van Nieuwkerk wrote: Can I do this programatically though, from a .NET program? On Tue, Dec 16, 2014 at 9:00 PM, Mark Hurd markeh...@gmail.com wrote: On: *21forward number# Off: #21# -- Regards, Mark Hurd, B.Sc.(Ma.)(Hons.) On 16 December 2014 at 18:58, Craig van Nieuwkerk crai...@gmail.com wrote: I have a client who wants to be able to have a button in our app to turn on/off call forwarding on their phone system. Does Telstra (or Optus) have any API anyone knows about for things like this? Craig -- Meski http://courteous.ly/aAOZcv Going to Starbucks for coffee is like going to prison for sex. Sure, you'll get it, but it's going to be rough - Adam Hills -- Meski http://courteous.ly/aAOZcv Going to Starbucks for coffee is like going to prison for sex. Sure, you'll get it, but it's going to be rough - Adam Hills
RE: Programmatically call forward
Depends on whether you want to control the virtual (SIP) phone, or a local (POTS) phone. True, Mike. Interestingly some mass-appeal modems now have ports (connections) for both. I think there’s a TP-Link ADSL modem that does. (This doesn’t help to answer the original question, though). _ Ian Thomas Albert Park, Victoria