[Asterisk-Users] problem with callerid ( SetCIDName )

pellegrini at frameweb.it pellegrini at frameweb.it
Mon Aug 8 06:01:41 MST 2005


I don't succed in getting callerId on incoming calls on a zap trunk.

I am using a zaphfc card

When a call is received, one line in asterisk pbx says

  -- Executing SetCIDName("Zap/32-1", "") in new stack

 second parameters should be the caller ID, but it is not set

The callerid is not hidden at source, so I think that is some kind of
setting in zapata.conf

I am using this file (zapata.conf)

****************************************

;## ora l'accesso primario 30 canali
switchtype=euroisdn
pridialplan=local
prilocaldialplan=local
internationalprefix=00
nationalprefix=0
busydetect=no  ; not need on pri
callprogress=no        ; was yes but wiki says experimatley could be
produce hangups
callwaitingcallerid=yes         ; show callerid on callwaitingcalls
echotraining=no
echocancel=no
echocancelwhenbridged=no
overlapdial=yes
immediate=no
language=it
rxgain=0.0
txgain=0.0

callerid=asreceived
usecallerid=yes
usecallingpres=yes
hidecallerid=no
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
callwaiting=yes
restrictcid=no
useincomingcalleridonzaptransfer=yes

group=1
callgroup=11
pickupgroup=11
signalling=pri_cpe
context=from-pstn
channel => 1-15,17-31


;## ora il bri zap-hfc

;
signalling = bri_cpe_ptmp

group = 2
callgroup=11
pickupgroup=11
context=from-pstn
channel => 32-33

****************************************

I am receiving calls of zap group 2.


I saw an error in a function: : ast_yyerror(): syntax error: syntax error;
just before setting CIDName.

The complete lines shown by asterisk are:

****************************************

Aug  8 14:58:26 VERBOSE[6227]:     -- Accepting voice call from '' to
'0X06X9X8X9' on channel 0/1, span 2
Aug  8 14:58:26 DEBUG[6227]: No echocancellation requested
Aug  8 14:58:26 VERBOSE[6227]:     -- Executing SetVar("Zap/32-1",
"FROM_DID=_0X06X9X8X9") in new stack
Aug  8 14:58:26 VERBOSE[6227]:     -- Executing Goto("Zap/32-1",
"ext-local|590|1") in new stack
Aug  8 14:58:26 VERBOSE[6227]:     -- Goto (ext-local,590,1)
Aug  8 14:58:26 VERBOSE[6227]:     -- Executing Macro("Zap/32-1",
"exten-vm|590 at default|590") in new stack
Aug  8 14:58:26 VERBOSE[6227]:     -- Executing SetVar("Zap/32-1",
"FROMCONTEXT=exten-vm") in new stack
Aug  8 14:58:27 VERBOSE[6227]:     -- Executing Macro("Zap/32-1",
"record-enable|590|IN") in new stack
Aug  8 14:58:27 VERBOSE[6227]:     -- Executing GotoIf("Zap/32-1", "0 >
0?2:4") in new stack
Aug  8 14:58:27 VERBOSE[6227]:     -- Goto (macro-record-enable,s,4)
Aug  8 14:58:27 DEBUG[6227]: Expression is '0'
Aug  8 14:58:27 VERBOSE[6227]:     -- Executing GotoIf("Zap/32-1", "0?5:8")
in new stack
Aug  8 14:58:27 VERBOSE[6227]:     -- Goto (macro-record-enable,s,8)
Aug  8 14:58:27 DEBUG[6227]: Expression is '0'
Aug  8 14:58:27 VERBOSE[6227]:     -- Executing GotoIf("Zap/32-1",
"0?9:12") in new stack
Aug  8 14:58:27 VERBOSE[6227]:     -- Goto (macro-record-enable,s,12)
Aug  8 14:58:27 VERBOSE[6227]:     -- Executing DBget("Zap/32-1",
"RecEnable=RECORD-IN/590") in new stack
Aug  8 14:58:27 VERBOSE[6227]:     -- DBget: varname=RecEnable,
family=RECORD-IN, key=590
Aug  8 14:58:27 DEBUG[6227]: Unable to find key '590' in family 'RECORD-IN'
Aug  8 14:58:27 VERBOSE[6227]:     -- DBget: Value not found in database.
Aug  8 14:58:27 VERBOSE[6227]:     -- Executing SetVar("Zap/32-1",
"CALLFILENAME=20050808-145827-asterisk-6227-1123505906.2") in new stack
Aug  8 14:58:27 DEBUG[6227]: Expression is '0'
Aug  8 14:58:27 VERBOSE[6227]:     -- Executing GotoIf("Zap/32-1",
"0?15:99") in new stack
Aug  8 14:58:27 VERBOSE[6227]:     -- Goto (macro-record-enable,s,99)
Aug  8 14:58:27 VERBOSE[6227]:     -- Executing NoOp("Zap/32-1", "NO
RECORDING NEEDED") in new stack
Aug  8 14:58:27 VERBOSE[6227]:     -- Executing Macro("Zap/32-1",
"dial|15|tr|590") in new stack
Aug  8 14:58:27 DEBUG[6227]: Expression is '0'
Aug  8 14:58:27 VERBOSE[6227]:     -- Executing GotoIf("Zap/32-1", "0?4:2")
in new stack
Aug  8 14:58:27 VERBOSE[6227]:     -- Goto (macro-dial,s,2)
Aug  8 14:58:27 WARNING[6227]: ast_yyerror(): syntax error: syntax error;
Input:
 !=

    ^
Aug  8 14:58:27 DEBUG[6227]: Expression is '0'
Aug  8 14:58:27 VERBOSE[6227]:     -- Executing GotoIf("Zap/32-1", "0?4:3")
in new stack
Aug  8 14:58:27 VERBOSE[6227]:     -- Goto (macro-dial,s,3)
Aug  8 14:58:27 VERBOSE[6227]:     -- Executing SetCIDName("Zap/32-1", "")
in new stack
Aug  8 14:58:27 VERBOSE[6227]:     -- Executing AGI("Zap/32-1",
"dialparties.agi") in new stack
Aug  8 14:58:27 VERBOSE[6227]:     -- Launched AGI Script
/var/lib/asterisk/agi-bin/dialparties.agi
Aug  8 14:58:27 VERBOSE[6227]:     --  dialparties.agi: request =
dialparties.agi
Aug  8 14:58:27 VERBOSE[6227]:     --  dialparties.agi: priority = 4
Aug  8 14:58:27 VERBOSE[6227]:     --  dialparties.agi: extension = s
Aug  8 14:58:27 VERBOSE[6227]:     --  dialparties.agi: language = it
Aug  8 14:58:27 VERBOSE[6227]:     --  dialparties.agi: accountcode =
Aug  8 14:58:27 VERBOSE[6227]:     --  dialparties.agi: uniqueid =
asterisk-6227-1123505906.2
Aug  8 14:58:27 VERBOSE[6227]:     --  dialparties.agi: channel = Zap/32-1
Aug  8 14:58:27 VERBOSE[6227]:     --  dialparties.agi: callerid = unknown
Aug  8 14:58:27 VERBOSE[6227]:     --  dialparties.agi: context =
macro-dial
Aug  8 14:58:27 VERBOSE[6227]:     --  dialparties.agi: rdnis = unknown
Aug  8 14:58:27 VERBOSE[6227]:     --  dialparties.agi: type = Zap
Aug  8 14:58:27 VERBOSE[6227]:     --  dialparties.agi: enhanced = 0.0
Aug  8 14:58:27 VERBOSE[6227]:     --  dialparties.agi: dnid = X06X9X8X9
Aug  8 14:58:27 VERBOSE[6227]:   dialparties.agi: Caller ID is not set
Aug  8 14:58:27 VERBOSE[6227]:     --  dialparties.agi: Added extension 590
to extension map


****************************************
thanks in advance for any answer

Andrea


Chi ricevesse questa mail per errore e' gentilmente pregato di cancellarla.

Visitate il sito http://www.frameweb.it




More information about the asterisk-users mailing list