[Asterisk-Users] flash button on asterisk + legacy pbx system
Giorgio Incantalupo
gincantalupo at fgasoftware.com
Wed Jul 12 00:16:40 MST 2006
Thank you very much!!!
Giorgio Incantalupo
C F wrote:
> Yes you can do that just change the application map to a Goto command
> that goes to an exten in the dialplan that does it all for you.
>
> On 7/11/06, Giorgio Incantalupo <gincantalupo at fgasoftware.com> wrote:
>> Hi C F,
>> I managed to send the flash code...thanks for your help. Now I'm trying
>> to send digits after the flash code so that the user can send another
>> extension. Is it possible to have something like
>> key => _X.,caller,SendDTMF,X.
>> inside [applicationmap] in order to send digits to the legacy pbx?
>>
>> TIA
>>
>>
>> Giorgio Incantalupo
>>
>>
>>
>> C F wrote:
>> > Yes I have seen this before and it creates confuseion, but the
>> > solution is that you create 2 application maps, one that works for
>> > inbound calls, and the other that works for outbound calls.
>> > The following is what works for me:
>> >
>> > /etc/asterisk/features.conf:
>> > [applicationmap]
>> > inflash => *4,caller,Flash,()
>> >
>> > outflash => *3,callee,Flash,()
>> >
>> > /etc/asterisk/extensions.conf:
>> > exten => s,1,Set(DYNAMIC_FEATURES=inflash);this is an incoming call on
>> > the FXO port and g2 are the FXS ports
>> >
>> > exten => s,2,Dial(Zap/g2,,t)
>> >
>> > exten => _1XXXXXXXXXX,1,Set(DYNAMIC_FEATURES=outflash);this is
>> outbound
>> > exten => _1XXXXXXXXXX,2,Dial(Zap/g2/${EXTEN},,T)
>> >
>> > With the above they dial *4 on incoming calls, and *3 on outgoing
>> > calls to get this working.
>> > I know it's confusing, but the users get used to it.
>> >
>> >
>> >
>> > On 7/4/06, Giorgio Incantalupo <gincantalupo at fgasoftware.com> wrote:
>> >> Hi C F,
>> >> ok, I also thought to make the user to press some keys for example
>> * and
>> >> 3 so I setup a little test made using an Asterisk box with a
>> TDM400P (2
>> >> FXS + 2 FXO) connected to an analog phone (fxs port) and an analog
>> line
>> >> (fxo port).
>> >> I searched on internet and found some interesting stuff so I made my
>> >> extensions.conf:
>> >>
>> >> My extension.conf is (in brief):
>> >> [zap]
>> >> exten => s,1,Set(DYNAMIC_FEATURES=zapflash)
>> >> exten => s,2,Dial(Zap/3,15,tw) <------- Zap/3 is my analog phone
>> >> exten => s,3,HangUp
>> >>
>> >> My zapata (Zap/1 is the line and Zap/3 is the phone):
>> >> context = zap
>> >> language = it
>> >> signalling = fxs_ks
>> >> threewaycalling=yes
>> >> transfer = yes
>> >> channel => 1
>> >>
>> >> language = it
>> >> signalling = fxo_ks
>> >> callerid = "tel1" <100>
>> >> threewaycalling=yes
>> >> transfer = yes
>> >> channel => 3
>> >>
>> >> and my features.conf:
>> >> [applicationmap]
>> >> ...
>> >> zapflash => *3,caller,flash,()
>> >>
>> >> When I call the number xxxxxxx, Asterisk answers on zap line
>> passing the
>> >> call to zap/3. I pick up zap/3 phone and then I press *3 but all I
>> get
>> >> is (on asterisk console):
>> >>
>> >> WARNING[3082]: app_flash.c:101 flash_exec: Zap/3-1 is not an FXO
>> Channel
>> >>
>> >> Why? It seems Asterisk sends Flash command to the phone but it is not
>> >> what I want.
>> >> Is this the right way to follow? Press *3 (or other code) to send
>> >> command to host pbx while the callee is on the phone? Is this what
>> you
>> >> meant? If yes, why Asterisk does not send the flash command to the
>> line?
>> >>
>> >> Thanks for patience
>> >>
>> >>
>> >> Giorgio Incantalupo
>> >>
>> >>
>> >> C F wrote:
>> >> > Sorry I didn't realize this is how you wanted it to work - that the
>> >> > user is on a FXS and you want when the user flashes that it flashes
>> >> > the host pbx.
>> >> > I disagree with you on this setup the user should be requried to
>> press
>> >> > some DTMF and not just flash the phone. The main reason being that
>> >> > otherwise you will lose 3way and callwaiting features on
>> asterisk. I'm
>> >> > assuming your answer to this is that you don't care since you just
>> >> > want to make the phone an extended extension on the host PBX,
>> and want
>> >> > it to be as much an extension of the old PBX as posible. I still
>> >> > disagree because as much as you are going to try, your users will
>> >> > still not see this as a direct extension, and sooner or later
>> you/they
>> >> > will have to learn how to deal with it anyhow.
>> >> >
>> >> > On 7/4/06, Giorgio Incantalupo <gincantalupo at fgasoftware.com>
>> wrote:
>> >> >> Hi C F,
>> >> >> I read the comments but the problem remains...after some tests, I
>> >> >> changed some parameters inside zapata.h and recompiled to make
>> flash
>> >> >> button work so now my asterisk knows when the user presses the
>> flash
>> >> >> button /during a call./
>> >> >> My problem now is how to "transfer" the flash signal to the old
>> PBX,
>> >> >> infact seems like asterisk accept it (even if I cannot use it
>> inside
>> >> >> extensions.conf for example with a _FLASH,1,...) but then doesn't
>> >> >> re-send it to the line.
>> >> >>
>> >> >>
>> >> >> TIA
>> >> >>
>> >> >> Giorgio Incantalupo
>> >> >>
>> >> >>
>> >> >> C F wrote:
>> >> >> > Use features.conf,
>> >> >> > look here at the comments:
>> >> >> > http://www.voip-info.org/wiki-Asterisk+cmd+flash
>> >> >> >
>> >> >> > On 7/3/06, Giorgio Incantalupo <gincantalupo at fgasoftware.com>
>> >> wrote:
>> >> >> >> Hi C F,
>> >> >> >> you say Flash asterisk command send a flash signal to old
>> pbx so
>> >> >> that it
>> >> >> >> sees that command as coming from an analog phone. But since
>> Flash
>> >> >> is not
>> >> >> >> a digit, how can I catch it from within asterisk? How can I
>> tell
>> >> >> >> asterisk (es inside extensions.conf) to do something whene
>> >> receive it
>> >> >> >> from a phone?
>> >> >> >>
>> >> >> >> TIA
>> >> >> >>
>> >> >> >> Giorgio Incantalupo
>> >> >> >>
>> >> >> >>
>> >> >> >> C F wrote:
>> >> >> >> > The flash command will do just that. However flash only
>> works on
>> >> >> FXO
>> >> >> >> > ports and not on SIP FXO ATAs, if you use the later then you
>> >> >> will have
>> >> >> >> > to find out how your ATA supports it.
>> >> >> >> >
>> >> >> >> > The easiest way to set this up is to use the features.conf
>> >> >> >> >
>> >> >> >> > On 7/3/06, Giorgio Incantalupo <gincantalupo at fgasoftware.com>
>> >> >> wrote:
>> >> >> >> >> Hi,
>> >> >> >> >> I have to connect an old PBX to a new Asterisk box. but
>> I must
>> >> >> >> keep the
>> >> >> >> >> same flash button functionality of the old system. Is it
>> >> >> possible to
>> >> >> >> >> tell asterisk to send a Flash signal to old pbx when
>> >> receiving it
>> >> >> >> from a
>> >> >> >> >> phone? I know there is a flash command inside asterisk....is
>> >> there
>> >> >> >> >> anybody who tried and deployed such a double-pbx system with
>> >> >> success?
>> >> >> >> >>
>> >> >> >> >> TIA
>> >> >> >> >>
>> >> >> >> >> Giorgio Incantalupo
>> >> >> >> >> _______________________________________________
>> >> >> >> >> --Bandwidth and Colocation provided by Easynews.com --
>> >> >> >> >>
>> >> >> >> >> Asterisk-Users mailing list
>> >> >> >> >> To UNSUBSCRIBE or update options visit:
>> >> >> >> >> http://lists.digium.com/mailman/listinfo/asterisk-users
>> >> >> >> >>
>> >> >> >> > _______________________________________________
>> >> >> >> > --Bandwidth and Colocation provided by Easynews.com --
>> >> >> >> >
>> >> >> >> > Asterisk-Users mailing list
>> >> >> >> > To UNSUBSCRIBE or update options visit:
>> >> >> >> > http://lists.digium.com/mailman/listinfo/asterisk-users
>> >> >> >> >
>> >> >> >>
>> >> >> >> _______________________________________________
>> >> >> >> --Bandwidth and Colocation provided by Easynews.com --
>> >> >> >>
>> >> >> >> Asterisk-Users mailing list
>> >> >> >> To UNSUBSCRIBE or update options visit:
>> >> >> >> http://lists.digium.com/mailman/listinfo/asterisk-users
>> >> >> >>
>> >> >> > _______________________________________________
>> >> >> > --Bandwidth and Colocation provided by Easynews.com --
>> >> >> >
>> >> >> > Asterisk-Users mailing list
>> >> >> > To UNSUBSCRIBE or update options visit:
>> >> >> > http://lists.digium.com/mailman/listinfo/asterisk-users
>> >> >> >
>> >> >>
>> >> >> _______________________________________________
>> >> >> --Bandwidth and Colocation provided by Easynews.com --
>> >> >>
>> >> >> Asterisk-Users mailing list
>> >> >> To UNSUBSCRIBE or update options visit:
>> >> >> http://lists.digium.com/mailman/listinfo/asterisk-users
>> >> >>
>> >> > _______________________________________________
>> >> > --Bandwidth and Colocation provided by Easynews.com --
>> >> >
>> >> > Asterisk-Users mailing list
>> >> > To UNSUBSCRIBE or update options visit:
>> >> > http://lists.digium.com/mailman/listinfo/asterisk-users
>> >> >
>> >>
>> >> _______________________________________________
>> >> --Bandwidth and Colocation provided by Easynews.com --
>> >>
>> >> Asterisk-Users mailing list
>> >> To UNSUBSCRIBE or update options visit:
>> >> http://lists.digium.com/mailman/listinfo/asterisk-users
>> >>
>> > _______________________________________________
>> > --Bandwidth and Colocation provided by Easynews.com --
>> >
>> > Asterisk-Users mailing list
>> > To UNSUBSCRIBE or update options visit:
>> > http://lists.digium.com/mailman/listinfo/asterisk-users
>> >
>>
>> _______________________________________________
>> --Bandwidth and Colocation provided by Easynews.com --
>>
>> asterisk-users mailing list
>> To UNSUBSCRIBE or update options visit:
>> http://lists.digium.com/mailman/listinfo/asterisk-users
>>
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
>
More information about the asterisk-users
mailing list