[Home]

Summary:ASTERISK-16310: Application pickup doesn't work well
Reporter:Diego Ingallina (sgtpepe)Labels:
Date Opened:2010-07-01 10:24:36Date Closed:
Priority:MinorRegression?No
Status:Open/NewComponents:Applications/app_directed_pickup
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) issue_0017577_full_log
Description:Hi,
first of all sorry for my english!
I've several Asterisk 1.6.2.9 installed on Centos 5.5.
When I start Asterisk service everything work fine but after about an hour the application Pickup stops to work on every channel and for all peers.

This is my exten on dialplan:

exten => _**XXX,1,Pickup(${EXTEN:2}@interni)

And for about an hour it works very well, after that when I try to pickup a call the cli give me those messages:

-------------------------------------------------------------------------------
   -- Executing [**226@classe1:1] Pickup("SIP/224-0000017e", "226@interni") in new stack
[Jul  2 01:05:02] NOTICE[7333]: app_directed_pickup.c:257 pickup_exec: No target channel found for 226.
   -- Auto fallthrough, channel 'SIP/224-0000017e' status is 'UNKNOWN'
-------------------------------------------------------------------------------

And my Snom give me status "Declined".

I've tried the PICKUPMARK method too... But It's worst, because it pickup another ringing call instead...

Thanks for all,
Diego.
Comments:By: Diego Ingallina (sgtpepe) 2010-07-01 10:30:41

It's not SVN, and application may be "directed_pickup" instead "general".

I'm sorry for the previously error.



By: Paul Belanger (pabelanger) 2010-07-01 10:49:45

We require a complete debug log to help triage the issue.

This document will provide instructions on how to collect debugging logs from an Asterisk machine for the purpose of helping bug marshals troubleshoot an issue:

http://svn.digium.com/svn/asterisk/trunk/doc/HOWTO_collect_debug_information.txt

By: Diego Ingallina (sgtpepe) 2010-07-02 02:49:21

Debug log was attached.
The PBX was in use when I reproduced the issue, but I don't clean logs.
The call was from 240 to 226 and i try to pickup by 99.

By: Paul Belanger (pabelanger) 2010-07-02 06:08:04

We also need to see your dialplan.

By: Diego Ingallina (sgtpepe) 2010-07-06 01:55:22

Related to this application my dialplan is very simple:

---------------------------------------------------------
[interni]
exten => 220,1,Dial(SIP/220,30,tTxX)
exten => 223,1,Dial(SIP/223,30,tTxX)
exten => 226,1,Dial(SIP/226,30,tTxX)
exten => 240,1,Dial(SIP/240,30,tTxX)
exten => 245,1,Dial(SIP/245,30,tTxX)

[classe1]
exten => **XXX,1,Pickup(${EXTEN:2}@interni)

include => interni
---------------------------------------------------------


On my sip I'm using template... so:

---------------------------------------------------------
[classe1](!,settings,codecs)
type=friend
context=classe1
busylevel=1
call-limit=1
incominglimit=1

("settings" some parameter like permit/deny, canreinvite, dtmfmode etc... "codecs" is my preferred codec's list).

[226](classe1)
secret=mysecret
---------------------------------------------------------

Bye,
Diego.



By: Diego Ingallina (sgtpepe) 2010-07-29 03:35:49

Is there something wrong on my report?

Diego.

By: Olivier Krief (okrief) 2010-08-02 10:51:22

My 2 cents :
have this new 'notifycid=ignore-context' setting been tried ?
This one somehow restores previous directed pickup behaviour.

By: Diego Ingallina (sgtpepe) 2010-08-06 04:10:46

I've already tried with no success...

Anyway,
Thank you.

By: Tan Tuerel (thsgmbh) 2010-08-26 08:47:20

I have the same problem with Asterisk 1.6.2-svn and Snom phones.

When I configure the keys on our snom phones to BLF, so that it calls *8<EXT>, the pickup works fine but when I try to use the pickup via replace header (key-type: extension), the snom phone sends an invite with replace header:

REPLACE: pickup-<xx_callid_xx>

and I get this error in log:

chan_sip.c: Trying to pick up 71@from-internal
app_directed_pickup.c: No target channel found for 71.

Note: "notifycid=ignore-context" is set !!



By: Stefan Schmidt (schmidts) 2010-08-27 13:55:16

i am not sure but i think the context is not which you expected.
in your log i see this row:
[Jul  2 03:12:03] VERBOSE[7972] pbx.c:     -- Executing [226@classe7:1] Dial("SIP/240-000001f3", "SIP/226,90,tTxX") in new stack

i would read this as exten 226 in context classe7 which will not match to your context interni where you do your pickup.
but i dont use contexts much and neither the builtin pickup so i may be on the wrong path.

By: Diego Ingallina (sgtpepe) 2010-09-14 08:17:15

Context "classe7" included "interni"...
Anyway this not explain why it works for the first hour and I tried the same things with peers in context "interni" too.

Diego