Quantcast
Channel: FreePBX - Tips and Tricks
Viewing all 199 articles
Browse latest View live

Remote API Call Question

$
0
0

Hey Everyone, first post here although I've been a long time user of FreePBX. I have a question that I hope is an easy answer.

We develop custom applications and want to use some data from FreePBX but not actually write much into the system; we'd rather do it via API calls to a remote server.

Now I know at first glance people are going to probably think we're doing this wrong, but based on our setup this is how we need to have this done. Let's create an example:

Incoming Call > Dialplan sends API Call to http://somehost.com/api/newcall with post data about the remote caller id, time of call, DID, etc.

Think of it as pushing events vs reading from Asterisk directly. I realize writing a client to listen for asterisk events would work, but to integrate into an existing system we need for the PBX to send information during the dialplan.

Long story short, Can we post this data through the dialplan easily?

Thanks!
- Chris


Distinctive Ringing for Transferring calls

$
0
0

I know I can change the distinctive ring for a Ring Group and have a different ring for an incoming (DID) call and a default ring for an intercom call. Providing the phone used allows it. The question is: Is there a way to have a third ring for DID calls that are transferred from one phone to another? At this point the ring cadence is the same as the one entered for Alert Info in the Ring group. I have tested on AAstra and Yealink phones.

Thanks for any suggestions

Misc Destination send email

$
0
0

I'm trying to accomplish the following:
We have dynamic agents in queues which log in and off, I want to be able to see who is logged in or off remotely, not by logging in to the PBX GUI.

(Our employees can log in remotely from outside to a queue by dialing IVR, and one of the steps takes them to a Misc Destination which dials 8000* to log in, and one to 8000** to log off.)

I also found the following script online, which sends an email when extension ****100 receives a phone call (the script was tested and works fine):

exten => ****100,1,TrySystem(echo "Call from ${CALLERID(name)} at ${CALLERID(number)} received ${STRFTIME(${EPOCH},,%l:%M:%S %p %Z on %A %B %e)}" | mail
)

Question is, Can I somehow connect the 2? Is there a way for a Misc Destination to dial 2 'steps'? Like 8000* and also ****100? (which will automatically send me an email that he logged in/off)

Next question is, Whats the context of the agent? eg Caller ID name is '${CALLERID(name)}', What would this be for Queue Agent?

If someone can help it would be great!

Thanks

absent attendant redirect

$
0
0

in short I would like to create an easy way to redirect the call group when that person is not available.

Right now I have a time condition that goes to the operator and if she is not available after a certain amount of rings it goes to other personnel to answer the call and then if that group doesn't pick it up it goes to the operator's voice mail box.

When the operator is at lunch or is absent I would like it to go the second ring group.
I'm a little new to this and not sure exactly what route to go.

Attended transfer "*2" doesn't send caller id to trasfered extension

$
0
0

Hi all,

i'm sorry if a wrong session of forum. I have one freepbx if all configured and the features code work, but only trouble i have is when i do a attended transfer with code *2 the transfer work but the caller id doesn't not update.

Example:

tel A call B
tel B press feature code
tel C ring
tel C answer
tel B hangup
tel C doens't see the caller id transfered, but only see the caller id of telephone B and tel A see the same thing.

i configured this 3 field for resolv this but nothing is appened, the fields are:
notifycid=yes
sendrpid=pai
canreinvite=update

I have urgently to do this because the PBX is in production from one week!!!

please help me!!!

thanks in advantage!!

PS: i'm sorry for my bad english!!! Smile

FreePBX (Raspberry Pi) - Grandstream HT503 - BSNL India - Setup Notes

$
0
0

After weeks of attempting to the get the above combination work with Caller ID and remote extensions, the setup below worked. I made notes incase the system fails and I need to reset up the system. My notes are posted below should they be useful to someone with the same issue.

Disclaimer:
1. Complete and total noob with no knowledge of Linux, Asterisk or programming. Setup only by reading these forums, wiki.freepbx.org and google.
2. Settings not discussed have been left at default value.

Here goes:

FreePBX - Raspberry Pi - Grandstream HT 503 - Setup Notes

Devices:
Raspberry Pi - FreePBX (http://www.raspberry-asterisk.org)
Netgear DG 834 ASDL Router
Grandstream HT 503 FXO Gateway

FreePBX Setup Notes

-Do not touch any .conf file through the Linux Terminal, FreePBX will make changes to the Asterisk. wiki.freepbx.org provides the best resource for understanding the settings.

Asterisk SIP Settings need to be configured correctly i.e.,
-IP Configuration = Dynamic IP,
-Dynamic Host = (yourhostname).dynamicdns.org,
-Local Networks = (auto configure),
-NAT=yes (for remote extensions to work),
-RTP Port Range = 10002 - 20000
(Can’t be set manually if Google Module is installed in FreePBX, I removed Google Module and specified the RTP Port Range)

Extension Notes

-NAT = Yes for remote extensions
-NAT = No for local extensions
-Enter correct SIP Port and RTP Port Range in Remote Extension & Switch on NAT in Remote Extension also
-Enter DDNS server name in appropriate column in Remote Extension

Router Notes

-Forward SIP Port (UDP) to FreePBX Server
-Forward RTP Port Range (UDP) to FreePBX Server
-Disable SIP ALG

Setup till here permits Local Extensions and Remote Extensions to interact with audio.

INTRODUCING PSTN LINE (BSNL - INDIA)

Grandstream HT 503 Notes

-Separate Extension for FXS port and FXO port. To reach PSTN line from IP Extensions, extension number of the FXO Port on HT 503 needs to be dialled. HT503 will thereafter answer the call and provide the BSNL Dial Tone.

-Basic Settings - Unconditional Call Forward Option = Ring Group/IVR/Extension ID as setup in the FreePBX server.

-Advanced Settings - Enable SYSLog for diagnostics, disable after complete setup.

-FXS Port configured as any other IP Extension

FXO Port Settings -
-Primary SIP Server= Local IP of FreePBX server,
-Outbound Proxy=Local IP of FreePBX Server,
-SIP User ID=Extension ID as setup in FreePBX server,
-Authenticate Password=extension password as setup in FreePBX server,
-SIP Registration=Yes
-Caller ID Scheme=ETSI-DTMF during ringing (For BSNL India)
-FSK Called ID Mnimum RX Level (dB)=0
-Caller ID Transport Type=Relay via SIP P-Asserted-Identity
-AC Termination Model=Impedance-based
-Impedance-Based=Complex3—370 ohms + (620 ohms || 310nF)
-Number of Rings=5
-PSTN Ring Thru FXS=No
-Stage Method=1

FreePBX Settings for HT503

-Contrary to online posts, no inbound route set, not outbound route set, no SIP Trunk set.
-Only Extensions, Ring Groups & IVR Configured so that the ID of such Extensions, Ring Groups & IVR can be entered in the Basic Settings of the HT503. HT503 will handled the call forwarding.
-All extensions, ring groups have FIXEDCIDVALUE enabled to ensure that the HT503 passes on the caller ID from the PSTN Line.

Overall Security Settings

-Router logs enabled to detect all activity on ports, including port scans, successful rule matches etc. Logs are set to be emailed every hour.
-Fail2ban setup to permanently ban IP’s without proper credentials after 3 attempts.
-Call Records set to be emailed to admin every hour to detect strange activity.
-PIN Code enabled on HT503 to authenticate outgoing calls from PSTN.

Despite the weeks of frustration, when it works.. It works beautifully.

Voicemail to Email

Timezone Changes

$
0
0

I am going to post this little tip here because I know next time I need to fix Time Conditions.. this is probably one of the places I will look.

Problem: Your dumb @$$ hosting provider decides, without your permission or notification, to go around and "fix" all the hardware clocks on all the *DEDICATED SERVERS* so the clock is "correct".

The problem is your PBX serves customers in places where the clock only changes by 30 minutes or doesn't change at all.

So you come in the morning after thinking "I did not update my servers so everything should be fine" morning and your "customers" (internal staff) are all angry because their Time Conditions have decided to tell customers your office is closed for as much as a full hour after everyone has shown up for work costing you thousands of dollars in revenue.

1 - ln -sf /usr/share/zoneinfo/Country/City /etc/localtime
2 - /sbin/hwclock --systohc
3 - /etc/init.d/asterisk restart (important - seems that asterisk doesn't notice the time change unless you restart the service)
4 - tail /var/log/asterisk/full <-- confirm the clock is right in the logs

I hope this helps the next guy who is ripping out his hair because 1) his logs are all off by some number of hours 2) all his time conditions are wrong 3) voicemails are wrong


Batch update emergency CID

$
0
0

Hi guys,

We recently started using freepbx for a project consisting of over 1000 extensions. No problem doing batch creating extensions but I can't find any way of specifiying emergency CID. Also tried looking into DB, and various config files but I just can't find where this value is specified for each extension.

Any help is much appreciated.

PINLESS FROM A TRUNK

$
0
0

The scenario is 2 Freepbx boxes connected togheter via an Intercompany IAX trunks. On the BOX A there is a PIN policy for the outgoing call on the outside world SIP trunk. We would like to have the PIN policy normaly managed on the extension locally registered on the BOX A (as it is already done) but no PIN policy on the call to the SIP trunk coming from the IAX trunk.
Any suggestion?
Thank you

"Stacking" CID Name Prefix

$
0
0

I am looking for a way to append both CID from the Inbound Route level, as well as the Queue level. I have several different campaigns running which all dump into the same queues that my users login to. I am looking for a way for agents who are logged into multiple queues (billing, sales, support) to have a way to easily recognize not only what type of call it is, but also what source sent the call to them, so that we can better document commission/effectiveness of a particular campaign's advertising.

Sending all extension calls out a trunk.

$
0
0

I have FreePBX deployed as a switch for my office, and it trunks on behalf of some users as registered endpoints to our softswitch platform. I need a way so that all XXXX based calls are sent outbound to the softswitch. I can then use short codes to send the call back to FreePBX and then inbound route rules to make sure that the call ends up back at the proper extension. The problem is that my users who have registration on the softswitch need to have it control when to cut the call and send to our voicemail platform, and other users on FreePBX do not loop out, which causes the call to land on an unprovisioned voicemail box in FreePBX. Does anyone have an idea how to make all XXXX based dialing get sent out of a trunk to the softswitch? All other number translation, and looping back to the PBX I have figured out, but this one last piece is hanging me up.

Simulate Call Routing

$
0
0

Hi Everyone,

The call routing in my PBX is somewhat complex. I'm looking for a way to simulate inbound calls. The problem I run into is that my routing is based heavily on time groups throughout the day/week, which makes it difficult, if not impossible to test inbound call destinations prior to their occurrence.

I'm wondering if anyone has a solution. It would be great to have an interface to input an inbound route, time and any relevant IVR selections and see the outcome. Even being able to make a call with an alternative time (Actual call made at 1600 but system sees it as 1300) would make my life a whole lot easier.

Any help/input/advice would be appreciated.

Thanks

Check if DAHDi extension is on the phone

$
0
0

Hello,
I have a freePBX system with a DAHDi card installed, using 4 analog phones as internal extensions. My question is if it is possible to check if any extension is currently busy? If I buy an IP SIP phone for an operator, can be displayed when an extension is busy, maybe with a flashing light or something?

Thank you very much in advance,
Periklis

Disabling all MeetMe prompts and announcements?

$
0
0

Hello Community,

Does anyone know if we can disable all the system MeetMe prompts and announcements?

I was thinking about just recording a Microsecond of silence and saving the files, but is there a simple switch to do this?

Thanks in advance if anyone knows....

Hal E. Halvorson


Multilanguage and custom recordings

$
0
0

Hello.

I need to implement multilanguage IVR system, language like (english and russia). For this I have recorded some custom prompts and uploaded via gui interface.

When I use conf file at asterisk source I know than before applicaion Playback I set language and every sound,prompts will sound in the language that I have defined.

How I can do also via GUI FreePBX distro?

Call History (and CDR) related to Parked Calls

$
0
0

We are using Asterisk 11.7 and FreePBX 2.11

I believe the system is working as intended but we are looking to see if we can get the Caller ID of a parked call to show up in the Call History of our phones and on the CDR.

We are using Grandstream 2100 and 2124 phones.

When a call comes in, it is answered at the receptionist, she places the call on Park (70), then end user picks up the call (71, for example) and the outside Caller ID does show up on the phone at both locations.

The problem we are having is when a user goes back to look at their call history or even when we pull the CDR, we only see the Users extension dialing 71. We do not get any additional information associated with this call.

Is there a setting we are missing or an application we can use to see the Users Extension calling Park and the Caller ID information of the person on Park in reports and call history?

Dynamic queue members and theirs channel type

$
0
0

Hi,

Some time ago I have created queue in FreePBX Distro and I handle of dynamic agents with Local channel (like FOP2).

Today I saw that one unregistered SIP device has status in queue "Not In Use" but it was unregistered.

In addititonal I have added the same SIP device via cli asterisk (queue add memeber) but with SIP channel.

result was:

2503 (Local/2503@from-queue/n) (dynamic) (Not in use) has taken 1 calls (last was 5235 secs ago)
SIP/2501 (dynamic) (Unavailable) has taken no calls yet

I think it's not normal and is it FreePBX Distro problem or Asterisk?

Add queue members dynamically

$
0
0

Hi,

We are currently running version 5.6 distro with a custom function for joining queues:

exten => 7000,1,AddQueueMember(700,SIP/${CALLERID(num)})
exten => 7000,2,Playback(agent-loginok)
exten => 7000,3,Hangup
exten => 7001,1,RemoveQueueMember(700,SIP/${CALLERID(num)})
exten => 7001,2,Playback(agent-loggedoff)
exten => 7001,3,Hangup

Currently when a member joins the queue they are listed as SIP/extnum, however I would like to see the agent name instead (or as well as)

What would I need to add to the queue line to get this info working?

Drac

Easily track/review recordings of transferred calls

$
0
0

Hey everyone!

Savvy in PBX, noob on this forum; but I've frequently used the posts here to solve easy fixes I've come across in the past. Anyway, we have a very elaborate PBX setup with tons of DIDs, extensions, multi-level IVR's, etc. We've also built in a few funny features for our personal entertainment; this one needs some help:

We have a misc destination (666) which transfers the caller to an announcement with a custom recording of Arnold Schwarzenegger (courtesty of a Fiverr gig), who replies with generic answers such as: "Was I speaking with you earlier this week?" and "I think it's time for you to get erased." After playing the entire recording, the announcement fails over to a hangup-disconnect. It's really funny for transferring solicitors and telemarketers. The best part is it's all recorded, so we can go back and listen to the caller talking back and fourth with Arnold, usually for more than 30 seconds...

Our issue is we have no way to track down the calls in the monitoring section of the PBX dashboard. Because the original call comes into a queue, and is answered by a random extension, and then blind transferred to a non-extension (the misc destination) - we cannot lookup a call by "transferred to misc destination 666". Therefore, the history will only yields information about the incoming source and extension destination Sad

Not sure if we should convert the misc destination into an extension, or otherwise transfer to something other than a misc destination. Bottom line, we need an easy way to track down the 4-5 funny transfers per week, out of our normal 600+ calls. Any ideas? Or feedback Wink

Viewing all 199 articles
Browse latest View live


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