Hi I am currently using 1.2.x and 1.4.x behind OpenSER. One of the things I do on INVITES is to re-authenticate the user from OpenSER. Then when the INVITE gets passed to Asterisk I capture the AUTH to a variable in the dialplan and pass to an AGI script. I am now trying to set the same thing up in 1.6 However because the argument delimter in 1.6 has changed from pipe to comma this breaks as the AUTH line is also comma delimited. Thus the AGI sees the AUTH as extra arguments instead of a single argument. As the AUTH may contain varying number of arguments I need a new way for a my AGI to access this data. Does anyone have any ideas how I might go about this? Regards Jon -- Jon Farmer Tel 07795 118140
-----Original Message----- From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Jon Farmer Sent: Thursday, September 16, 2010 1:44 PM To: asterisk-users at lists.digium.com Subject: [asterisk-users] AGI Delimiter in 1.6 Hi I am currently using 1.2.x and 1.4.x behind OpenSER. One of the things I do on INVITES is to re-authenticate the user from OpenSER. Then when the INVITE gets passed to Asterisk I capture the AUTH to a variable in the dialplan and pass to an AGI script. I am now trying to set the same thing up in 1.6 However because the argument delimter in 1.6 has changed from pipe to comma this breaks as the AUTH line is also comma delimited. Thus the AGI sees the AUTH as extra arguments instead of a single argument. As the AUTH may contain varying number of arguments I need a new way for a my AGI to access this data. Does anyone have any ideas how I might go about this? Regards Jon Two suggestions; #1. "escape" the , as \, #2. quote the string so 1,2,3 is "1,2,3"
On Thu, Sep 16, 2010 at 07:44:23PM +0100, Jon Farmer wrote:> Hi > > I am currently using 1.2.x and 1.4.x behind OpenSER. One of the things > I do on INVITES is to re-authenticate the user from OpenSER. Then when > the INVITE gets passed to Asterisk I capture the AUTH to a variable in > the dialplan and pass to an AGI script. I am now trying to set the > same thing up in 1.6 However because the argument delimter in 1.6 has > changed from pipe to comma this breaks as the AUTH line is also comma > delimited. Thus the AGI sees the AUTH as extra arguments instead of a > single argument. As the AUTH may contain varying number of arguments I > need a new way for a my AGI to access this data. > > Does anyone have any ideas how I might go about this?For an interim fix, setting res_agi=1.4 in the [compat] section of asterisk.conf should work. See UPGRADE-1.6.txt . -- Barry
On 16 September 2010 22:23, Barry Miller <asterisk-users at notanet.net> wrote:> For an interim fix, setting res_agi=1.4 in the [compat] section of > asterisk.conf should work. ?See UPGRADE-1.6.txt .I have tried this but it still complains about the pipe not being a comma. Regards Jon -- Jon Farmer Tel 07795 118140
On 09/21/2010 04:22 PM, Jon Farmer wrote:> On 16 September 2010 22:23, Barry Miller<asterisk-users at notanet.net> wrote: > > >> For an interim fix, setting res_agi=1.4 in the [compat] section of >> asterisk.conf should work. See UPGRADE-1.6.txt . >> > I have tried this but it still complains about the pipe not being a comma. > > Regards > > Jon >Hello, in asterisk 1.4 this works : exten => s,n,Queue(queuename,,,,timeout,test.agi^VAR) in asterisk 1.6 this works : exten => s,n,Queue(queuename,,,,timeout,"test.agi,VAR") So you need " ". Jonas.
Hi, I fixed it in the end by adding the sip headers I was interested in as extra "x" headers in the openser config. Then just capturing these in the asterisk dialplan as variables. Simples. Regards Jon On 21 Sep 2010 16:03, "Jonas Kellens" <jonas.kellens at telenet.be> wrote:> On 09/21/2010 04:22 PM, Jon Farmer wrote: >> On 16 September 2010 22:23, Barry Miller<asterisk-users at notanet.net>wrote:>> >> >>> For an interim fix, setting res_agi=1.4 in the [compat] section of >>> asterisk.conf should work. See UPGRADE-1.6.txt . >>> >> I have tried this but it still complains about the pipe not being acomma.>> >> Regards >> >> Jon >> > > Hello, > > in asterisk 1.4 this works : > > exten => s,n,Queue(queuename,,,,timeout,test.agi^VAR) > > in asterisk 1.6 this works : > > exten => s,n,Queue(queuename,,,,timeout,"test.agi,VAR") > > So you need " ". > > > Jonas. > > -- > _____________________________________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > New to Asterisk? Join us for a live introductory webinar every Thurs: > http://www.asterisk.org/hello > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users-------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100922/e745beac/attachment.htm