[asterisk-users] Changes in handling anonymous calls entering ast erisk

Guido Hecken guido.hecken at gwsnettech.de
Mon Aug 28 09:08:58 MST 2006


Hi list,

after too much time of googling and trial and error, I need some help.

In older Asterisk Versions 0.9 - 1.0 (Asterisk CVS-HEAD-02/13/05-15:26:28)
we used this setup:

extensions.conf

exten => 876779,1,AGI,reverse.agi| ${CALLERIDNUM}
exten => 876779,2,SetCIDName(Privat ${LONGNAME})
exten => 876779,3,SetCIDNum(${CALLERIDNUM})
exten => 876779,4,Dial(SIP/6303&SIP/6301&SIP/6302&SIP/6304,120,tTo)
exten => 876779,5,SetLanguage(de)
exten => 876779,6,Voicemail(6301)
exten => 876779,7,Hangup

Everything works great, calls coming in with an existing CIDNUM are shown on
the display (SNOM 360) with Privat somename <somenumber>.
Calls without CIDNUM are displayed Privat <anonymous>.

The Problem in a newer Asterisk 1.2 Version (SVN-branch-1.2-r30874 built by
root @ xxxxx on a i686 running Linux on 2006-05-31 12:22:14 UTC):

With the above config, all Clients (SNOM 190, SNOM 360, SJPhone) only show 
unknown for both, name and number, if the CIDNUM sent from the ISDN-Card is
empty. Although the CDRs seem to be correct after tweaking with some 
GotoIf($["${CALLERID(num)}" = ""...and do some SetCALLERID(num)=anonymous,
it only works, if a CIDNUM is sent from the ISDN.

CDR With CIDNUM and SNOM Display ok:

"","02244872000","2507017","capi-in","""Privat-gwsNetTech Guido Hecken""
<02244872000>","CAPI/ISDN1/2507017-44","SIP/19-1edc","Dial","SIP/19|65|tT","
2006-08-28 16:05:22",,"2006-08-28 16:05:26",4,0,"NO ANSWER","DOCUMENTATION"


CDR Without CIDNUM and SNOM Display unknown:

"","anonymous","2507017","capi-in","""Privat-anonymous""
<anonymous>","CAPI/ISDN1/2507017-4e","SIP/19-9ee0","Dial","SIP/19|65|tTo","2
006-08-28 16:34:59",,"2006-08-28 16:35:03",4,0,"NO ANSWER","DOCUMENTATION"

I also noticed, that the Dial String displayed in Sjphone changed between
the older and newer * versions from sip:asterisk at 192.168.161.18 to
sip:Unknown at 192.168.161.18 .


Any help would be really great

Guido



More information about the asterisk-users mailing list