Greetings, I have a question regarding setting the CallerID, more specifically the Caller Name. In all of my menus I set the current Caller Name so it displays what menu they are in when the phone rings for my users. We run seperate companies so it's easy for us to distinguish how to answer the phones. The problem is, when a call comes in and the CALLERID is not known (ie: nothing is sent and it's a blank string) the call shows up on the phone as 'Unknown' 'Unknown'. I have verified by the use of the NoOP command that the callername is indeed still set right before it dials my users. My Callerid Logs also show up blank for that particular call. If a call comes in and the callerid is sent via the telco, the setting of the callername works as expected. I am using CVS-HEAD current as of April 03, before that I was using Cvs from Feb 16th and it still occured with that as well. We are getting more calls now, so it's beginning to be more of an issue. Anyone have any ideas? Below are relevant sections of the dialplan. Incoming Context Matching DID: [company1-main-did] exten => 4561,1,Wait(2) exten => 4561,2,Answer exten => 4561,3,Goto(company1-main-menu,s,1) Company 1 Main Menu: [company1-main-menu] exten => s,1,Wait(1) exten => s,2,SetCIDName(company1-main) exten => s,3,NoOp(${CALLERIDNAME}) exten => s,4,NoOp(${CALLERIDNUM}) exten => s,5,NoOp(${CALLERID}) exten => s,6,SetAccount(company1-incoming) exten => s,7,Answer exten => s,8,SetMusicOnHold(default) exten => s,9,DigitTimeout(10) exten => s,10,ResponseTimeout(20) exten => s,11,Wait(1) ; say the main menu here exten => s,12,Background(company1/welcometocompany1) exten => s,13,Background(company1/knowparty) exten => s,14,Background(company1/mainmenu) exten => s,15,Background(silence/1) exten => s,16,Background(company1/press9anytime) ; dial 3 from main menu exten => 3,1,Ringing exten => 3,2,Wait(1) exten => 3,3,Goto(company1-billmenu,s,1) Company 1 Call Group: [company1-billmenu] exten => s,1,SetCIDName(company1-bill) exten => s,2,NoOp(${CALLERID}) exten => s,3,Dial(SIP/9999&SIP/9998,24,twr) exten => s,4,Voicemail(u9999) exten => s,5,Hangup exten => s,102,Voicemail(b9999) exten => s,103,Hangup ; invalid or hangup exten => i,1,Playback(pbx-invalid) exten => t,1,Playback(goodbye) exten => t,2,Hangup
Cameron Beattie
2005-Apr-15 11:57 UTC
[Asterisk-Users] Losing CallerName info if no CID sent
AMP allows you to prefix callerid with a name and it seems to work in all situations. You probably don't want to install it but it is possible. I don't understand the code enough to give you much more advice. Regards Cameron ----- Original Message ----- From: "Matt Gibson" <gibson@experthost.com> To: "Asterisk Users Mailing List - Non-Commercial Discussion" <asterisk-users@lists.digium.com> Sent: Tuesday, April 12, 2005 5:18 PM Subject: [Asterisk-Users] Losing CallerName info if no CID sent> Greetings, > > I have a question regarding setting the CallerID, more specifically the > Caller Name. In all of my menus I set the current Caller Name so it > displays what menu they are in when the phone rings for my users. We run > seperate companies so it's easy for us to distinguish how to answer the > phones. > > The problem is, when a call comes in and the CALLERID is not known (ie: > nothing is sent and it's a blank string) the call shows up on the phone as > 'Unknown' 'Unknown'. I have verified by the use of the NoOP command that > the callername is indeed still set right before it dials my users. > My Callerid Logs also show up blank for that particular call. > > If a call comes in and the callerid is sent via the telco, the setting of > the callername works as expected. > > I am using CVS-HEAD current as of April 03, before that I was using Cvs > from Feb 16th and it still occured with that as well. We are getting more > calls now, so it's beginning to be more of an issue. > > Anyone have any ideas? > > Below are relevant sections of the dialplan. > > Incoming Context Matching DID: > > [company1-main-did] > exten => 4561,1,Wait(2) > exten => 4561,2,Answer > exten => 4561,3,Goto(company1-main-menu,s,1) > > Company 1 Main Menu: > > [company1-main-menu] > exten => s,1,Wait(1) > exten => s,2,SetCIDName(company1-main) > exten => s,3,NoOp(${CALLERIDNAME}) > exten => s,4,NoOp(${CALLERIDNUM}) > exten => s,5,NoOp(${CALLERID}) > exten => s,6,SetAccount(company1-incoming) > exten => s,7,Answer > exten => s,8,SetMusicOnHold(default) > exten => s,9,DigitTimeout(10) > exten => s,10,ResponseTimeout(20) > exten => s,11,Wait(1) > > ; say the main menu here > exten => s,12,Background(company1/welcometocompany1) > exten => s,13,Background(company1/knowparty) > exten => s,14,Background(company1/mainmenu) > exten => s,15,Background(silence/1) > exten => s,16,Background(company1/press9anytime) > > ; dial 3 from main menu > exten => 3,1,Ringing > exten => 3,2,Wait(1) > exten => 3,3,Goto(company1-billmenu,s,1) > > > Company 1 Call Group: > > [company1-billmenu] > exten => s,1,SetCIDName(company1-bill) > exten => s,2,NoOp(${CALLERID}) > exten => s,3,Dial(SIP/9999&SIP/9998,24,twr) > exten => s,4,Voicemail(u9999) > exten => s,5,Hangup > exten => s,102,Voicemail(b9999) > exten => s,103,Hangup > > ; invalid or hangup > exten => i,1,Playback(pbx-invalid) > exten => t,1,Playback(goodbye) > exten => t,2,Hangup > > > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users > >