Guido Hecken
2006-Aug-28 15:23 UTC
[asterisk-users] Changes in handling anonymous calls entering asterisk
FYI and to answer my own question, SetCallerPres(allowed) did the trick. exten => <msn>,n,SetCallerPres(allowed) Background: If a call arrives with the flag CallerPres() set to prohib, you can change the CALLERID(num) or CALLERID(name) with the corresponding set function and the cdrs look good, but the sip channel still has something like sip:Unknown@192.168.161.18 in the from field. So the Phone/Softphone only reports about Unknown number and Unknown name. Very annoying, but solved :-) Hope, the above will help someone in the future Guido> Betreff: [asterisk-users] Changes in handling anonymous calls entering asterisk> > 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 shownon> 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 builtby> 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-Cardis> 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@192.168.161.18 to > sip:Unknown@192.168.161.18 . > > > Any help would be really great > > Guido