Quantcast
Channel: FreePBX - FreePBX Community Forums
Viewing all articles
Browse latest Browse all 17475

Custom Context / Outbound Calls

$
0
0

@mferry wrote:

I been using Asterisk for years and have always maintained sip.conf/extensions.conf manual.

I have installed and setup FreePBX for a small company in the last week. Everything is working fine...EXCEPT.
We have an AGI/Php script we need to execute when someone places an outbound call.

The script queries a remote database of the number being called and returns a ten digit number. This number is set as the outbound caller id. (There is a lookup of number being called...then referenced to zip code....then to regional number associated). This part works fine.

The PROBLEM ---
I can't figure out how to include or trigger that special context on OUTBOUND calls.

extenstion_custom.conf

[set-outbound-callerid]
exten => s,1,Answer
exten => s,n,AGI(outbound.php,${EXTEN})
exten => s,n,NoOp(Caller ID: ${OutboundCaller})


We send number to be called and it returns the number we need to set as the outbound caller id.


How do I execute this on all outbound calls?
Outbound calls to ten(10) digits numbers,

If it was an incoming AGI/Script...I would do the same thing...then map a Custom Destination to the custom context then set the inbound route to the custom destination.

This being outbound....I can't find a way to include....or use it.
please advise.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 17475

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>