The UK's Number One VoIP Resource
This is a discussion on "Good Morning / Good afternoon" in Asterisk within the uk.telecom.voip forums, part of the Newsgroup Forums category; Hi, I'd like to be able to record a "Good Morning", "Good Afternoon" and "...
|
|||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hi,
I'd like to be able to record a "Good Morning", "Good Afternoon" and "Good Evening" greeting to play to callers on the asterisk pbx? Is this easy? Has anyone achieved this? Can someone point to some suitable information? Many thanks Matthew |
|
|||
|
Matt wrote:[color=blue]
> Hi, > > I'd like to be able to record a "Good Morning", "Good Afternoon" and > "Good Evening" greeting to play to callers on the asterisk pbx? > > Is this easy? Has anyone achieved this? > > Can someone point to some suitable information? > > Many thanks > > Matthew >[/color] Hmm.. lets try Google with the search recording sounds for asterisk Oh look! First hit! [url]http://www.voip-info.org/wiki/view/Asterisk+sound+files[/url] |
|
|||
|
In article <JpidnevNj4DjVZrbnZ2dneKdnZzinZ2d@pipex.net>,
Desk Rabbit <nospam@example.com> wrote:[color=blue] >Matt wrote:[color=green] >> Hi, >> >> I'd like to be able to record a "Good Morning", "Good Afternoon" and >> "Good Evening" greeting to play to callers on the asterisk pbx? >> >> Is this easy? Has anyone achieved this? >> >> Can someone point to some suitable information? >> >> Many thanks >> >> Matthew >>[/color] >Hmm.. lets try Google with the search recording sounds for asterisk > >Oh look! First hit! [url]http://www.voip-info.org/wiki/view/Asterisk+sound+files[/url][/color] I'm suspecting the OP actually wanted to playback those files based on the time of day rather than the mechanics of recording them... If this is the case, lookup the GotoIfTime application: dsx*CLI> show application GotoIfTime -= Info about application 'GotoIfTime' =- [Synopsis] Conditional Goto based on the current time [Description] GotoIfTime(<times>|<weekdays>|<mdays>|<months>?[[context|]exten|]priority): This application will set the context, extension, and priority in the channel structure if the current time matches the given time specification. Otherwise, nothing is done. Further information on the time specification can be found in examples illustrating how to do time-based context includes in the dialplan. If the target jump location is bogus, Asterisk will respond as outlined in Goto. See also page 105 of the Asterisk - The Future of Telephony book. (Free to download now, just google for it) Gordon |
|
|||
|
On Mar 26, 2:27 pm, gor...@drogon.net (Gordon Henderson) wrote:[color=blue]
> In article <JpidnevNj4DjVZrbnZ2dneKdnZzin...@pipex.net>, > Desk Rabbit <nos...@example.com> wrote: > > >[color=green] > >Matt wrote:[color=darkred] > >> Hi,[/color][/color] >[color=green][color=darkred] > >> I'd like to be able to record a "Good Morning", "Good Afternoon" and > >> "Good Evening" greeting to play to callers on the asterisk pbx?[/color][/color] >[color=green][color=darkred] > >> Is this easy? Has anyone achieved this?[/color][/color] >[color=green][color=darkred] > >> Can someone point to some suitable information?[/color][/color] >[color=green][color=darkred] > >> Many thanks[/color][/color] >[color=green][color=darkred] > >> Matthew[/color][/color] >[color=green] > >Hmm.. lets try Google with the search recording sounds for asterisk[/color] >[color=green] > >Oh look! First hit![url]http://www.voip-info.org/wiki/view/Asterisk+sound+files[/url][/color] > > I'm suspecting the OP actually wanted to playback those files based on > the time of day rather than the mechanics of recording them... If this > is the case, lookup the GotoIfTime application: > > dsx*CLI> show application GotoIfTime > -= Info about application 'GotoIfTime' =- > > [Synopsis] > Conditional Goto based on the current time > > [Description] > GotoIfTime(<times>|<weekdays>|<mdays>|<months>?[[context|]exten|]priority): > This application will set the context, extension, and priority in > the channel structure if the current time matches the given time > specification. Otherwise, nothing is done. Further information on > the time specification can be found in examples illustrating how to do > time-based context includes in the dialplan. If the target jump location > is bogus, Asterisk will respond as outlined in Goto. > > See also page 105 of the Asterisk - The Future of Telephony book. (Free > to download now, just google for it) > > Gordon[/color] Thanks Gordon, you got it right! I'll go and find the book now.... Many thanks Matthew |
|
|||
|
On Mar 26, 2:47 pm, "Matt" <matthew.humphr...@gmail.com> wrote:[color=blue]
> On Mar 26, 2:27 pm, gor...@drogon.net (Gordon Henderson) wrote: > > >[color=green] > > In article <JpidnevNj4DjVZrbnZ2dneKdnZzin...@pipex.net>, > > Desk Rabbit <nos...@example.com> wrote:[/color] >[color=green][color=darkred] > > >Matt wrote: > > >> Hi,[/color][/color] >[color=green][color=darkred] > > >> I'd like to be able to record a "Good Morning", "Good Afternoon" and > > >> "Good Evening" greeting to play to callers on the asterisk pbx?[/color][/color] >[color=green][color=darkred] > > >> Is this easy? Has anyone achieved this?[/color][/color] >[color=green][color=darkred] > > >> Can someone point to some suitable information?[/color][/color] >[color=green][color=darkred] > > >> Many thanks[/color][/color] >[color=green][color=darkred] > > >> Matthew[/color][/color] >[color=green][color=darkred] > > >Hmm.. lets try Google with the search recording sounds for asterisk[/color][/color] >[color=green][color=darkred] > > >Oh look! First hit![url]http://www.voip-info.org/wiki/view/Asterisk+sound+files[/url][/color][/color] >[color=green] > > I'm suspecting the OP actually wanted to playback those files based on > > the time of day rather than the mechanics of recording them... If this > > is the case, lookup the GotoIfTime application:[/color] >[color=green] > > dsx*CLI> show application GotoIfTime > > -= Info about application 'GotoIfTime' =-[/color] >[color=green] > > [Synopsis] > > Conditional Goto based on the current time[/color] >[color=green] > > [Description] > > GotoIfTime(<times>|<weekdays>|<mdays>|<months>?[[context|]exten|]priority): > > This application will set the context, extension, and priority in > > the channel structure if the current time matches the given time > > specification. Otherwise, nothing is done. Further information on > > the time specification can be found in examples illustrating how to do > > time-based context includes in the dialplan. If the target jump location > > is bogus, Asterisk will respond as outlined in Goto.[/color] >[color=green] > > See also page 105 of the Asterisk - The Future of Telephony book. (Free > > to download now, just google for it)[/color] >[color=green] > > Gordon[/color] > > Thanks Gordon, you got it right! > > I'll go and find the book now.... > > Many thanks > > Matthew[/color] Replying to my own message... Is there an easy way to implement this with freepbx or trixbox? Thanks again, Matthew |
|
|||
|
In article <1174916979.952034.109660@y80g2000hsf.googlegroups.com>,
Matt <matthew.humphreys@gmail.com> wrote:[color=blue][color=green] >> >> Thanks Gordon, you got it right! >> >> I'll go and find the book now.... >> >> Many thanks >> >> Matthew[/color] > >Replying to my own message... > >Is there an easy way to implement this with freepbx or trixbox?[/color] I don't use either, but I'm led to belive that FreePBX takes over all the config files - I don't know if it has any mechamisms to let you add your own custom stuff to it - best to ask on one of the trixbox or freepbx forums.. Gordon |
|
|||
|
Gordon Henderson wrote:[color=blue]
> In article <1174916979.952034.109660@y80g2000hsf.googlegroups.com>, > Matt <matthew.humphreys@gmail.com> wrote:[color=green][color=darkred] >>> Thanks Gordon, you got it right! >>> >>> I'll go and find the book now.... >>> >>> Many thanks >>> >>> Matthew[/color] >> Replying to my own message... >> >> Is there an easy way to implement this with freepbx or trixbox?[/color] > > I don't use either, but I'm led to belive that FreePBX takes over all > the config files - I don't know if it has any mechamisms to let you > add your own custom stuff to it - best to ask on one of the trixbox or > freepbx forums.. > > Gordon[/color] freePBX/trixbox will allow you to create custom settings files. Where the normal Asterisk config files are called things like extensions.conf and sip.conf, FreePBX/Trixbox allows the use of files called (for example) extensions_custom.conf and sip_custom.conf. These can be edited without being overwritten by FreePBX. The non-custom config files are overwritten every time you click the red bar in freepbx. cheers, Paul. |
|
|||
|
Gordon Henderson wrote:[color=blue]
> In article <JpidnevNj4DjVZrbnZ2dneKdnZzinZ2d@pipex.net>, > Desk Rabbit <nospam@example.com> wrote:[color=green] >> Matt wrote:[color=darkred] >>> Hi, >>> >>> I'd like to be able to record a "Good Morning", "Good Afternoon" and >>> "Good Evening" greeting to play to callers on the asterisk pbx? >>> >>> Is this easy? Has anyone achieved this? >>> >>> Can someone point to some suitable information? >>> >>> Many thanks >>> >>> Matthew >>>[/color] >> Hmm.. lets try Google with the search recording sounds for asterisk >> >> Oh look! First hit! [url]http://www.voip-info.org/wiki/view/Asterisk+sound+files[/url][/color] > > I'm suspecting the OP actually wanted to playback those files based on > the time of day rather than the mechanics of recording them...[/color] So why did he write "I'd like to be able to record a "Good Morning", "Good Afternoon" and "Good Evening" greeting" instead of "I want to playback recordings at specific times of the day like "Good Morning"??????????????????????????? FFS! |
|
|||
|
On Mar 26, 4:04 pm, Desk Rabbit <nos...@example.com> wrote:[color=blue]
> Gordon Henderson wrote:[color=green] > > In article <JpidnevNj4DjVZrbnZ2dneKdnZzin...@pipex.net>, > > Desk Rabbit <nos...@example.com> wrote:[color=darkred] > >> Matt wrote: > >>> Hi,[/color][/color] >[color=green][color=darkred] > >>> I'd like to be able to record a "Good Morning", "Good Afternoon" and > >>> "Good Evening" greeting to play to callers on the asterisk pbx?[/color][/color] >[color=green][color=darkred] > >>> Is this easy? Has anyone achieved this?[/color][/color] >[color=green][color=darkred] > >>> Can someone point to some suitable information?[/color][/color] >[color=green][color=darkred] > >>> Many thanks[/color][/color] >[color=green][color=darkred] > >>> Matthew[/color][/color] >[color=green][color=darkred] > >> Hmm.. lets try Google with the search recording sounds for asterisk[/color][/color] >[color=green][color=darkred] > >> Oh look! First hit![url]http://www.voip-info.org/wiki/view/Asterisk+sound+files[/url][/color][/color] >[color=green] > > I'm suspecting the OP actually wanted to playback those files based on > > the time of day rather than the mechanics of recording them...[/color] > > So why did he write "I'd like to be able to record a "Good Morning", > "Good Afternoon" and "Good Evening" greeting" instead of "I want to > playback recordings at specific times of the day like "Good > Morning"??????????????????????????? > > FFS![/color] One of those instances where it sounded ok when I read it back, but to others it meant something else. |
|
|||
|
Matt wrote:[color=blue]
> On Mar 26, 2:47 pm, "Matt" <matthew.humphr...@gmail.com> wrote:[color=green] >> On Mar 26, 2:27 pm, gor...@drogon.net (Gordon Henderson) wrote: >> >> >>[color=darkred] >>> In article <JpidnevNj4DjVZrbnZ2dneKdnZzin...@pipex.net>, >>> Desk Rabbit <nos...@example.com> wrote: >>>> Matt wrote: >>>>> Hi, >>>>> I'd like to be able to record a "Good Morning", "Good Afternoon" and >>>>> "Good Evening" greeting to play to callers on the asterisk pbx? >>>>> Is this easy? Has anyone achieved this? >>>>> Can someone point to some suitable information? >>>>> Many thanks >>>>> Matthew >>>> Hmm.. lets try Google with the search recording sounds for asterisk >>>> Oh look! First hit![url]http://www.voip-info.org/wiki/view/Asterisk+sound+files[/url] >>> I'm suspecting the OP actually wanted to playback those files based on >>> the time of day rather than the mechanics of recording them... If this >>> is the case, lookup the GotoIfTime application: >>> dsx*CLI> show application GotoIfTime >>> -= Info about application 'GotoIfTime' =- >>> [Synopsis] >>> Conditional Goto based on the current time >>> [Description] >>> GotoIfTime(<times>|<weekdays>|<mdays>|<months>?[[context|]exten|]priority): >>> This application will set the context, extension, and priority in >>> the channel structure if the current time matches the given time >>> specification. Otherwise, nothing is done. Further information on >>> the time specification can be found in examples illustrating how to do >>> time-based context includes in the dialplan. If the target jump location >>> is bogus, Asterisk will respond as outlined in Goto. >>> See also page 105 of the Asterisk - The Future of Telephony book. (Free >>> to download now, just google for it) >>> Gordon[/color] >> Thanks Gordon, you got it right! >> >> I'll go and find the book now.... >> >> Many thanks >> >> Matthew[/color] > > Replying to my own message... > > Is there an easy way to implement this with freepbx or trixbox?[/color] Assuming you are asking this question and not something completely different.....;-) In FreePBX you need to look at Time Conditions & Announcments. You will need to daisy chain the Time Conditions to achieve what you want. i.e 1 for AM with a failover to PM if it doesn't match. IMHO the Time Conditions in Asterisk and Freepbx are a nightmare and best avoided if it can be helped. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|