IVR menu + extension with dial out prompt option with PLIVO

302 views
Skip to first unread message

Paulo Sossa

unread,
May 1, 2012, 2:51:52 AM5/1/12
to Plivo Users

Hello PV/GU forum.
I got mid experience with Freeswitch.
I was wondering if anybody had a little input into how to make an IVR
menu option, with the following feature:
Having an extension, say, 3000, being "open" to the outside world.
Being an external line, or an extension with a dialtone, a dial
prompt, an option for people to simply dial any number they wish. Hope
this makes sense. Does it need an special request to the VOIP
carrier? or maybe FSO/FXO adaptors...?
I want to be able to call a DID, present an IVR menu with options, and
having one key forward the call to an extension that allows people to
call out with the international dialplan to any number as they see it
fit. What elements and services would be required to make this work? I
really need some help.
Any help in the right direction would be truly appreciatted.


PSS






mashton

unread,
May 1, 2012, 9:23:25 AM5/1/12
to plivo...@googlegroups.com
Paulo,

In telecom this feature is called DISA access. One thing I would suggest is implementing user security. Typically most systems have a shared passcode, but with Plivo I would suggest implementing user based security. So either use CallerID to determine the userid or if that does not match prompt for a long userid or do a userid / passcode pair.

Look here for freeswich dialplan examples:  http://wiki.freeswitch.org/wiki/Dialplan_XML#Example_19:_DISA 

Mike

digvija...@gmail.com

unread,
May 1, 2012, 10:40:26 AM5/1/12
to plivo...@googlegroups.com
Do you mean you need DISA ?

Regards
Digvijay Sinha

Mitul Limbani

unread,
May 1, 2012, 10:54:25 AM5/1/12
to plivo...@googlegroups.com

I believe thats available out of box in FreePBX with Asterisk.

Mitul Limbani

Paulo Sossa

unread,
May 1, 2012, 11:34:16 AM5/1/12
to Plivo Users
than you so much guys! Truly thankful I will keep you posted of
the latest improvements

PSS

On 1 mai, 16:54, Mitul Limbani <mi...@enterux.in> wrote:
> I believe thats available out of box in FreePBX with Asterisk.
>
> Mitul Limbani
> On May 1, 2012 8:10 PM, "digvijay.si...@gmail.com" <digvijay.si...@gmail.com>

digvija...@gmail.com

unread,
May 1, 2012, 11:35:56 AM5/1/12
to plivo...@googlegroups.com
Hey Mitul, How are you doing? Good to see you on this group.

Yes FreePBX adds the DISA dialplan to Asterisk by default however a simple dialplan in FS is wonderful. Moreover Plivo doesn't sit on Asterisk yet.

My team has written an app (utilizing a combination of FS dialplan for initial inbound call treatment on FreeSWITCH and then routing it over to the event socket connection Plivo is listening at) to create a DISA like function (although the requirement was slightly different), hence a pretty neat DISA app can be written using FS dialplan and Plivo for sure.

If someone wants to use Asterisk with FreePBX or FreeSWITCH with Bluebox, its their choice. In that case they can't let their application control that call the Plivo way.

Regards
Sent from my Nokia phone
-----Original Message-----
From: Mitul Limbani
Sent: 01/05/2012 8:24:25 pm
Subject: RE: IVR menu + extension with dial out prompt option with PLIVO

I believe thats available out of box in FreePBX with Asterisk.

Mitul Limbani
On May 1, 2012 8:10 PM, "digvija...@gmail.com" <digvija...@gmail.com>

digvija...@gmail.com

unread,
May 1, 2012, 11:24:54 AM5/1/12
to plivo...@googlegroups.com

Mitul Limbani

unread,
May 1, 2012, 11:39:53 AM5/1/12
to plivo...@googlegroups.com

Digvijay,

Good to see ya hear.

Well offcourse OpenSource offers a great deal of.choices, however the functionality requested is straight away available with Freepbx + Asterisk.

However it has to be used with a great deal of caution, lot of spam n illegal usage can happen if system is not hardened!!!

Mitul

John Macleod

unread,
May 1, 2012, 5:42:41 PM5/1/12
to plivo...@googlegroups.com

Paulo Sossa

unread,
May 1, 2012, 11:05:27 PM5/1/12
to Plivo Users
Thanks again guys.
So far so good

Mitul, can you please provide some fundamental recommendations on the
path into securing such environment?
I'm all ears. I really appreciate the tips and points of view.

I'm setting up both structures, to compare them in full, to test
performance and benchmark costs and ease of modifications, to make the
final choice based on practical facts. I will share my experience with
the group.

PSS

On May 1, 11:39 am, Mitul Limbani <mi...@enterux.in> wrote:
> Digvijay,
>
> Good to see ya hear.
>
> Well offcourse OpenSource offers a great deal of.choices, however the
> functionality requested is straight away available with Freepbx + Asterisk.
>
> However it has to be used with a great deal of caution, lot of spam n
> illegal usage can happen if system is not hardened!!!
>
> Mitul
> On May 1, 2012 9:06 PM, "digvijay.si...@gmail.com" <digvijay.si...@gmail.com>
> wrote:
>
>
>
>
>
>
>
> > Hey Mitul, How are you doing? Good to see you on this group.
>
> > Yes FreePBX adds the DISA dialplan to Asterisk by default however a simple
> > dialplan in FS is wonderful. Moreover Plivo doesn't sit on Asterisk yet.
>
> > My team has written an app (utilizing a combination of FS dialplan for
> > initial inbound call treatment on FreeSWITCH and then routing it over to
> > the event socket connection Plivo is listening at) to create a DISA like
> > function (although the requirement was slightly different), hence a pretty
> > neat DISA app can be written using FS dialplan and Plivo for sure.
>
> > If someone wants to use Asterisk with FreePBX or FreeSWITCH with Bluebox,
> > its their choice. In that case they can't let their application control
> > that call the Plivo way.
>
> > Regards
> > Sent from my Nokia phone
> > -----Original Message-----
> > From: Mitul Limbani
> > Sent:  01/05/2012 8:24:25 pm
> > Subject:  RE: IVR menu + extension with dial out prompt option with PLIVO
>
> > I believe thats available out of box in FreePBX with Asterisk.
>
> > Mitul Limbani
> > On May 1, 2012 8:10 PM, "digvijay.si...@gmail.com" <
> > digvijay.si...@gmail.com>

Mitul Limbani

unread,
May 2, 2012, 12:16:41 AM5/2/12
to plivo...@googlegroups.com

Rule #1

Block everything, no direct access to outbound contexts.

Rule #2

Auth by callerid AND by 7+ digit pin

Rule #3

Keep checking the system regularly for anything suspecious

Install Fail2ban in case of asterisk.

Hope this helps.
Mitul

Paulo Sossa

unread,
May 2, 2012, 12:52:58 AM5/2/12
to Plivo Users
I am beyond thankful.

How would you protect the PLIVO + FS set up?
I think it's far more elegant and I believe it will require far less
time to support.


PSS

On May 1, 10:16 pm, Mitul Limbani <mi...@enterux.in> wrote:
> Rule #1
>
> Block everything, no direct access to outbound contexts.
>
> Rule #2
>
> Auth by callerid AND by 7+ digit pin
>
> Rule #3
>
> Keep checking the system regularly for anything suspecious
>
> Install Fail2ban in case of asterisk.
>
> Hope this helps.
> Mitul

Mitul Limbani

unread,
May 2, 2012, 1:07:41 AM5/2/12
to plivo...@googlegroups.com
There is experimental fail2ban script even for FS, you may want to look at it.

Regards,
Mitul Limbani,
Chief Architech & Founder,
Enterux Solutions Pvt. Ltd.
110 Reena Complex, Opp. Nathani Steel,
Vidyavihar (W), Mumbai - 400 086. India
http://www.enterux.com/
http://www.entvoice.com/
email: mi...@enterux.in
DID: +91-22-61447605
Cell: +91-9820332422

Digvijay Sinha

unread,
May 2, 2012, 3:22:02 AM5/2/12
to plivo...@googlegroups.com
Quick note: I have this fail2ban script working for me on FS very well.

Regards
Digvijay Sinha

Paulo Sossa

unread,
May 3, 2012, 9:06:22 PM5/3/12
to Plivo Users
Thanks guys
trying to setup DISA
but being these a BRI extensio
can it be done without an actual card or can it be done with
just an outbound sio extension?

PSS

On 2 mai, 09:22, Digvijay Sinha <digvijay.si...@gmail.com> wrote:
> Quick note: I have this fail2ban script working for me on FS very well.
>
> Regards
> Digvijay Sinha
>
> On Wed, May 2, 2012 at 10:37 AM, Mitul Limbani <mi...@enterux.in> wrote:
> > There is experimental fail2ban script even for FS, you may want to look at
> > it.
>
> > Regards,
> > Mitul Limbani,
> > Chief Architech & Founder,
> > Enterux Solutions Pvt. Ltd.
> > 110 Reena Complex, Opp. Nathani Steel,
> > Vidyavihar (W), Mumbai - 400 086. India
> >http://www.enterux.com/
> >http://www.entvoice.com/
> > email: mi...@enterux.in
> > DID: +91-22-61447605
> > Cell: +91-9820332422
>

Paulo Sossa

unread,
May 4, 2012, 5:41:34 PM5/4/12
to Plivo Users
Thanks guys
trying to setup DISA
but being these a BRI extension
can it be done without an actual card (hardware) or can it be done
with
just an outbound SIP extension, (VOIP -ITSP)?

PSS

Paulo Sossa

unread,
May 6, 2012, 6:31:01 PM5/6/12
to Plivo Users
anybody?
Please help me
I just need to know if it's this possible to do with a simple ITSP /
VOIP extension
or does DISA need an actual BRI / hardware phone card to be enabled?

PSS

Paulo Sossa

unread,
May 6, 2012, 11:26:40 PM5/6/12
to Plivo Users
This is my LOG



sofia status

Name
Type Da ta State
================================================================================
=================
external profile
sip:mod_...@216.70.70.79:50 80 RUNNING (0)
external::example.com gateway
sip:joeuser@example.c om NOREG
external::voipdito_international gateway sip:
196...@amn.sip.ssl 7.net:5060 REGED
external::voipdito gateway sip:
196...@amn.sip.ssl7.net:50 60 REGED
216.70.70.79
alias intern al
ALIASED
internal profile
sip:mod_...@216.70.70.79:50 60 RUNNING (0)
internal-ipv6 profile
sip:mod_sofia@[::1]:50 60 RUNNING (0)
================================================================================
=================
3 profiles 1 alias

frees...@opencall.me> 2012-05-06 20:24:07.682304 [CONSOLE]
mod_voicemail.c:3860 Event Thread Started
2012-05-06 20:24:19.502516 [NOTICE] switch_channel.c:926 New Channel
sofia/internal/10...@216.70.70.79 [e0425e4f-2dcf-4a8d-
b408-50399abaec32]
2012-05-06 20:24:19.522354 [INFO] mod_dialplan_xml.c:485 Processing
PSS 1001 <1001>->1005 in context outbound
2012-05-06 20:24:19.522354 [INFO] switch_core_state_machine.c:177 No
Route, Aborting
2012-05-06 20:24:19.522354 [NOTICE] switch_core_state_machine.c:178
Hangup sofia/internal/10...@216.70.70.79 [CS_ROUTING]
[NO_ROUTE_DESTINATION]
2012-05-06 20:24:19.562378 [NOTICE] switch_core_session.c:1400 Session
1 (sofia/internal/10...@216.70.70.79) Ended
2012-05-06 20:24:19.562378 [NOTICE] switch_core_session.c:1402 Close
Channel sofia/internal/10...@216.70.70.79 [CS_DESTROY]

It's driving me crazy

I just want to enable DISA on extension 1005

Please help

PSS
Reply all
Reply to author
Forward
0 new messages