Hit a url on each call

If you want this URL to be called on every call including to extensions then you are now changing how the system will handle calling extensions.

  1. You cannot make changes in extensions_additional.conf, they will be overwritten by FreePBX.
  1. Below is close but will not work due to a few reasons. First being that s is not a catch-all extension so it won’t match. Second is that this is actually the first context checked when a call processes [from-internal-xfer] (which is the first context looked at in [from-internal]) so that means if you match something here even with an _X. you’re going to have to send the call someplace after the AGI is run. Since the idea of [from-internal] is to go through a list of context’s for a match and this is always the first context to be hit, you’re looking at a possible loop.

Keep in mind that this will only catch outbound calls as incoming calls from the PSTN do not directly go through [from-internal] because they are from the outside. So if this is going to need to be run against all calls in or out you’re going to probably need to look at hooking this in at various context’s custom options so you don’t have to worry about passing the call along and guessing where it should go or cause a loop because you send the call back on itself.

that’s a point but in the beginning at least can I test this only on a single extension

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