FreePBX | Register | Issues | Wiki | Portal | Support

Follow me in FreePBX and asterisk call file

freepbx
asterisk
Tags: #<Tag:0x00007f749f8117b0> #<Tag:0x00007f749f811670>

(Pa Si) #1

I have FreePBX 13.0.195.12 operating on Asterisk 13.18.3.
This is the content of my .call file:

Channel: SIP/123
Application: Playback
Data: /var/lib/asterisk/sounds/en/custom/DJAlert
MaxRetries: 2
RetryTime: 240

I have an automatic system which will drop this .call file into the /var/spool/asterisk/outgoing/ for the system to place the call on an trigger event.

I used to have a Cisco SPA504G which connected to this extension (123). And on this Cisco phone, I set the forwarding to a cell phone number of mine choice.
Now, the Cisco phone is no longer present and I cannot register a physical phone to the extension and set forwarding. Everything is no on softphone.
So I though I can set the Follow-Me setting on the FreePBX and still have the call alert to forward as usual. However, turning out it’s not the case.
Base on my understanding, the handing of the .call file is on the asterisk level which is underlay the FreePBX. Therefore, the Follow-Me setting I set in the FreePBX does not have any affect.

Main question:
Is there a way to force the call to come in from outsite and then dial the extension 123?
For example: my DID is 4161234567. The call file will call 4161234567 and wait for 5 second and then dial extension 123.
This way the call will be forwarded to the extension I set in the Follow-Me under FreePBX.

Secondary question:
How do I set the Channel for an external call?
Say I want the call file to call the number 41676543210. How do I do this?

Thank you.


#2

Can you make a virtual extension using the cell number. Then point the call directly to the virtual extension?

https://wiki.freepbx.org/display/FPG/Extensions+Module+-+Virtual+Extension

Call file questions:
http://the-asterisk-book.com/1.6/call-file.html


(Lorne Gaetz) #3

You are dialing directly to the device and bypassing all FreePBX dialplan when doing so. Try using a channel of:

Local/123@from-internal

(Pa Si) #4

“local” and “from-internal”, are they variable in which I have to change to fit with my system?


(Tom Ray) #5

Local is a type of channel like SIP or PJSIP or IAX. It means the system is generating the call locally not an external device like a phone.

from-internal is the context that every extension uses to process calls. So Local/123@from-internal makes the PBX originate a call and process it like it was a phone making the call to use all the rules you have in place.


(system) closed #6

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.