Directed call pickup trouble

Joined
Nov 5, 2007
Messages
12
Points
0
Hi, Directed call pickup **EXT does not work correctly.
It works for local sip extensions, like: if ext100 calls ext101 then ext102 can pick the call by dialing **101 - works great!
BUT:
when call is coming into system from IAX2 trunk to another pbx the pickup does not work. like: PBX1->IAX2trunk->PBX2->incoming route1->ringing group1->ext101 (Rings) when now try to pickup from ext102 by dialing **101 ERROR!
NOTICE[20725]: app_directed_pickup.c:159 pickup_exec: No target channel found for 101.

:dry:<br><br>Post edited by: Jynger, at: 2007/11/21 22:09
 
Joined
Nov 5, 2007
Messages
12
Points
0
yucleto said:
try *8, this should work for trunks.

Regards !
hmm, I need directed call pickup not group call pickup, *8 works fine for local ext and for trunks, but i need to be able to do directed call pickup for extension, like with *8 you can pickup last incoming call on ringing extension, but what if 4 calls are inbound and 4 phones are ringing, i need then to be able to pickup any one of them and dialing *8ext does not do that ** is meant for doing pickup that way but it generates error instead in elastix.
 
Joined
Nov 5, 2007
Messages
12
Points
0
OK, i found whats the problem:
in /etc/asterisk/extensions_additional.conf:

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

this only works when channel contectx is EXT@from-internal

for any call from other context the pickup macro wont work.
 
Joined
Oct 3, 2012
Messages
8
Points
0
Hi,

How do you fixed this problem? I have a problem like this and still i can't fix it...

May you help-me to fix this problem?

I have one new context called "from-blocked" and i can't pickup any calls of this context.

what a do to pickup calls from diferents context?

Thanks for all.
 
Joined
Feb 28, 2008
Messages
5,737
Points
0
You should add the other contexts, something like:
exten => _**.,n,Pickup(${EXTEN:2}@from-internal&${EXTEN:2}@boss&${EXTEN:2}@secretary&${EXTEN:2}@support)
 
Joined
Oct 3, 2012
Messages
8
Points
0
jgutierrez said:
You should add the other contexts, something like:
exten => _**.,n,Pickup(${EXTEN:2}@from-internal&${EXTEN:2}@boss&${EXTEN:2}@secretary&${EXTEN:2}@support)
Hi,

I tryed it but it doesn't work yet. I've guess i need do anymore to it works, but i don't know what.

from context 'from-block' i CAN pickup calls of context 'from-internal' but from context 'from-internal' i CAN'T pickup calls of context 'from-block'.

bellow follow my configs (extensions_custom.conf):

first, i created one 'app-pickup-custom'

[app-pickup-custom]
exten => _**.,1,Pickup(${EXTEN:2}&${EXTEN:2}@from-internal)
exten => _**.,n,Hangup

and then, i created my new context called 'from-block'

;MODIFICATIONS POR WILSON JUNIOR
[from-block]
include => ext-local
include => outrt-2 ; Fixo-Fixo-Local
include => app-pickup
include => app-pickup-custom

; end of Wilson Junior Modifications

Please, if you know how help-me, do it, i really really need.

Thanks for ALL!
 
Joined
Feb 28, 2008
Messages
5,737
Points
0
You haven't followed my instructions...

You need to set:

exten => _**.,1,Pickup(${EXTEN:2}@from-internal&${EXTEN:2}@from-block)

And then execute:
asterisk -rx "module reload"
 
Joined
Oct 3, 2012
Messages
8
Points
0
jgutierrez said:
You haven't followed my instructions...

You need to set:

exten => _**.,1,Pickup(${EXTEN:2}@from-internal&${EXTEN:2}@from-block)

And then execute:
asterisk -rx "module reload"
Dear Jgutierrez,

I did what you said, but it doesn't work.. bellow follow results of my asterisk CLI, when i try pickup call, i get this msg:

-- Executing [**5747@from-internal:1] Pickup("SIP/5708-00000002", "5747&5747@ext-local&5747@from-internal&5747@from-internal-xfer&5747@from-did-direct&LC-5747@from-internal&LC-5747@from-internal-xfer&FMPR-5747@from-internal&FMPR-5747@from-internal-xfer&FMPR-5747@from-did-direct&10@from-internal&10@from-internal-xfer&10@ext-group") in new stack
-- Executing [**5747@from-internal:2] Hangup("SIP/5708-00000002", "") in new stack
== Spawn extension (from-internal, **5747, 2) exited non-zero on 'SIP/5708-00000002'
-- Executing [h@from-internal:1] Macro("SIP/5708-00000002", "hangupcall") in new stack
-- Executing [s@macro-hangupcall:1] GotoIf("SIP/5708-00000002", "1?endmixmoncheck") in new stack
-- Goto (macro-hangupcall,s,9)
-- Executing [s@macro-hangupcall:9] NoOp("SIP/5708-00000002", "End of MIXMON check") in new stack
-- Executing [s@macro-hangupcall:10] GotoIf("SIP/5708-00000002", "1?nomeetmemon") in new stack
-- Goto (macro-hangupcall,s,28)
-- Executing [s@macro-hangupcall:28] NoOp("SIP/5708-00000002", "End of MEETME check") in new stack
-- Executing [s@macro-hangupcall:29] GotoIf("SIP/5708-00000002", "1?noautomon") in new stack
-- Goto (macro-hangupcall,s,34)
-- Executing [s@macro-hangupcall:34] NoOp("SIP/5708-00000002", "TOUCH_MONITOR_OUTPUT=") in new stack
-- Executing [s@macro-hangupcall:35] GotoIf("SIP/5708-00000002", "1?noautomon2") in new stack
-- Goto (macro-hangupcall,s,41)
-- Executing [s@macro-hangupcall:41] NoOp("SIP/5708-00000002", "MONITOR_FILENAME=") in new stack
-- Executing [s@macro-hangupcall:42] GotoIf("SIP/5708-00000002", "1?skiprg") in new stack
-- Goto (macro-hangupcall,s,45)
-- Executing [s@macro-hangupcall:45] GotoIf("SIP/5708-00000002", "1?skipblkvm") in new stack
-- Goto (macro-hangupcall,s,48)
-- Executing [s@macro-hangupcall:48] GotoIf("SIP/5708-00000002", "1?theend") in new stack
-- Goto (macro-hangupcall,s,50)
-- Executing [s@macro-hangupcall:50] AGI("SIP/5708-00000002", "hangup.agi") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/hangup.agi
-- <SIP/5708-00000002>AGI Script hangup.agi completed, returning 0
-- Executing [s@macro-hangupcall:51] Hangup("SIP/5708-00000002", "") in new stack
== Spawn extension (macro-hangupcall, s, 51) exited non-zero on 'SIP/5708-00000002' in macro 'hangupcall'
== Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/5708-00000002'

I appreciate your attention to help me, thanks.
 
Joined
Feb 28, 2008
Messages
5,737
Points
0
Well well...
Where is the @from-block, I asssume that is the name of your context, isn't it?
 
Joined
Oct 3, 2012
Messages
8
Points
0
jgutierrez said:
Well well...
Where is the @from-block, I asssume that is the name of your context, isn't it?
Yes, my context from-block are in "extensions_custom.conf" are correct, right?
 
Joined
Oct 15, 2012
Messages
4
Points
0
Hi,

try it... go to extensions_additional.conf and copy the [app-pickup] section.
After modify your extensions_override_elastix.conf,paste the [app-pickup] from extensions_additional.conf and add your contexts.
Example:

[app-pickup]
include => app-pickup-custom
exten => _**.,1,Pickup(${EXTEN:2}&${EXTEN:2}@ext-local&${EXTEN:2}@from-internal&${EXTEN:2}@from-internal-xfer&${EXTEN:2}@from-did-direct&LC-${EXTEN:2}@from-internal&LC-${EXTEN:2}@from-internal-xfer&FMPR-${EXTEN:2}@from-internal&FMPR-${EXTEN:2}@from-internal-xfer&FMPR-${EXTEN:2}@from-did-direct&${EXTEN:2}@from-block)
exten => _**.,n,Hangup


; end of [app-pickup]
 
Joined
Oct 3, 2012
Messages
8
Points
0
indigitale said:
Hi,

try it... go to extensions_additional.conf and copy the [app-pickup] section.
After modify your extensions_override_elastix.conf,paste the [app-pickup] from extensions_additional.conf and add your contexts.
Example:

[app-pickup]
include => app-pickup-custom
exten => _**.,1,Pickup(${EXTEN:2}&${EXTEN:2}@ext-local&${EXTEN:2}@from-internal&${EXTEN:2}@from-internal-xfer&${EXTEN:2}@from-did-direct&LC-${EXTEN:2}@from-internal&LC-${EXTEN:2}@from-internal-xfer&FMPR-${EXTEN:2}@from-internal&FMPR-${EXTEN:2}@from-internal-xfer&FMPR-${EXTEN:2}@from-did-direct&${EXTEN:2}@from-block)
exten => _**.,n,Hangup


; end of [app-pickup]
Indigitale,

First, thanks for your attention.

Your suggest don't fix my problem, keeps everything the same way, still received "Declined" when i try pickup one call of "from-block" from context "from-internal". ever tried much thing to fix it but it's very hard.

if anyone knows anything more about it, please, tell-me.
 
Joined
Oct 15, 2012
Messages
4
Points
0
i used this configuration for pickup the call of "my-context" from "from-internal" context...
 
Joined
Oct 3, 2012
Messages
8
Points
0
indigitale said:
i used this configuration for pickup the call of "my-context" from "from-internal" context...
So, do how you said:

i went on "extensions_additional.conf" and copied the section [app-pickup] and include my context in the end. Then i went on my "extensions_override_elastix.conf" and pasted on end of archive:

[app-pickup]
include => app-pickup-custom
exten => _**.,1,Pickup(${EXTEN:2}&${EXTEN:2}@ext-local&${EXTEN:2}@from-internal&${EXTEN:2}@from-internal-xfer&${EXTEN:2}@from-did-direct&LC-${EXTEN:2}@from-internal&LC-${EXTEN:2}@from-internal-xfer&FMPR-${EXTEN:2}@from-internal&FMPR-${EXTEN:2}@from-internal- xfer&FMPR-${EXTEN:2}@from-did-direct&${EXTEN:2}@from-block)
exten => _**.,n,Hangup

saved and reload my asterisk.

when a try pickup one call from of context "from-block" i can't. (from-internal ---> from-block) don't work.

but when i try pickup one call from context "from-internal" i can (from-block -----> from-internal) it works.

are correct my config?

Thanks.
 
Joined
Oct 15, 2012
Messages
4
Points
0
app-pickup in my extensions_additional.conf

[app-pickup]
include => app-pickup-custom
exten => _**.,1,Pickup(${EXTEN:2}&${EXTEN:2}@ext-local&${EXTEN:2}@from-internal&${EXTEN:2}@from-internal-xfer&${EXTEN:2}@from-did-direct&LC-${EXTEN:2}@from-internal&LC-${EXTEN:2}@from-internal-xfer&FMPR-${EXTEN:2}@from-internal&FMPR-${EXTEN:2}@from-internal-xfer&FMPR-${EXTEN:2}@from-did-direct)
exten => _**.,n,Hangup

and in extensions_override_elastix.conf:
[app-pickup]
include => app-pickup-custom
exten => _**.,1,Pickup(${EXTEN:2}&${EXTEN:2}@ext-local&${EXTEN:2}@from-internal&${EXTEN:2}@from-internal-xfer&${EXTEN:2}@from-did-direct&LC-${EXTEN:2}@from-internal&LC-${EXTEN:2}@from-internal-xfer&FMPR-${EXTEN:2}@from-internal&FMPR-${EXTEN:2}@from-internal-xfer&FMPR-${EXTEN:2}@from-did-direct${EXTEN:2}@mobile)
exten => _**.,n,Hangup

My app-pickup-custom in extensions_custom.conf is empty and this is my custom context

[mobile]

include => parkedcalls
include => ext-fax
include => ext-local-confirm
include => findmefollow-ringallv2
include => app-speeddial
include => app-dictate-record
include => app-dictate-send
include => app-fmf-toggle
include => ext-findmefollow
include => fmgrps
include => app-calltrace
include => app-directory
include => app-echo-test
include => app-speakextennum
include => app-speakingclock
include => app-gabcast
include => app-dnd-off
include => app-dnd-on
include => app-dnd-toggle
include => app-cf-busy-off
include => app-cf-busy-off-any
include => app-cf-busy-on
include => app-cf-off
include => app-cf-off-any
include => app-cf-on
include => app-cf-unavailable-off
include => app-cf-unavailable-on
include => app-cf-toggle
include => app-pbdirectory
include => app-fax
include => app-callwaiting-cwoff
include => app-callwaiting-cwon
include => app-recordings
include => ext-meetme
include => ext-queues
include => app-queue-toggle
include => app-blacklist
include => ext-paging
include => vmblast-grp
include => app-languages
include => ext-group
include => grps
include => app-dialvm
include => app-vmmain
include => app-userlogonoff
include => app-pickup
include => app-zapbarge
include => app-chanspy
include => ext-test
include => ext-local
include => outrt-1 ; national_outside
include => outrt-6 ; mobile
include => outrt-4 ; inside
exten => h,1,Hangup
; end of [mobile]
 

Members online

No members online now.

Forum statistics

Threads
30,988
Messages
131,101
Members
17,716
Latest member
Orbit114
Top