Re: [asterisk-users] External call control for Asterisk

2013-04-19 Thread Lenz Emilitri
Not sure if that's what you are looking for, but I would think about having
the dialplan call a web service (maybe using CURL) and passing account and
current number. The system would reply with the number to actually dial, or
none if blocked, and the maximum possible call length. Then it's all
Asterisk (or turtles all the way down).


2013/4/10 Simon Green simon.c.gr...@gmail.com

 Hi there, I’m new to Asterisk and there’s a ton of documentation. I’m not
 really sure where to start. What I want to do is this: a PBX service ala
 FreePBX, but where call control is passed via SIP to an external service
 which will tell Asterisk:



 a)  * Whether the call is allowed

 b)  * Where to connect the call, if necessary (i.e. forced
 redirection to a C-party)

 c)   * To disconnect the call at some time in future based on
 charging considerations (i.e. online charging)



 There is also the option of not using Asterisk at all, and simply using
 the other service directly, but Asterisk is much better suited to handling
 end-user devices. The external service does control logic only.


Loway - home of QueueMetrics - http://queuemetrics.com
Test-drive WombatDialer beta @ http://wombatdialer.com
--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] External call control for Asterisk

2013-04-19 Thread Asghar Mohammad
AGI is your friend. check A2billing.


On Fri, Apr 19, 2013 at 10:43 AM, Lenz Emilitri lenz.lo...@gmail.comwrote:

 Not sure if that's what you are looking for, but I would think about
 having the dialplan call a web service (maybe using CURL) and passing
 account and current number. The system would reply with the number to
 actually dial, or none if blocked, and the maximum possible call length.
 Then it's all Asterisk (or turtles all the way down).


 2013/4/10 Simon Green simon.c.gr...@gmail.com

 Hi there, I’m new to Asterisk and there’s a ton of documentation. I’m not
 really sure where to start. What I want to do is this: a PBX service ala
 FreePBX, but where call control is passed via SIP to an external service
 which will tell Asterisk:



 a)  * Whether the call is allowed

 b)  * Where to connect the call, if necessary (i.e. forced
 redirection to a C-party)

 c)   * To disconnect the call at some time in future based on
 charging considerations (i.e. online charging)



 There is also the option of not using Asterisk at all, and simply using
 the other service directly, but Asterisk is much better suited to handling
 end-user devices. The external service does control logic only.


 Loway - home of QueueMetrics - http://queuemetrics.com
 Test-drive WombatDialer beta @ http://wombatdialer.com

 --
 _
 -- Bandwidth and Colocation Provided by http://www.api-digital.com --
 New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

 asterisk-users mailing list
 To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

[asterisk-users] External call control for Asterisk

2013-04-09 Thread Simon Green
Hi there, I’m new to Asterisk and there’s a ton of documentation. I’m not
really sure where to start. What I want to do is this: a PBX service ala
FreePBX, but where call control is passed via SIP to an external service
which will tell Asterisk:



a)  * Whether the call is allowed

b)  * Where to connect the call, if necessary (i.e. forced redirection
to a C-party)

c)   * To disconnect the call at some time in future based on charging
considerations (i.e. online charging)



There is also the option of not using Asterisk at all, and simply using the
other service directly, but Asterisk is much better suited to handling
end-user devices. The external service does control logic only.
Can someone point me at the right place in the documentation to get a
handle on where I should be hooking things like this?

-- 
Cheers
Simon
--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] External call control for Asterisk

2013-04-09 Thread Steve Edwards

On Wed, 10 Apr 2013, Simon Green wrote:

Hi there, I’m new to Asterisk and there’s a ton of documentation. I’m 
not really sure where to start. What I want to do is this: a PBX service 
ala FreePBX, but where call control is passed via SIP to an external 
service which will tell Asterisk:


a)      * Whether the call is allowed

b)      * Where to connect the call, if necessary (i.e. forced 
redirection to a C-party)


c)       * To disconnect the call at some time in future based on 
charging considerations (i.e. online charging)


It depends...

You could probably do all of this just using dialplan logic and Asterisk's 
internal database.


If you are looking to build a system that will scale, you'll want to store 
your call processing parameters in a database like MySQL and access the 
parameters using an AGI (an external program written in any language 
you are comfortable with) and then write a dialplan to follow your 
business logic.


While the dialplan language does include methods to access databases, I 
find it cumbersome, limited, and ugly. I like to keep all the nasty 
details in a little black box and keep my dialplan clean and maintainable.


--
Thanks in advance,
-
Steve Edwards   sedwa...@sedwards.com  Voice: +1-760-468-3867 PST
Newline  Fax: +1-760-731-3000--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] External call control for Asterisk

2013-04-09 Thread Simon Green
 On Wed, 10 Apr 2013, Simon Green wrote:

  Hi there, I’m new to Asterisk and there’s a ton of documentation. I’m not
 really sure where to start. What I want to do is this: a PBX service ala
 FreePBX, but where call control is passed via SIP to an external service
 which will tell Asterisk:

 a)  * Whether the call is allowed

 b)  * Where to connect the call, if necessary (i.e. forced
 redirection to a C-party)

 c)   * To disconnect the call at some time in future based on
 charging considerations (i.e. online charging)


 It depends...

 You could probably do all of this just using dialplan logic and Asterisk's
 internal database.

 If you are looking to build a system that will scale, you'll want to store
 your call processing parameters in a database like MySQL and access the
 parameters using an AGI (an external program written in any language you
 are comfortable with) and then write a dialplan to follow your business
 logic.

 While the dialplan language does include methods to access databases, I
 find it cumbersome, limited, and ugly. I like to keep all the nasty details
 in a little black box and keep my dialplan clean and maintainable.



It actually looks a little like I might be better off front-ending with
OpenSIPS, which can do AAA via Diameter, and then passing the call, once
allowed, to Asterisk.

I'm certainly keen to put extension provisioning information into MySQL,
but I need the realtime accounting aspect as much as the authorisation
aspect.

Ideally I'm after Asterisk to be, effectively, a smart media gateway. I
want it to handle basic registration of user clients, but for realtime call
authorisation and sometimes routing to be handled off-board. Effectively, a
prepaid calling service with Asterisk handling the calling and the other
system handling the prepaid.

Am I barking up the wrong tree?
--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users