Hi Jerry,
this is the cdr result of four tests (sorry for bad format):
+----------+-----------+-------------+-----+-----------+------------------------------+-----------------------------+------------------+------------------+------------+-------------------+---------------------+----------+---------+-------------+----------+
| uniqueid | userfield | accountcode | src | dst | dcontext | clid | channel | dstchannel | lastapp | lastdata | calldate | duration | billsec | disposition | amaflags |
+----------+-----------+-------------+-----+-----------+------------------------------+-----------------------------+------------------+------------------+------------+-------------------+---------------------+----------+---------+-------------+----------+
| 20126 | | | | 293504780 | inbound | | Zap/1-1 | | BackGround | fga_main_menu | 2005-07-29 10:09:00 | 10 | 10 | ANSWERED | 2 | | 20127 | | | | 104 | inbound | | Zap/1-1 | SIP/104_fga-281d | Dial | SIP/104_fga|21|t | 2005-07-29 10:09:27 | 15 | 15 | ANSWERED | 2 | | 20128 | | | 104 | s | outbound_qualcuno_in_ufficio | "Giorgio Incantalupo" <104> | SIP/104_fga-7fa0 | Zap/1-1 | Dial | Zap/g3/0331551932 | 2005-07-29 10:28:09 | 54 | 24 | ANSWERED | 3 | | 20129 | | | 104 | s | outbound_qualcuno_in_ufficio | "Giorgio Incantalupo" <104> | SIP/104_fga-3f24 | Zap/1-1 | Dial | Zap/g3/0293256288 | 2005-07-29 10:30:23 | 11 | 0 | NO ANSWER | 3 |
+----------+-----------+-------------+-----+-----------+------------------------------+-----------------------------+------------------+------------------+------------+-------------------+---------------------+----------+---------+-------------+----------+

The first test was to call the number 293594780 and hanging up the phone during inbound menu message. The result ia ANSWERED and I think it is ok because channel Zap/1-1 answered as I asked it using the Answer command.
BUT
The second line shows I dialled 104 during Background message to call 104_xxx SIP user: the telephone rang but I didn't pick up the phone. I expected some kind of result like NOANSWER because I didn't answer but Asterisk wrote ANSWERED in the disposition field. The same is if the phone is busy but the dialstatus variable shows another status (bust, etc..). Another strange thing is the billsec: I didn't answer...so why billsec and duration are the same??
Then I made an outbound call:
third test: I called my mom and she answered as you can see from disposition field: she took 24 sec to pick up the phone and then we spoke for a while. Now last test: I called another number but after a bit I hung up the phone and the CDR is right!! I didn't speak (billsec = 0) and duration is 11, right!!!
In your opinion ,is this the right behaviour for an inbound call?
I do not think so but I may be wrong.

TIA
Giorgio



[EMAIL PROTECTED] wrote:

Hi,

Quoting Giorgio Incantalupo <[EMAIL PROTECTED]>:

My inbound context is:

[inbound_menu]
include => internals  ; very strange: include doesn't work!!!
exten => _X.,1,DigitTimeout(2)

exten => _X.,2,Answer

exten => _X.,3,NoOp(DS:${DIALSTATUS})  ; my debug purpose
exten => _X.,4,Background(fga_main_menu)
exten => _X.,5,Background(3-sec-pause)
exten => _X.,6,Background(fga_main_menu)
exten => _X.,7,Hangup

exten => 101,1,Macro(interni,${PIPPO},${RING_TIME})

The Macro executes a Dial command....so nothing strange.

anybody knows why the CDR field named "disposition" always says ANSWERED
on inbound calls even if nobody picks up the phone (we are using various

I do believe this might clarify; if not, you are explicitly answering
the line. I don't see any Dial commands (might be in your include),
but if your call hits this extension it will be considered answered
after priority 2 (if I understand how the CDR works). You are then
having them go through an IVR, but the call is already deemed connected.
I think you want to play with NoCDR or one of it's cousins to get the
effect you desire.

J.
_______________________________________________
Asterisk-Users mailing list
[email protected]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users



--
____________________________________________________________________

GIORGIO INCANTALUPO
Tel. +39 02 9350 4780 (104)

FG&A Software
20017 Rho - Via Puccini, 8

E-Mail :
[EMAIL PROTECTED]
Internet:
http://www.fgasoftware.com

_______________________________________________
Asterisk-Users mailing list
[email protected]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to