[Home]

Summary:ASTERISK-03713: Cannot call ForkCDR more than once
Reporter:ultradynamic (ultradynamic)Labels:
Date Opened:2005-03-19 14:24:19.000-0600Date Closed:2011-06-07 14:10:18
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Core/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:I'm not sure if this is a bug or a usage issue, but I can't seem to call ForkCDR more than once during a call.  When I call ForkCDR for the second time the next command in the dial plan executes (at least it shows that it executes in the CLI) but then the progress in the dial plan stops cold.
Comments:By: Mark Spencer (markster) 2005-03-19 17:35:08.000-0600

It would be helpful if you actually posted your extensions.conf file.

By: Brian West (bkw918) 2005-03-19 18:01:55.000-0600

did you make clean?

/b

By: ultradynamic (ultradynamic) 2005-03-19 18:46:01.000-0600

I would post my extensions.conf file but it is absolutely spaghetti right now.  However, as a hypothetical situation, I have the following...

Suppose we have a set of external lines and two extensions.  When someone calls, they are sent to extension 100.  If extension 100 is not picked up in 10 seconds then the call is sent to extension 200.  If extension 200 is not picked up in 10 seconds then it is forwarded to an outside number.

In a sense, we could have three calls being made, incoming to 100, 100 to 200, and 200 to external.  Ideally, I would like to show a record for each call.  I could also correctly assign any telephone charges to extension 200 (in this example) if I could create a record for each jump.  However, the dial plan freezes when ForkCDR is called for the second time.  In the example below, the CLI would show SetCDRUserField(200) being processed but would stop after that.

[Incoming]
;incoming call
exten => _NXXNXXXXXX,1,Goto(Extensions|100|1)

[Extensions]
;100
exten => 100,1,Dial(IAX2/100|10)
exten => 100,2,ForkCDR
exten => 100,3,SetCDRUserField(100)
exten => 100,4,Goto(200|1)

;200
exten => 200,1,Dial(IAX2/200|10)
exten => 200,2,ForkCDR
exten => 200,3,SetCDRUserField(200)
exten => 200,4,Goto(300|1)

;forward to outside number
exten => 300,1,Dial(Zap/1/XXXXXXXXXX)

By: ultradynamic (ultradynamic) 2005-03-19 21:06:23.000-0600

Yes, it was made clean.

By: Brian West (bkw918) 2005-03-19 22:42:56.000-0600

ok just checking on the make clean.. talked to anthm about this.. he wasn't near his PC when we talked... so I posted just to ask ;)

/b

By: Mark Spencer (markster) 2005-03-26 01:48:03.000-0600

Can you give us some sample output of what happens when you call the forkcdr twice?

By: Mark Spencer (markster) 2005-03-30 00:58:20.000-0600

Hello, please post sample output if you are still interested in pursuing this issue.

By: Kevin P. Fleming (kpfleming) 2005-04-04 23:43:16

No response from original poster for two weeks; closing bug. If detailed logging output and extensions.conf demonstrating this problem can be provided, this bug can be reopened.