keywords: ip pbx voip gateway gsm gateway

×

Notice

The forum is in read only mode.
× Questions about A400/800/1200 Analog Interface Card

Caller ID Setting

13 years 11 months ago #5563 by samsalim
Hi..

Thanks... I already attached the Stream file.

Sam
Attachments:
13 years 11 months ago #5564 by xin.liu
Hi:
From your attachment, I find the number you dialed is D8176338116C, your PSTN line use the DTMF,
I suggest you doing the following things:
1) set cidsignalling=dtmf cidstart=polarity
2) set the value of loadzone and defaultzone to the country that your PSTN line followed
3) set the value of country to the country that you PSTN line followed in the file /etc/asterisk/indications.conf
4) open the debug in logger.conf
5) reload wctdm with the command:
modprobe wctdm cidbeforering=1 opermode=COUNTRY(the value is the country that your pstn line followed) debug=100
6) modify your dilaplan
exten => s,1,Wait(3)
exten => s,n,answer
exten => s,n,NoOp(${CALLERID(ALL)})
exten => s,n,Hangup()
7) restart asterisk , then make a incoming call
then, post the debug info on the CLI console to here.

13 years 11 months ago #5577 by samsalim
Here are my settings:
-cidsignalling=dtmf cidstart=polarity
-loadzone=nl defaultzone=nl ( I search on Trixbox forum that indonesia follow nl / Netherlands zone, when I did this, my analog Phone/FXS can not dial out)
-country=nl in the file /etc/asterisk/indications.conf
-#modprobe wctdm cidbeforering=1 opermode=INDONESIA debug=100

Here is the log:

-- Starting simple switch on 'Zap/1-1'
-- Executing [s@from-zaptel:1] NoOp("Zap/1-1", "Entering from-zaptel with DID == ") in new stack
-- Executing [s@from-zaptel:2] NoOp("Zap/1-1", """ <>") in new stack
-- Executing [s@from-zaptel:3] Set("Zap/1-1", "DID=s") in new stack
-- Executing [s@from-zaptel:4] NoOp("Zap/1-1", "DID is now s") in new stack
-- Executing [s@from-zaptel:5] GotoIf("Zap/1-1", "1?zapok:notzap") in new stack
-- Goto (from-zaptel,s,8)
-- Executing [s@from-zaptel:8] NoOp("Zap/1-1", "Is a Zaptel Channel") in new stack
-- Executing [s@from-zaptel:9] Set("Zap/1-1", "CHAN=1-1") in new stack
-- Executing [s@from-zaptel:10] Set("Zap/1-1", "CHAN=1") in new stack
-- Executing [s@from-zaptel:11] Macro("Zap/1-1", "from-zaptel-1|s|1") in new stack
[May 11 05:14:17] WARNING[4123]: app_macro.c:212 _macro_exec: No such context 'macro-from-zaptel-1' for macro 'from-zaptel-1'
-- Executing [s@from-zaptel:12] NoOp("Zap/1-1", "Returned from Macro from-zaptel-1") in new stack
-- Executing [s@from-zaptel:13] Goto("Zap/1-1", "from-pstn|s|1") in new stack
-- Goto (from-pstn,s,1)
-- Executing [s@from-pstn:1] Set("Zap/1-1", "__FROM_DID=s") in new stack
-- Executing [s@from-pstn:2] Gosub("Zap/1-1", "app-blacklist-check|s|1") in new stack
-- Executing [s@app-blacklist-check:1] LookupBlacklist("Zap/1-1", "") in new stack
[May 11 05:14:17] WARNING[4123]: app_lookupblacklist.c:106 lookupblacklist_exec: LookupBlacklist is deprecated. Please use ${BLACKLIST()} instead.
-- Executing [s@app-blacklist-check:2] GotoIf("Zap/1-1", "0?blacklisted") in new stack
-- Executing [s@app-blacklist-check:3] Return("Zap/1-1", "") in new stack
-- Executing [s@from-pstn:3] GotoIf("Zap/1-1", "0 ?cidok") in new stack
-- Executing [s@from-pstn:4] Set("Zap/1-1", "CALLERID(name)=") in new stack
-- Executing [s@from-pstn:5] NoOp("Zap/1-1", "CallerID is "" <>") in new stack
-- Executing [s@from-pstn:6] Set("Zap/1-1", "FAX_RX=disabled") in new stack
-- Executing [s@from-pstn:7] Set("Zap/1-1", "__CALLINGPRES_SV=allowed_not_screened") in new stack
-- Executing [s@from-pstn:8] SetCallerPres("Zap/1-1", "allowed_not_screened") in new stack
-- Executing [s@from-pstn:9] Goto("Zap/1-1", "ext-group|821|1") in new stack
-- Goto (ext-group,821,1)
-- Executing [821@ext-group:1] Macro("Zap/1-1", "user-callerid|") in new stack
-- Executing [s@macro-user-callerid:1] NoOp("Zap/1-1", "user-callerid: ") in new stack
[May 11 05:14:17] DEBUG[4123]: app_macro.c:337 _macro_exec: Executed application: Noop
-- Executing [s@macro-user-callerid:2] Set("Zap/1-1", "AMPUSER=") in new stack
[May 11 05:14:17] DEBUG[4123]: app_macro.c:337 _macro_exec: Executed application: Set
-- Executing [s@macro-user-callerid:3] GotoIf("Zap/1-1", "0?report") in new stack
[May 11 05:14:17] DEBUG[4123]: app_macro.c:337 _macro_exec: Executed application: GotoIf
-- Executing [s@macro-user-callerid:4] ExecIf("Zap/1-1", "1|Set|REALCALLERIDNUM=") in new stack
[May 11 05:14:17] DEBUG[4123]: app_macro.c:337 _macro_exec: Executed application: ExecIf
[May 11 05:14:17] DEBUG[4123]: app_macro.c:378 _macro_exec: Last app: Set|REALCALLERIDNUM=
-- Executing [s@macro-user-callerid:5] NoOp("Zap/1-1", "REALCALLERIDNUM is ") in new stack
[May 11 05:14:17] DEBUG[4123]: app_macro.c:337 _macro_exec: Executed application: Noop
[May 11 05:14:17] DEBUG[4123]: func_db.c:70 function_db_read: DB: DEVICE//user not found in database.
-- Executing [s@macro-user-callerid:6] Set("Zap/1-1", "AMPUSER=") in new stack
[May 11 05:14:17] DEBUG[4123]: app_macro.c:337 _macro_exec: Executed application: Set
[May 11 05:14:17] DEBUG[4123]: func_db.c:70 function_db_read: DB: AMPUSER//cidname not found in database.
-- Executing [s@macro-user-callerid:7] Set("Zap/1-1", "AMPUSERCIDNAME=") in new stack
[May 11 05:14:17] DEBUG[4123]: app_macro.c:337 _macro_exec: Executed application: Set
-- Executing [s@macro-user-callerid:8] GotoIf("Zap/1-1", "1?report") in new stack
-- Goto (macro-user-callerid,s,13)
[May 11 05:14:17] DEBUG[4123]: app_macro.c:337 _macro_exec: Executed application: GotoIf
-- Executing [s@macro-user-callerid:13] NoOp("Zap/1-1", "TTL: ARG1: ") in new stack
[May 11 05:14:17] DEBUG[4123]: app_macro.c:337 _macro_exec: Executed application: Noop
-- Executing [s@macro-user-callerid:14] GotoIf("Zap/1-1", "0?continue") in new stack
[May 11 05:14:17] DEBUG[4123]: app_macro.c:337 _macro_exec: Executed application: GotoIf
-- Executing [s@macro-user-callerid:15] Set("Zap/1-1", "__TTL=64") in new stack
[May 11 05:14:17] DEBUG[4123]: app_macro.c:337 _macro_exec: Executed application: Set
-- Executing [s@macro-user-callerid:16] GotoIf("Zap/1-1", "1?continue") in new stack
-- Goto (macro-user-callerid,s,23)
[May 11 05:14:17] DEBUG[4123]: app_macro.c:337 _macro_exec: Executed application: GotoIf
-- Executing [s@macro-user-callerid:23] NoOp("Zap/1-1", "Using CallerID "" <>") in new stack
[May 11 05:14:17] DEBUG[4123]: app_macro.c:337 _macro_exec: Executed application: Noop
-- Executing [821@ext-group:2] GotoIf("Zap/1-1", "1?skipdb") in new stack
-- Goto (ext-group,821,4)
-- Executing [821@ext-group:4] Set("Zap/1-1", "__NODEST=") in new stack
-- Executing [821@ext-group:5] Set("Zap/1-1", "__BLKVM_OVERRIDE=BLKVM/821/Zap/1-1") in new stack
-- Executing [821@ext-group:6] Set("Zap/1-1", "__BLKVM_BASE=821") in new stack
-- Executing [821@ext-group:7] Set("Zap/1-1", "DB(BLKVM/821/Zap/1-1)=TRUE") in new stack
-- Executing [821@ext-group:8] Set("Zap/1-1", "RRNODEST=") in new stack
-- Executing [821@ext-group:9] Set("Zap/1-1", "__NODEST=821") in new stack
-- Executing [821@ext-group:10] Set("Zap/1-1", "RecordMethod=Group") in new stack
-- Executing [821@ext-group:11] Macro("Zap/1-1", "record-enable|53821-53830-101|Group") in new stack
-- Executing [s@macro-record-enable:1] GotoIf("Zap/1-1", "0?2:4") in new stack
-- Goto (macro-record-enable,s,4)
[May 11 05:14:17] DEBUG[4123]: app_macro.c:337 _macro_exec: Executed application: GotoIf
-- Executing [s@macro-record-enable:4] AGI("Zap/1-1", "recordingcheck|20100511-051417|1273569257.11") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
recordingcheck|20100511-051417|1273569257.11: Recording enable for 53821
recordingcheck|20100511-051417|1273569257.11: CALLFILENAME=g53821-20100511-051417-1273569257.11
-- AGI Script recordingcheck completed, returning 0
[May 11 05:14:17] DEBUG[4123]: app_macro.c:337 _macro_exec: Executed application: AGI
-- Executing [s@macro-record-enable:999] MixMonitor("Zap/1-1", "g53821-20100511-051417-1273569257.11.wav") in new stack
[May 11 05:14:17] DEBUG[4123]: app_macro.c:337 _macro_exec: Executed application: MixMonitor
-- Executing [821@ext-group:12] Set("Zap/1-1", "RingGroupMethod=firstavailable") in new stack
-- Executing [821@ext-group:13] Macro("Zap/1-1", "dial|40|tr|53821-53830-101") in new stack
-- Executing [s@macro-dial:1] GotoIf("Zap/1-1", "1?dial") in new stack
-- Goto (macro-dial,s,3)
[May 11 05:14:17] DEBUG[4123]: app_macro.c:337 _macro_exec: Executed application: GotoIf
-- Executing [s@macro-dial:3] AGI("Zap/1-1", "dialparties.agi") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/dialparties.agi
== Begin MixMonitor Recording Zap/1-1
dialparties.agi: Starting New Dialparties.agi
== Parsing '/etc/asterisk/manager.conf': Found
== Parsing '/etc/asterisk/manager_additional.conf': Found
== Parsing '/etc/asterisk/manager_custom.conf': Found
== Manager 'admin' logged on from 127.0.0.1
dialparties.agi: Caller ID name is 'unknown' number is 'unknown'
dialparties.agi: Methodology of ring is 'firstavailable'
-- dialparties.agi: Added extension 53821 to extension map
-- dialparties.agi: Added extension 53830 to extension map
-- dialparties.agi: Added extension 101 to extension map
-- dialparties.agi: Extension 53821 cf is disabled
-- dialparties.agi: Extension 53830 cf is disabled
-- dialparties.agi: Extension 101 cf is disabled
-- dialparties.agi: Extension 53821 do not disturb is disabled
-- dialparties.agi: Extension 53830 do not disturb is disabled
-- dialparties.agi: Extension 101 do not disturb is disabled
-- dialparties.agi: Filtered ARG3: 53821-53830-101
== Manager 'admin' logged off from 127.0.0.1
-- AGI Script dialparties.agi completed, returning 0
[May 11 05:14:17] DEBUG[4123]: app_macro.c:337 _macro_exec: Executed application: AGI
-- Executing [s@macro-dial:20] NoOp("Zap/1-1", "Returned from dialparties with hunt groups to dial ") in new stack
[May 11 05:14:17] DEBUG[4123]: app_macro.c:337 _macro_exec: Executed application: NoOp
-- Executing [s@macro-dial:21] Set("Zap/1-1", "HuntLoop=0") in new stack
[May 11 05:14:17] DEBUG[4123]: app_macro.c:337 _macro_exec: Executed application: Set
-- Executing [s@macro-dial:22] GotoIf("Zap/1-1", "1?a30") in new stack
-- Goto (macro-dial,s,26)
[May 11 05:14:17] DEBUG[4123]: app_macro.c:337 _macro_exec: Executed application: GotoIf
-- Executing [s@macro-dial:26] Set("Zap/1-1", "HuntMember=HuntMember0") in new stack
[May 11 05:14:17] DEBUG[4123]: app_macro.c:337 _macro_exec: Executed application: Set
-- Executing [s@macro-dial:27] GotoIf("Zap/1-1", "0?a32:a35") in new stack
-- Goto (macro-dial,s,31)
[May 11 05:14:17] DEBUG[4123]: app_macro.c:337 _macro_exec: Executed application: GotoIf
-- Executing [s@macro-dial:31] GotoIf("Zap/1-1", "0?a36:a50") in new stack
-- Goto (macro-dial,s,44)
[May 11 05:14:17] DEBUG[4123]: app_macro.c:337 _macro_exec: Executed application: GotoIf
-- Executing [s@macro-dial:44] DBdel("Zap/1-1", "CALLTRACE/") in new stack
[May 11 05:14:17] WARNING[4123]: app_db.c:119 del_exec: The DBdel application has been deprecated in favor of the DB_DELETE dialplan function!
-- DBdel: family=CALLTRACE, key=
-- DBdel: Error deleting key from database.
[May 11 05:14:17] DEBUG[4123]: app_macro.c:337 _macro_exec: Executed application: DBdel
-- Executing [s@macro-dial:45] Goto("Zap/1-1", "s|a42") in new stack
-- Goto (macro-dial,s,38)
[May 11 05:14:17] DEBUG[4123]: app_macro.c:337 _macro_exec: Executed application: Goto
-- Executing [s@macro-dial:38] Dial("Zap/1-1", "ZAP/8|40|trM(auto-blkvm)") in new stack
-- Called 8
-- Zap/8-1 is ringing
-- Zap/8-1 is ringing
== Parsing '/etc/asterisk/manager.conf': Found
== Parsing '/etc/asterisk/manager_additional.conf': Found
== Parsing '/etc/asterisk/manager_custom.conf': Found
== Manager 'admin' logged on from 127.0.0.1
== Manager 'admin' logged off from 127.0.0.1
-- Zap/8-1 is ringing
-- Zap/8-1 is ringing
-- Zap/8-1 is ringing
-- Hungup 'Zap/8-1'
== Spawn extension (macro-dial, s, 38) exited non-zero on 'Zap/1-1' in macro 'dial'
== Spawn extension (macro-dial, s, 38) exited non-zero on 'Zap/1-1'
-- Executing [h@macro-dial:1] Macro("Zap/1-1", "hangupcall") in new stack
-- Executing [s@macro-hangupcall:1] ResetCDR("Zap/1-1", "w") in new stack
[May 11 05:14:36] DEBUG[4123]: app_macro.c:337 _macro_exec: Executed application: ResetCDR
-- Executing [s@macro-hangupcall:2] NoCDR("Zap/1-1", "") in new stack
[May 11 05:14:36] DEBUG[4123]: app_macro.c:337 _macro_exec: Executed application: NoCDR
-- Executing [s@macro-hangupcall:3] GotoIf("Zap/1-1", "1?skiprg") in new stack
-- Goto (macro-hangupcall,s,6)
[May 11 05:14:36] DEBUG[4123]: app_macro.c:337 _macro_exec: Executed application: GotoIf
-- Executing [s@macro-hangupcall:6] GotoIf("Zap/1-1", "0?skipblkvm") in new stack
[May 11 05:14:36] DEBUG[4123]: app_macro.c:337 _macro_exec: Executed application: GotoIf
-- Executing [s@macro-hangupcall:7] NoOp("Zap/1-1", "Cleaning Up Block VM Flag: BLKVM/821/Zap/1-1") in new stack
[May 11 05:14:36] DEBUG[4123]: app_macro.c:337 _macro_exec: Executed application: Noop
-- Executing [s@macro-hangupcall:8] DBdel("Zap/1-1", "BLKVM/821/Zap/1-1") in new stack
-- DBdel: family=BLKVM, key=821/Zap/1-1
[May 11 05:14:36] DEBUG[4123]: app_macro.c:337 _macro_exec: Executed application: DBDel
-- Executing [s@macro-hangupcall:9] GotoIf("Zap/1-1", "1?theend") in new stack
-- Goto (macro-hangupcall,s,11)
[May 11 05:14:36] DEBUG[4123]: app_macro.c:337 _macro_exec: Executed application: GotoIf
-- Executing [s@macro-hangupcall:11] Hangup("Zap/1-1", "") in new stack
== Spawn extension (macro-hangupcall, s, 11) exited non-zero on 'Zap/1-1' in macro 'hangupcall'
== Spawn extension (macro-hangupcall, s, 11) exited non-zero on 'Zap/1-1'
-- Hungup 'Zap/1-1'
== End MixMonitor Recording Zap/1-1
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

and the dial plan from Trixbox:
entension.conf
[macro-fixcid]
exten => s,1,Set(CALLERID(ALL)=${CALLERID(ALL)})

; Ring groups of phones
; ARGS: comma separated extension list
; 1 - Ring Group Strategy
; 2 - ringtimer
; 3 - prefix
; 4 - extension list
[macro-rg-group]
exten => s,1,Macro(user-callerid,SKIPTTL) ; already called from ringgroup
exten => s,2,GotoIf($["${CALLERID(ALL):0:${LEN(${RGPREFIX})}}" != "${RGPREFIX}"]?4:3) ; check for old prefix
exten => s,3,Set(CALLERID(ALL)=${CALLERID(ALL):${LEN(${RGPREFIX})}}) ; strip off old prefix
exten => s,4,Set(RGPREFIX=${ARG3}) ; set new prefix
exten => s,5,Set(CALLERID(ALL)=${RGPREFIX}${CALLERID(ALL)}) ; add prefix to callerid name
exten => s,6,Set(RecordMethod=Group) ; set new prefix
exten => s,7,Macro(record-enable,${MACRO_EXTEN},${RecordMethod})
exten => s,8,Set(RingGroupMethod=${ARG1}) ;
exten => s,9,Macro(dial,${ARG2},${DIAL_OPTIONS},${ARG4})
exten => s,10,Set(RingGroupMethod='') ;


extensions_additional.conf
[macro-user-callerid]
include => macro-user-callerid-custom
exten => s,1,Noop(user-callerid: ${CALLERID(name)} ${CALLERID(number)})
exten => s,n,Set(AMPUSER=${IF($["foo${AMPUSER}" = "foo"]?${CALLERID(number)}:${AMPUSER})})
exten => s,n,GotoIf($["${CHANNEL:0:5}" = "Local"]?report)
exten => s,n,ExecIf($["${REALCALLERIDNUM:1:2}" = ""],Set,REALCALLERIDNUM=${CALLERID(number)})
exten => s,n(start),Noop(REALCALLERIDNUM is ${REALCALLERIDNUM})
exten => s,n,Set(AMPUSER=${DB(DEVICE/${REALCALLERIDNUM}/user)})
exten => s,n,Set(AMPUSERCIDNAME=${DB(AMPUSER/${AMPUSER}/cidname)})
exten => s,n,GotoIf($["x${AMPUSERCIDNAME:1:2}" = "x"]?report)
exten => s,n,Set(AMPUSERCID=${IF($["${DB_EXISTS(AMPUSER/${AMPUSER}/cidnum)}" = "1"]?${DB_RESULT}:${AMPUSER})})
exten => s,n,Set(CALLERID(all)="${AMPUSERCIDNAME}" <${AMPUSERCID}>)
exten => s,n,Set(REALCALLERIDNUM=${DB(DEVICE/${REALCALLERIDNUM}/user)})
exten => s,n,ExecIf($["${DB(AMPUSER/${AMPUSER}/language)}" != ""],Set,CHANNEL(language)=${DB(AMPUSER/${AMPUSER}/language)})
exten => s,n(report),Noop(TTL: ${TTL} ARG1: ${ARG1})
exten => s,n,GotoIf($[ "${ARG1}" = "SKIPTTL" ]?continue)
exten => s,n(report2),Set(__TTL=${IF($["foo${TTL}" = "foo"]?64:$[ ${TTL} - 1 ])})
exten => s,n,GotoIf($[ ${TTL} > 0 ]?continue)
exten => s,n,Wait(${RINGTIMER})
exten => s,n,Answer
exten => s,n,Wait(2)
exten => s,n,Playback(im-sorry&an-error-has-occured&with&call-forwarding)
exten => s,n,Macro(hangupcall,)
exten => s,n,Congestion(20)
exten => s,n(continue),Noop(Using CallerID ${CALLERID(all)})
exten => h,1,Macro(hangupcall,)

I set loadzone and defaultzone=us, Analog Phone / FXS can dial out normally. I have difficulty to choose my country zone ( id for indonesia), there is no "id" zone, do You have suggestion for this ? It must be a suittable zone for Indonesia, maybe us or in, I don't get this information yet.

Regards,

sam

i] Last edited by samsalim at 2010-5-11 18:50 [/i
13 years 11 months ago #5578 by xin.liu
Hi:
From your post, i find some line:
-loadzone=nl defaultzone=nl ( I search on Trixbox forum that indonesia follow nl / Netherlands zone)
-country=nl in the file /etc/asterisk/indications.conf
-#modprobe wctdm cidbeforering=1 opermode=INDONESIA debug=100
why the country is different?
please send you SSH to me, i will check it for you.

Time to create page: 0.037 seconds
Powered by Kunena Forum