[asterisk-r2] Problem Get ANI Number

fauzi_roeli at gratika.co.id fauzi_roeli at gratika.co.id
Wed Oct 27 23:28:26 CDT 2010


hi..

i have change mfcr2_skip_category to no, but it make error in CLI like this:

New MFC/R2 call detected on chan 139.
[Oct 28 11:47:41] WARNING[11700]: chan_dahdi.c:1925 dahdi_r2_write_log:
Chan 139 - MF back cycle timed out!
[Oct 28 11:47:41] ERROR[11700]: chan_dahdi.c:1928 dahdi_r2_write_log: Chan
139 - Protocol error. Reason = Multi Frequency Cycle Timeout, R2 State =
Seize ACK Transmitted, MF state = Category Request Transmitted, MF Group =
Backward Group A, CAS = 0x00
DNIS = 109, ANI = , MF = 0x20
[Oct 28 11:47:41] ERROR[11700]: chan_dahdi.c:1713
dahdi_r2_on_protocol_error: MFC/R2 protocol error on chan 139: Multi
Frequency Cycle Timeout
[Oct 28 11:47:47] NOTICE[11700]: chan_dahdi.c:1959 dahdi_r2_on_line_idle:
Far end unblocked on chan 139
vrs01*CLI> 

this is my last configuration in chan_dahdi.conf :

[channels]
language=en
group=1
usecallerid=yes
cidsignalling=dtmf
cidstart=ring
hidecallerid=no
sendcalleridafter=2
callwaiting=yes
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
cancallforward=yes
echocancel=yes
echocancelwhenbridged=yes
immediate=no
amaflags=default
musiconhold=random
faxdetect=both

signalling=mfcr2
mfcr2_variant=itu
mfcr2_get_ani_first=no
mfcr2_max_ani=20
mfcr2_max_dnis=4
mfcr2_category=collect_call
mfcr2_logdir=span1
mfcr2_logging=mf
mfcr2_call_files=yes
mfcr2_skip_category=no
mfcr2_mfback_timeout=-1
mfcr2_allow_collect_calls=yes
mfcr2_double_answer=no
;mfcr2_metering_pulse_timeout=-1
;mfcr2_immediate_accept=yes

context=incoming
;group=1
callgroup=1
pickupgroup=1
callerid=asreceived
useincomingcalleridondahditransfer=yes
rxgain=0.0
txgain=0.0
cid_rxgain=5.0
;callerid=1234
;context=from-mfcr2
;context=from-pstn
channel => 1-15,17-31,32-46,48-62,63-77,79-93,94-108,110-124,125-139,141-155

i don't know why if i change mfcr2_skip_category to yes, the call category
detected was 'collect call' so i change to it and the IVR is running well
but off course i can get ANI number.
please, i need advice.
very thanks.

regards,

roelee

Original Message:
-----------------
From: Moises Silva moises.silva at gmail.com
Date: Wed, 27 Oct 2010 11:04:43 -0400
To: asterisk-r2 at lists.digium.com
Subject: Re: [asterisk-r2] Problem Get ANI Number


On Wed, Oct 27, 2010 at 6:03 AM, Roelee <fauzi_roeli at gratika.co.id> wrote:
> Hi all,
> i live in Indonesia.
> i have installing asterisk 1.6.2 and libopenr2-1.3.0 successfully.
> i have two card Digium TE412 with echo cancellor.
>
>
> this is my configuration files :
>
> ------------------ /etc/asterisk/chan_dahdi.conf--------------------
>
> [channels]
> language=en
> usecallerid=yes
> cidsignalling=dtmf
> cidstart=ring
> callwaiting=yes
> callwaitingcallerid=yes
> threewaycalling=yes
> transfer=yes
> cancallforward=yes
> echocancel=yes
> echocancelwhenbridged=yes
> immediate=no
> amaflags=default
> musiconhold=random
> faxdetect=both
>
> signalling=mfcr2
> mfcr2_variant=id
> mfcr2_get_ani_first=no
> mfcr2_max_ani=20
> mfcr2_max_dnis=4
> ;mfcr2_category=national_subscriber
> mfcr2_logdir=span1
> mfcr2_logging=all
> mfcr2_call_files=yes
> mfcr2_skip_category=yes
> mfcr2_mfback_timeout=2000
> mfcr2_allow_collect_calls=yes
> mfcr2_double_answer=no
>
> context=incoming
> group=1
> callgroup=1
> pickupgroup=1
> callerid=asreceived
> useincomingcalleridondahditransfer=yes
> rxgain=0.0
> txgain=0.0
> cid_rxgain=5.0
> channel =>
> 1-15,17-31,32-46,48-62,63-77,79-93,94-108,110-124,125-139,141-155
>
> ------------------- CLI -----------------------------
>
> vrs01*CLI>
> New MFC/R2 call detected on chan 131.
> MFC/R2 call offered on chan 131. ANI = , DNIS = 109, Category = Collect
> Call
> MFC/R2 call has been accepted on backward channel 131
>    -- Executing [109 at incoming:1] Answer("DAHDI/131-1", "") in new stack
>    -- Executing [109 at incoming:2] Set("DAHDI/131-1",
> "CHANNEL(language)=id") in new stack
>    -- Executing [109 at incoming:3] AGI("DAHDI/131-1", "v109") in new
> stack
>    -- Launched AGI Script /var/lib/asterisk/agi-bin/v109
> v109: v109
>    -- Playing 'bhs109_5' (escape_digits=1234567890#*) (sample_offset 0)
>    -- <DAHDI/131-1> Playing 'bhs109_6.gsm' (language 'id')
> Chan 131 - Far end disconnected. Reason: Normal Clearing
> MFC/R2 call disconnected on channel 131
>    -- <DAHDI/131-1>AGI Script v109 completed, returning -1
> MFC/R2 call end on channel 131
>    -- Hungup 'DAHDI/131-1'
> vrs01*CLI>
>
> -----------------------call log file ---------------------
> [17:27:25:704] [Thread: 3079240592] [Chan 131] - Call started at Wed Oct
> 27 17:27:25 2010 on chan 131 [openr2 version 1.3.0, revision exported]
> [17:27:25:704] [Thread: 3079240592] [Chan 131] - Initialized R2 MF
> detector
> [17:27:25:704] [Thread: 3079240592] [Chan 131] - CAS Tx >> [SEIZE ACK]
> 0x0C
> [17:27:25:704] [Thread: 3079240592] [Chan 131] - CAS Raw Tx >> 0x0D
> [17:27:25:799] [Thread: 3079240592] [Chan 131] - MF Rx << 1 [ON]
> [17:27:25:799] [Thread: 3079240592] [Chan 131] - Attempting to cancel
> timer timer 0
> [17:27:25:799] [Thread: 3079240592] [Chan 131] - Cannot cancel timer 0
> [17:27:25:799] [Thread: 3079240592] [Chan 131] - Getting DNIS digit 1
> [17:27:25:799] [Thread: 3079240592] [Chan 131] - DNIS so far: 1,
> expected length: 4
> [17:27:25:799] [Thread: 3079240592] [Chan 131] - Requesting next DNIS
> with signal 0x31.
> [17:27:25:799] [Thread: 3079240592] [Chan 131] - MF Tx >> 1 [ON]
> [17:27:25:799] [Thread: 3079240592] [Chan 131] - scheduled timer id 2
> (mf_back_cycle)
> [17:27:25:879] [Thread: 3079240592] [Chan 131] - MF Rx << 1 [OFF]
> [17:27:25:879] [Thread: 3079240592] [Chan 131] - MF Tx >> 1 [OFF]
> [17:27:25:939] [Thread: 3079240592] [Chan 131] - MF Rx << 0 [ON]
> [17:27:25:939] [Thread: 3079240592] [Chan 131] - Attempting to cancel
> timer timer 2
> [17:27:25:939] [Thread: 3079240592] [Chan 131] - timer id 2 found,
> cancelling it now
> [17:27:25:939] [Thread: 3079240592] [Chan 131] - Getting DNIS digit 0
> [17:27:25:939] [Thread: 3079240592] [Chan 131] - DNIS so far: 10,
> expected length: 4
> [17:27:25:939] [Thread: 3079240592] [Chan 131] - Requesting next DNIS
> with signal 0x31.
> [17:27:25:939] [Thread: 3079240592] [Chan 131] - MF Tx >> 1 [ON]
> [17:27:25:939] [Thread: 3079240592] [Chan 131] - scheduled timer id 3
> (mf_back_cycle)
> [17:27:26:019] [Thread: 3079240592] [Chan 131] - MF Rx << 0 [OFF]
> [17:27:26:019] [Thread: 3079240592] [Chan 131] - MF Tx >> 1 [OFF]
> [17:27:26:079] [Thread: 3079240592] [Chan 131] - MF Rx << 9 [ON]
> [17:27:26:079] [Thread: 3079240592] [Chan 131] - Attempting to cancel
> timer timer 3
> [17:27:26:079] [Thread: 3079240592] [Chan 131] - timer id 3 found,
> cancelling it now
> [17:27:26:079] [Thread: 3079240592] [Chan 131] - Getting DNIS digit 9
> [17:27:26:079] [Thread: 3079240592] [Chan 131] - DNIS so far: 109,
> expected length: 4
> [17:27:26:079] [Thread: 3079240592] [Chan 131] - User requested us to
> stop getting DNIS!
> [17:27:26:079] [Thread: 3079240592] [Chan 131] - Requesting change to
> Group II with signal 0x33
> [17:27:26:079] [Thread: 3079240592] [Chan 131] - MF Tx >> 3 [ON]
> [17:27:26:079] [Thread: 3079240592] [Chan 131] - scheduled timer id 4
> (mf_back_cycle)
> [17:27:26:139] [Thread: 3079240592] [Chan 131] - MF Rx << 9 [OFF]
> [17:27:26:139] [Thread: 3079240592] [Chan 131] - MF Tx >> 3 [OFF]
> [17:27:26:219] [Thread: 3079240592] [Chan 131] - MF Rx << 2 [ON]
> [17:27:26:219] [Thread: 3079240592] [Chan 131] - Attempting to cancel
> timer timer 4
> [17:27:26:219] [Thread: 3079240592] [Chan 131] - timer id 4 found,
> cancelling it now
> [17:27:26:219] [Thread: 3079240592] [Chan 131] - MF Tx >> 6 [ON]
> [17:27:26:299] [Thread: 3079240592] [Chan 131] - Attempting to cancel
> timer timer 5
> [17:27:26:299] [Thread: 3079240592] [Chan 131] - timer id 5 found,
> cancelling it now
> [17:27:26:299] [Thread: 3079240592] [Chan 131] - scheduled timer id 6
> (r2_answer_delay)
> [17:27:26:459] [Thread: 3079240592] [Chan 131] - Attempting to cancel
> timer timer 6
> [17:27:26:459] [Thread: 3079240592] [Chan 131] - timer id 6 found,
> cancelling it now
> [17:27:26:459] [Thread: 3079240592] [Chan 131] - calling timer 6
> (r2_answer_delay) callback
> [17:27:26:460] [Thread: 3069373328] [Chan 131] - CAS Tx >> [ANSWER] 0x04
> [17:27:26:460] [Thread: 3069373328] [Chan 131] - CAS Raw Tx >> 0x05
> [17:27:31:846] [Thread: 3069373328] [Chan 131] - Bits changed from 0x00
> to 0x08
> [17:27:31:846] [Thread: 3069373328] [Chan 131] - CAS Rx << [CLEAR
> FORWARD] 0x08
> [17:27:31:846] [Thread: 3069373328] [Chan 131] - Far end disconnected.
> Reason: Normal Clearing
> [17:27:31:864] [Thread: 3069373328] [Chan 131] - Call ended
> [17:27:31:864] [Thread: 3069373328] [Chan 131] - Attempting to cancel
> timer timer 0
> [17:27:31:864] [Thread: 3069373328] [Chan 131] - Cannot cancel timer 0
>
> ------------------------------------------------------
>
>
> my problem is how can i get ANI number from configuration above ?
>
> where my mistake exactly is ?

mfcr2_skip_category=yes

You cannot get ANI if you skip the category request. Set that to no,
or comment it out.

Also, just for your information, I've never added a variant for
Indonesia, so mfcr2_variant=id does not work, it is probably
defaulting to the ITU variant (mfcr2_variant=itu).

Moises Silva
Senior Software Engineer
Sangoma Technologies Inc. | 100 Renfrew Drive, Suite 100, Markham ON
L3R 9R6 Canada
t. 1 905 474 1990 x128 | e. moy at sangoma.com

-- 
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-r2 mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-r2

--------------------------------------------------------------------
mail2web.com - Microsoft® Exchange solutions from a leading provider -
http://link.mail2web.com/Business/Exchange





More information about the asterisk-r2 mailing list