Ricardo Carvalho
2007-Jan-26 12:31 UTC
[asterisk-users] Only secretary can call the boss, all others only reach the secretary when dial the boss extension
Dear all, How may I configure my extensions.conf so that only the boss's secretary can call the boss through his extension, all others when dial his extension only makes the boss's secretary phone ring, not his. If she wants, she can transfer the incoming call to the boss dialling his extension. I've tried the following, but it doesn't work: exten => _boss_extension/callerid_secretary,1,Dial(SIP/boss_extension) exten => _boss_extension,1,Dial(SIP/secretary_extension) This doesn't work because when the secretary tries to transfer the call to the boss (using her phone's transfer key, not #), one REFER SIP message is sent back to the caller's phone providing him the new address for whom the next INVITE should be sent. That INVITE is sent, but when reaches Asterisk, that INVITE matches this line: exten => _boss_extension,1,Dial(SIP/secretary_extension) and not this one: exten => _boss_extension/callerid_secretary,1,Dial(SIP/boss_extension) Any ideas of how may I solve this issue? Regards, Ricardo.
Jonathan k. Creasy
2007-Jan-26 12:38 UTC
[asterisk-users] Only secretary can call the boss, all others only reach the secretary when dial the boss extension
Why don't you just give the secretary the boss' REAL extension and give a different extension to the world that just rings the secretary? -jonathan> -----Original Message----- > From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users- > bounces@lists.digium.com] On Behalf Of Ricardo Carvalho > Sent: Friday, January 26, 2007 12:13 PM > To: Asterisk Users Mailing List - Non-Commercial Discussion > Subject: [asterisk-users] Only secretary can call the boss, all others > only reach the secretary when dial the boss extension > > Dear all, > > How may I configure my extensions.conf so that only the boss's secretary > can call the boss through his extension, all others when dial his > extension only makes the boss's secretary phone ring, not his. If she > wants, she can transfer the incoming call to the boss dialling his > extension. > > I've tried the following, but it doesn't work: > > exten => _boss_extension/callerid_secretary,1,Dial(SIP/boss_extension) > exten => _boss_extension,1,Dial(SIP/secretary_extension) > > This doesn't work because when the secretary tries to transfer the call > to the boss (using her phone's transfer key, not #), one REFER SIP > message is sent back to the caller's phone providing him the new address > for whom the next INVITE should be sent. That INVITE is sent, but when > reaches Asterisk, that INVITE matches this line: > > exten => _boss_extension,1,Dial(SIP/secretary_extension) > > and not this one: > > exten => _boss_extension/callerid_secretary,1,Dial(SIP/boss_extension) > > > > Any ideas of how may I solve this issue? > Regards, > Ricardo. > _______________________________________________ > --Bandwidth and Colocation provided by Easynews.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users > > -- > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.5.432 / Virus Database: 268.17.12/653 - Release Date: 1/26/2007 > 11:11 AM >-- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.432 / Virus Database: 268.17.12/653 - Release Date: 1/26/2007 11:11 AM
Time Bandit
2007-Jan-26 13:48 UTC
[asterisk-users] Only secretary can call the boss, all others only reach the secretary when dial the boss extension
> How may I configure my extensions.conf so that only the boss's secretary > can call the boss through his extension, all others when dial his > extension only makes the boss's secretary phone ring, not his. If she > wants, she can transfer the incoming call to the boss dialling his > extension.the keyword is "context" boss extension : 4321 secretary exten : 4322 in sip.conf for the secretary config, put her phone in the context "secretary-context" for other callers (PSTN lines, other office exten, etc) put them in context "normal-people-context" [normal-people-context] exten => 4321,1,Dial(SIP/4322) [secretary-context] exten => 4321,1,Dial(SIP/4321) like this, when someone dials 4321, they will reach his secretary, except when the secretary dials it, she will reach him. This is just an example written from the top of my head on a friday afternoon so it is not tested, etc :) hth