|
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
|