* You are viewing Posts Tagged ‘caller id’

Callerid Overwrite

Hi all, I’m having issues with overwrite caller id, when I call someone my caller id should be “mycompanyinc” but instead my id shows up as my extension number 101.

this is what i have in sip.conf
type=friend context=sipphones call-limit

Caller Id Not Shown

hello all

i have asterisk 1.8.22 and have problem with Caller ID. this is my scenario:
PSTN –> FXO —> FXS —> phone(223)

when i call from a 223 to another phone, every thing is ok and caller id
(223) is shown in called phone. but when i call from another phone to 223, no caller id is shown and just zero is shown.

if i set callerid345 in chan_dahdi.conf file, when another phone call
223, this number (12345) is shown as caller id instead of zero. but i want to show incoming number as caller id. this is my chan_dahdi.conf file:
;cidsignalling=dtmf cidstart=polarity;; in gozine takhir dar tamas (aghab boodan yek zang) ra az beyn mibarad. callprogress=yes usecallerid=yes hidecallerid=no callwaiting=no transfer=yes echocancel=yes echotraining=yes callerid=asreceived

usecallerid=yes context=pstn-channels channel=>5-8

usecallerid=yes context=phone-channels channel=>1-4

and this is my extensions.conf file:


i searched a lot but found nothing useful:( please help me to solve it.

thanks in advance, SAM

Blacklist/V* – Using Wildcard

Does wildcard “*” character works in asterisk “blacklist”?

I have a telemarketing caller who is rotating caller id but they usually start with “V4-something” eg. V40611320600265
I’ve tried to block using whildcard “*” :
/blacklist/V4* : advertising

but it doesn’t work.

Echo From Channel Bank

I have several adtran 624 with 24 FXS ports hooked up to analog phones. The adtran is connected to asterisk via a channelized T1 into a digium TE820. I have hardware echo canceling enabled on all channels/spans, but there is still echo on the lines for both calls out of the trunk, as well as station-to-station calls. I’ve checked the output of ‘dahdi show channel x’ and see the echo turned on:

dozer2*CLI> dahdi show channel 149
Channel: 149
File Descriptor: 158
Span: 7
Extension: 98300326
Dialing: no Context: from-zaptel Caller ID:
Calling TON: 0
Caller ID subaddress:
Caller ID name:
Mailbox: none Destroy: 0
InAlarm: 0
Signalling Type: FXS Kewlstart Radio: 0
Owner: DAHDI/149-1
Real: DAHDI/149-1
Confno: -1
Propagated Conference: -1
Real in conference: 0
DSP: yes Busy Detection: no TDD: no Relax DTMF: no Dialing/CallwaitCAS: 0/0
Default law: ulaw Fax Handled: no Pulse phone: no Gains (RX/TX): 0.00/0.00
Dynamic Range Compression (RX/TX): 0.00/0.00
DND: no Echo Cancellation:
128 taps
currently ON
Wait for dialtone: 0ms Actual Confinfo: Num/0, Mode/0x0000
Actual Confmute: No Hookstate (FXS only): Onhook

I have echocanceller set to HWEC in dahdi/system.conf for all spans, and I have echocancel=yes in chan_dahdi.cfg

I’ve tried reading some echo cancelation articles, but they seem to be focused on trunks and not on stations. Also, I’m not 100% sure if this is an issue that I should focus on with asterisk, or if it’s something I should first take up with adtran?

I’m using dahdi 2.6.1, asterisk 10.10.0.

Thanks in advance,

Basic GotoIf Question

Hi all,

on Asterisk 1.4.21 I’m trying to block, that means directly hang up on, several inbound Caller ID‘s like this:

exten => 5555,1,GotoIf($["${CALLERID(num)}" != "6666"]?pass)
exten => 5555,n,GotoIf($["${CALLERID(num)}" != "7777"]?pass)
exten => 5555,n,GotoIf($["${CALLERID(num)}" != "8888"]?pass)
exten => 5555,n,Hangup exten => 5555,n(pass),Set… everything from here on works.

When I’m calling with caller ID 6666 I get hung up. When I’m calling from 7777 or 8888 I get connected.

That means on the first GotoIf match the remaining GotoIf’s are ignored. How can I avoid that?

I’m a bit surprised, because “Example 3″ at http://www.voip-info.org/wiki/view/Asterisk+cmd+GotoIf shows that it should actually be working.

A few more questions – the doc link that I just mentioned shows:

” GotoIf(condition?label1[[:label2]) “

What is the [[ before :label2? There are two opening square brackets, but just one ] closing? Is that a typo?

Also, the doc shows:

” GotoIf(condition?[label1]:label2) “

Why is label1 in square brackets and label2 isn’t?

I’m confused. :)

Thanks so much!

Comma Issue With Func_odbc

Hey all

I have an issue that I have been bumping up against. We have some inbound fax services and occasionally an inbound fax that successfully came in would fail to store it’s references in the database.

We are using a function in func_odbc to update a database table. We call the function from the dialplan and pass in all the opt_xxx return values as well as other important values we need to store. The issue we are having is this.

In some cases values such as Caller ID, Remote Station ID and Header Info will have a comma in them. Even though these values are being encoded using SQL_ESC the comma is being interpreted as an extra parameter and messing up the storage values and causing the database insert to fail. Is there a way to encode variables with commas in their values so they can be sent into the func_odbc function as a parameter without causing the process to thing it has more parameters?


If the ${CALLERID(number)} or ${FAXOPT(remotestationid)} or others in the line below have a comma in them then the parameter order pushed buy one and the value is broken up when building the insert statement.

exten =>
localstationid)},${FAXOPT(headerinfo)},${FAXOPT(remotestationid)},${FAXOPT(m axrate)},${FAXOPT(minrate)},${l_storeRate},${FAXOPT(pages)},${FAXOPT(resolut ion)},${FAXOPT(error)},${FAXOPT(status)},${FAXOPT(statusstr)})

Any ideas suggestions on how to over come this. Would be appreciated.

Thanks Bryant Any ideas suggestions on how to over come this. Would be appreciated.ThanksBryant