CallerID: prepending 0 added to caller id

Hi All!

I have leading 0 added to caller id. How can I get rid of it?

Here is the log:

1 received TEI check request for TEI = 127
– Accepting voice call from ‘96527346’ to ‘7204’ on channel 0/1, span 1
– Executing Set(“Zap/1-1”, “DID=7204”) in new stack
– Executing Goto(“Zap/1-1”, “s|1”) in new stack
– Goto (from-zaptel,s,1)
– Executing NoOp(“Zap/1-1”, “Entering from-zaptel with DID == 7204”) in new stack
– Executing Ringing(“Zap/1-1”, “”) in new stack
– Executing Set(“Zap/1-1”, “DID=7204”) in new stack
– Executing NoOp(“Zap/1-1”, “DID is now 7204”) in new stack
– Executing GotoIf(“Zap/1-1”, “1?zapok:notzap”) in new stack
– Goto (from-zaptel,s,8)
– Executing NoOp(“Zap/1-1”, “Is a Zaptel Channel”) in new stack
– Executing Set(“Zap/1-1”, “CHAN=1-1”) in new stack
– Executing Set(“Zap/1-1”, “CHAN=1”) in new stack
– Executing Macro(“Zap/1-1”, “from-zaptel-1|7204|1”) in new stack
– Executing NoOp(“Zap/1-1”, “Entering macro-from-zaptel-1 with DID = 7204”) in new stack
– Executing Set(“Zap/1-1”, “__FROM_DID=s”) in new stack
– Executing GotoIf(“Zap/1-1”, “0 ?cidok”) in new stack
– Executing Set(“Zap/1-1”, “CALLERID(name)=096527346”) in new stack
– Executing NoOp(“Zap/1-1”, “CallerID is “096527346” <096527346>”) in new stack
– Executing Goto(“Zap/1-1”, “timeconditions|1|1”) in new stack
– Goto (timeconditions,1,1)
== Channel ‘Zap/1-1’ jumping out of macro ‘from-zaptel-1’
– Executing GotoIfTime(“Zap/1-1”, “08:30-17:30|mon-fri|1-31|jan-dec?ivr-2|s|1”) in new stack
– Goto (ivr-2,s,1)
– Executing Set(“Zap/1-1”, “LOOPCOUNT=0”) in new stack
– Executing Set(“Zap/1-1”, “__DIR-CONTEXT=default”) in new stack
– Executing Set(“Zap/1-1”, “_IVR_CONTEXT_ivr-2=”) in new stack
– Executing Set(“Zap/1-1”, “_IVR_CONTEXT=ivr-2”) in new stack
– Executing GotoIf(“Zap/1-1”, “0?begin”) in new stack
– Executing Answer(“Zap/1-1”, “”) in new stack
– Executing Wait(“Zap/1-1”, “1”) in new stack
– Executing Set(“Zap/1-1”, “TIMEOUT(digit)=3”) in new stack
– Digit timeout set to 3
– Executing Set(“Zap/1-1”, “TIMEOUT(response)=30”) in new stack
– Response timeout set to 30
– Executing BackGround(“Zap/1-1”, “custom/welcom_loud”) in new stack
– Playing ‘custom/welcom_loud’ (language ‘en’)
2 received TEI check request for TEI = 127
– Channel 0/1, span 1 got hangup request, cause 31
== Spawn extension (ivr-2, s, 10) exited non-zero on ‘Zap/1-1’
– Executing Hangup(“Zap/1-1”, “”) in new stack
== Spawn extension (ivr-2, h, 1) exited non-zero on ‘Zap/1-1’
– Hungup 'Zap/1-1’
asterisk1*CLI>

Thank you!

Hi,

The relevant lines in your log file are:

– Executing GotoIf(“Zap/1-1”, “0 ?cidok”) in new stack
– Executing Set(“Zap/1-1”, “CALLERID(name)=096527346”) in new stack
– Executing NoOp(“Zap/1-1”, “CallerID is “096527346” <096527346>”) in new stack

Do you have anything defined in the extension_custom.conf file?

Who setup the PBX?

Thanks

Graham

Dear Graham,

Thank you for prompt reply!
Prepending zero comes fomr my /etc/asterisk/zapata-BRI-HFC.conf;
Abusing line is
nationalprefix=0
which in my case must be just
nationalprefix=

Thanks again and good luck!

Alex