I use Asterisk 1.8.5 + FreePBX 1.9 with Voipbuster.
My idea is to automatically forward incoming phone calls to an external number after a certain amount of seconds of by forwaring all incoming calls to that number.
It works great when I forward an incoming external call to an internal extension, or when an internal extension gets forwarded to an external number. Sadly, I can’t get it to work for incoming external calls, and I don’t understand why.
- With the single VoipBuster trunk, I can set up and use an incoming and an outgoing external call at the same time, so capacity doesn’t seem te be a problem.
- With the dial plans in place, I can call the external number I want to forward to.
- The external caller gets a normal calling tone. When the phone is picked up by the external telephone where the forward points to, the external caller still hears the dialing tone. The forwarded to external phone hears nothing aftehr picking up.
When I put the logging on Debug, I can see that the external phone (0351234567) is picked up:
-- SIP/VB-out-00000022 answered Local/0351234567@from-internal-b926;2
-- Local/0351234567@from-internal-b926;1 answered SIP/VB-out-00000020
Also in the logfiles, it looks like Voipbuster (IP 77.x.x.x) tries to transfer the call. Might that be a problem?
<--- Reliably Transmitting (NAT) to 188.8.131.52:5060 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 184.108.40.206:5060;branch=z9hG4bKafea502c577048dfbc47c93743f6439c;received=220.127.116.11;rport=5060
CSeq: 1 INVITE
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
To be complete, here are my trunk settings:
At this point I’m all out of ideas. Can someone point me in the right direction?