FreePBX Paid Support


Not Logged in - No Account?

Don't have an account? Registering an account with us allows you to post to the forums, easily track new posts, subscribe to threads, pm (private message) other forum members, and receive periodic news letters (you can opt out if you desire). Once you are logged in this message will no longer appear. If you don't have an account, you can create one by registering here. Lost your password, request a new password. We respect your privacy which means we collect minimal information when you register and we do not resell that information or use it in any objectionable way. You can review our privacy policy for full details.


[solved] Direct pickup calls from outside with ** dosen't work

schogge's picture

Hi all,

I am running freepbx 2.3 and Asterisk 1.4.

When I call from extension 100 to 101, I can pickup this call by dialing **101 on extension 102.

But when I call from outside (PSTN) and route the call to extension 101, direct pickup with **101 dosen't work. Pickup with *8 works fine.

Any Ideas?


__________________


Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

I found a solution wich

schogge's picture

I found a solution wich seems to work.

I changed [app-pickup] in the dialplan to this:

[app-pickup]
include => app-pickup-custom
exten => _**.,1,Noop(Attempt to Pickup ${EXTEN:2} by ${CALLERID(num)})
exten => _**.,n,SET(GLOBAL(PICKUPMARK)=${EXTEN:2})
exten => _**.,n,Pickup(${EXTEN:2}@PICKUPMARK)

Now calls from PSTN can also be picked up with **.

Note: PICKUPMARK is a new feature of Asterisk 1.4 and not available in 1.2.


Tnx, this worked for like a

cell's picture

Tnx, this worked for like a charm... Including with CustomContexts...


Please post this as a bug

fskrotzki's picture

Please post this as a bug report so it can be corrected the program. It is bound to be missed and not addressed if is just sits here. You can post a bug report by going to development site, report a bug.


Couple of comments. First,

p_lindheimer's picture

Couple of comments. First, if you are setting the global variable, I think that will conflict with other channels and you can have a race condition that could break this. Can you please confirm if you can do the same thing without the GLOBAL() directive. Example:

exten => _**.,n,SET(PICKUPMARK=${EXTEN:2})

Next - please test by putting the extension in a ringgroup and having the call hit the ringgroup and then try picking it up. Does it work? (I'm guessing not). Try to pickup the call based on the extension number first, then try to pickup the call based on the ringgroup number. Does either work? Which ones?


__________________

Philippe Lindheimer - FreePBX Project Leader
FreePBX Training Opportunities - Click Here
Get Official Paid Support - Click Here


With that code it behaves like group pickup

Rocco77's picture

Hi all,
I tried the code suggested by schogge but with it, the directed pickup **EXT behaves exactly like the "blind" *8 group pickup. To confirm this I've checked that when an extension is ringing, if I dial **WHICHEVEREXT I always pickup the ringing one.

By removing the GLOBAL() directive the directed pickup doesn't work at all.
My PARTIAL solution (it doesn't work for extensions ringing for a call to a group or a queue but only for direct calls from other extensions or from dialing during IVR from external) is:

[app-pickup-custom]
exten => _**.,3,Pickup(${EXTEN:2}@from-did-direct)
exten => _**.,n,Pickup(${EXTEN:2}@from-internal-additional-CUSTOM1)
exten => _**.,n,Pickup(${EXTEN:2}@from-internal-additional-CUSTOM2)
exten => _**.,n,Pickup(${EXTEN:2}@from-internal-additional-CUSTOM3)

"from-internal-additional-CUSTOMx" are my internal manual custom contexts to allow extensions call with specific trunks.
As stated this doesn't work when the extension is ringing for a call to its group or queue.

Regards

Rocco77