[asterisk-r2] Problem Get ANI Number

Moises Silva moises.silva at gmail.com
Wed Oct 27 10:04:43 CDT 2010


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



More information about the asterisk-r2 mailing list