Re: [asterisk-users] Set(CALLERID(num-pres)=prohib) / AGI version
In article <51127171.2030...@ovm-group.com>, Thorsten Göllner wrote: > > Am 06.02.2013 16:02, schrieb Steve Edwards: > > On Wed, 6 Feb 2013, Thorsten Göllner wrote: > > > >> I tried to implement it into my AGI-Script, but with no success. Can > >> please anyone give me a hint, what is wrong with it: > >> Set CALLERID(num-pres) prohib > >> or > >> Set CALLERID(num-pres)=prohib > >> > >> Both commands lead into: > >> 510 Invalid or unknown command > > > > I'm just a 1.2 Luddite, but... > > > > Who's library/framework are you using? > > > > Neither of the commands you show above are valid AGI commands. > > > > Curiously, I've never tried to set caller ID (or its options) in an > > AGI, I've only set channel variables that ended up setting CID in the > > dialplan. > > > > If you were reading the variables, the command would look like: > > > > 'get full variable "${CALLERID(num-pres)}"' > > > > Maybe you could try something like: > > > > 'set variable "CALLERID(num-pres)" "prohib"' > > > > (I don't see a 'set full variable' AGI command.) > > > > How about a console log with verbose and debug cranked up and with AGI > > debug enabled? > > Thanks. But I found the right syntax now: > Exec Set CALLERID(num-pres)=prohib > > This AGI-Command leads into "200 OK" and I can verify, that outgoing > calls (SIP and DAHDI) are anonymous. Yes, that will work, but it is executing the Set() dialplan application. AGI has a built-in command to set a variable, and it will be more efficient to use that. I can confirm the following AGI syntax will work, as I have used it to set other function-based values: SET VARIABLE CALLERID(num-pres) "prohib" Cheers Tony -- Tony Mountifield Work: t...@softins.co.uk - http://www.softins.co.uk Play: t...@mountifield.org - http://tony.mountifield.org -- _ -- 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
Re: [asterisk-users] Set(CALLERID(num-pres)=prohib) / AGI version
Am 06.02.2013 16:02, schrieb Steve Edwards: On Wed, 6 Feb 2013, Thorsten Göllner wrote: I tried to implement it into my AGI-Script, but with no success. Can please anyone give me a hint, what is wrong with it: Set CALLERID(num-pres) prohib or Set CALLERID(num-pres)=prohib Both commands lead into: 510 Invalid or unknown command I'm just a 1.2 Luddite, but... Who's library/framework are you using? Neither of the commands you show above are valid AGI commands. Curiously, I've never tried to set caller ID (or its options) in an AGI, I've only set channel variables that ended up setting CID in the dialplan. If you were reading the variables, the command would look like: 'get full variable "${CALLERID(num-pres)}"' Maybe you could try something like: 'set variable "CALLERID(num-pres)" "prohib"' (I don't see a 'set full variable' AGI command.) How about a console log with verbose and debug cranked up and with AGI debug enabled? Thanks. But I found the right syntax now: Exec Set CALLERID(num-pres)=prohib This AGI-Command leads into "200 OK" and I can verify, that outgoing calls (SIP and DAHDI) are anonymous. -Thorsten- -- _ -- 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
Re: [asterisk-users] Set(CALLERID(num-pres)=prohib) / AGI version
On Wed, 6 Feb 2013, Thorsten Göllner wrote: I tried to implement it into my AGI-Script, but with no success. Can please anyone give me a hint, what is wrong with it: Set CALLERID(num-pres) prohib or Set CALLERID(num-pres)=prohib Both commands lead into: 510 Invalid or unknown command I'm just a 1.2 Luddite, but... Who's library/framework are you using? Neither of the commands you show above are valid AGI commands. Curiously, I've never tried to set caller ID (or its options) in an AGI, I've only set channel variables that ended up setting CID in the dialplan. If you were reading the variables, the command would look like: 'get full variable "${CALLERID(num-pres)}"' Maybe you could try something like: 'set variable "CALLERID(num-pres)" "prohib"' (I don't see a 'set full variable' AGI command.) How about a console log with verbose and debug cranked up and with AGI debug enabled? -- Thanks in advance, - Steve Edwards sedwa...@sedwards.com Voice: +1-760-468-3867 PST Newline Fax: +1-760-731-3000-- _ -- 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
[asterisk-users] Set(CALLERID(num-pres)=prohib) / AGI version
Hi, on this site http://www.voip-info.org/wiki/view/Asterisk+func+callerid you can read, that since Atserisk 1.8 the command (in dialplan) to hide the caller id is: Set(CALLERID(num-pres)=prohib) I tried to implement it into my AGI-Script, but with no success. Can please anyone give me a hint, what is wrong with it: Set CALLERID(num-pres) prohib or Set CALLERID(num-pres)=prohib Both commands lead into: 510 Invalid or unknown command Besr regards -Thorsten- -- _ -- 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