Call script from Obi110
falloutphil:
Hi all,
I've had my Obi110 for 2 weeks and my config is gradually getting more and more complex!
I'm pretty happy with it now, it's a sweet box - but I had yet another idea today.
I want to be able to call a script (either remotely via REST or whatever, or installed on the Obi110 itself) that will be triggered on a certain sequence of digits - the script will then interrogate a database and perhaps replace the number with a cheaper alternative.
I doesn't look like this is possible from Obi110 - but wanted to check if anyone had any success in anything like this?
Can the Obi make remote script calls OR can I install scripts on the Obi (shell, Perl, Python, just about anything would do as it's a simple script)?
The best I can come up with is call a SIP trunk with the dialled number as a trunk variable and then offload processing to my SIP server - I don't even know if this is possible, and I really need to process the number *before* I decide which SIP service or POTS to call with. So this is messy from the outset.
I suspect I'll need to setup something like Asterix on my local computer to handle something this complex.... but interested to hear people's thoughts!
---------
One last question - I'm assuming Obi110 has no way of routing by time (peak/off-peak) - this would be very useful in the UK where most POTS calls are free after 7pm, but expensive at other times?
Thanks,
Phil.
sdb-:
Yes, it is sounding like you are about ready for a more fully featured PBX than what the little OBi can do. :)
I've played with Asterisk, but FreeSwitch looks better to me. Either can run on a little raspberry pi or even on some routers if you are using ddwrt or openwrt. Or pbexs.com has a free pbx plan to avoid running either yourself.
A user here named giqcass has been doing experimentation to have the OBi call a remote script for things like dyndns updates and to trigger a gvoice callback. All remote. Don't think there is any way to have the script on the OBi.
falloutphil:
Thanks for the reply! I suspected as much.
I have got this working after a bit of fiddling using the method I suggested by getting the Obi110 to dial with trunk variables and offload the processing to my SIP provider.
I can then use an Anveo IVR to parse these and make the remote http calls to translate the number.
It's not perfect, but it works and saves a few pence (it was more about the challenge to be honest).
I did have to write a cgi script to sit between the REST translation service and Anveo to reformat the numbers as Anveo is limited in what it can do with the returned data.
Still if anyone wants to know how to do on-the-fly translation of 0845/0870/etc numbers to fixed line numbers in the UK, I can explain in detail!
QBZappy:
@falloutphil
Quote from: falloutphil on December 08, 2013, 01:41:44 pm
Still if anyone wants to know how to do on-the-fly translation of 0845/0870/etc numbers to fixed line numbers in the UK, I can explain in detail!
Rule number 1 in life. Never let an opportunity to learn something new pass you by. falloutphil I've pulled up a chair and eagerly waiting to hear details of what seems a most interesting project.
drgeoff:
1. The OBis are quite capable of converting an input number to a completely different number by means of the dial plans. However the length limit on the dial plan fields means that the method won't work for more than a handful of numbers to be converted.
2. The OBis have no way (as I write this) of making any of their settings dependent on time of day. It certainly would be nice to have that for the reason falloutphil mentions.
Navigation
[0] Message Index
[#] Next page