I am trying to setup a couple of virtual pbx's off of my one may asterisk box. So far I have been able to segment most everything via the Dial plan. My only question/problem has to do with the # Transfer function. I had set up # Transfers prior to segmenting the dial plan, and I cannot remember how I was able to specify which context to use when the user presses #. I haven't been able to find it on the wiki or via google. Does anyone know off the top of their head? Thanks, Robert Jackson
It would be whatever context you set in zapata.conf, sip.conf, iax.conf, etc... depending on what protocol you are using. zapata.conf ===========signalling=fxo_ks context=default <----- right here channel=>1 sip.conf ===========[grandstream1] type=friend context=from-sip <----- right here -Seth On Tue, 2004-07-20 at 22:03, Robert Jackson wrote:> I am trying to setup a couple of virtual pbx's off of my one may > asterisk box. So far I have been able to segment most everything via > the Dial plan. My only question/problem has to do with the # Transfer > function. I had set up # Transfers prior to segmenting the dial plan, > and I cannot remember how I was able to specify which context to use > when the user presses #. I haven't been able to find it on the wiki or > via google. Does anyone know off the top of their head? > > Thanks, > > Robert Jackson > _______________________________________________ > 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-- Seth Remington SaberLogic, LLC 661-B Weber Drive Wadsworth, Ohio 44281 Phone: (330)335-6442 Fax: (330)336-8559
I need to be able to specify the transfer context from the dialplan. The reason for this is that I am sharing a single receptionist between multiple companies and I need to run a Specific script depending onwhere each call is transferred to. I originally set her up in her own context via sip.conf, but then calls that originate from her also get logged. I thought that there was a variable I could set, but I can't seem to find it. Thanks for your help, Robert Jackson
I hate responding to my own post, but after I posted I looked into the code behind the #transfers and it appears there is already something there for this purpose. I believe tha the channel variable TRANSFER_CONTEXT will set the context to use exactly how I wanted. Here is the text from the changelog: 2004-07-23 22:29 anthm * res/res_features.c (1.2): added support to be able to set the channel var TRANSFER_CONTEXT so when a #transfer is executed it uses ${TRANSFER_CONTEXT} from transferree else from transferer else it acts as always -anthm I just wanted to get this out on the list in case anyone else was interested in a solution. Robert Jackson> -----Original Message----- > From: Robert Jackson > Sent: Tuesday, September 28, 2004 12:36 PM > To: asterisk-users@lists.digium.com > Subject: [Asterisk-Users] # Transfer Context > > > I need to be able to specify the transfer context from the > dialplan. The reason for this is that I am sharing a single > receptionist between multiple companies and I need to run a > Specific script depending onwhere each call is transferred > to. I originally set her up in her own context via sip.conf, > but then calls that originate from her also get logged. > > I thought that there was a variable I could set, but I can't > seem to find it. > > Thanks for your help, > > Robert Jackson > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/as> terisk-users > To > UNSUBSCRIBE or update options visit: >http://lists.digium.com/mailman/listinfo/asterisk-users