Reply
 
Thread Tools Display Modes
  #1  
Old 11-12-08, 05:20 PM
mrh mrh is offline
Junior Member
 
Join Date: Oct 2008
Posts: 27
Adding an annoucement on an outgoing trunk
Hi,

I'd like to add an announcement that the is played when people dial out over a specific trunk.

i.e. When they call a mobile phone, a reminder that the call will be charged at a much higher rate then calling a landline.

If this doesn't work, then I'll add a pin to that trunk!

Hope to use this to remind people that the minutes bundled with their monthly mobile phone tariff should be used when calling mobiles!

I have a fully working cepstral set-up, but am struggling after that!

Any ideas gratefully received!

Many thanks

Matthew
Reply With Quote
  #2  
Old 11-13-08, 02:15 AM
jroper jroper is offline
Guru
 
Join Date: Oct 2007
Posts: 3,333
Hi

Depending on the deal with you mobile carrier, you could consider using a GSM gateway, and route all mobile calls out via the gateway from the PBX.

I'm not sure that there is an easy way to do this in FreePBX - you could do something with an announcement and DISA, but it won't be very elegant.

So you will need to create an outbound route for mobiles.

Identify the the outbound route in extensions_additional.conf

Copy and paste that context into extensions_override_freepbx.conf and add a line at the top to play a message. (in bold)

It should look something like this for the UK where mobile calls start with a 07 followed by a number between 4 and 9.
[outrt-003-Mobile]
include => outrt-003-Mobile-custom
exten => _07[4-9]X.,1,playback(nobody-but-chickens)
;replace the above with a prompt of your choice.
exten => _07[4-9]X.,n,Macro(user-callerid,SKIPTTL,)
;Don't forget to change the 1 for an n in the line above.
exten => _07[4-9]X.,n,Set(_NODEST=)
exten => _07[4-9]X.,n,Macro(record-enable,${AMPUSER},OUT,)
exten => _07[4-9]X.,n,Macro(dialout-trunk,2,${EXTEN},,)
exten => _07[4-9]X.,n,Macro(outisbusy,)

; end of [outrt-003-Mobile]

It will vary for your installation, so don't just copy the above, copy it from extensions _additional


I've not tested the above, but it should give you a start.

Joe
Reply With Quote
  #3  
Old 11-13-08, 03:41 AM
mrh mrh is offline
Junior Member
 
Join Date: Oct 2008
Posts: 27
Cheers Joe,

I'll give that a try later.

The main purpose is to try and persuade family members to use the 1000's of bundled minutes that they have on their mobile!

They insist on using the home phone system, and running up my bill, rather than using their own mobiles, which always have many many spare minutes left at the end of the month!

So using their own mobiles wouldn't actually cost them anything extra!

I thought a nice polite reminder might due the job!

I'll let you know how I get on!

Thanks again,


Matthew
Reply With Quote
  #4  
Old 03-14-10, 12:24 PM
sebek72 sebek72 is offline
Junior Member
 
Join Date: Dec 2009
Posts: 11
Hi I would like to do something similar.
I initiate a call over click-to-dial aplication...asterisk calls my extension and when i pickup then the real call is made.
Now I would like to make an anouncement when the phone is picked up - something like "You are calling this number, if u are sure to call press 1, otherwise hangup.


I understand that i have to copy the entire [macro-dialout-trunk] section to extensions_custom.conf to override the default behaviour and inject that anouncement.

1. I don't know where exactly to inject
2. I would like to do this only when calls come form click-to-dial aplication (specific user in manager.conf) and not on every call made (so it can't be based on an outbound route).
Any help would be great.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 08:56 PM.


Design by Vjacheslav Trushkin, color scheme by ColorizeIt!.
Powered by vBulletin®
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Copyright ©2007-2008, Ward Mundy & Associates