Re: [asterisk-users] Is set_var allowed with pjsip_wizard.conf ? [SOLVED])
2016-04-25 22:06 GMT+02:00 George Joseph: > > > On Mon, Apr 25, 2016 at 1:49 PM, Olivier wrote: > >> >> >> 2016-04-25 21:16 GMT+02:00 George Joseph : >> >>> >>> >>> On Mon, Apr 25, 2016 at 11:11 AM, Olivier wrote: >>> 2016-04-25 18:14 GMT+02:00 George Joseph : > > > On Mon, Apr 25, 2016 at 10:00 AM, George Joseph > wrote: > >> >> >> On Mon, Apr 25, 2016 at 9:29 AM, Olivier wrote: >> >>> Hello, >>> >>> I've just discovered PJSIP 's support of set_var setting in >>> pjsip.conf. >>> Is this setting also supported in pjsip_wizard.conf ? >>> On a fresh 13.8.2, it doesn't seem but I may have missed somthing. >>> >> >> I thought it did. Let me check. >> > > It's working for me... > > [1000] > type = wizard > endpoint/set_var = x=t > > > pjsip show endpoint 1000 > ... > trust_id_outbound: true > use_avpf : false > use_ptime: false > user_eq_phone: false > voicemail_extension : > x: t > > > I was looking for a set_var=x setting while I should have looked for a x setting. Thanks for correcting me ! Anyway, using this set_var capability, how do I access x's value in the dialplan ? Using lines bellow doesn't produce anything useful: same = n,Verbose(0,x is ${x}) same = n,Verbose(0,CHANNEL(x) is ${CHANNEL(x)}) same = n,Verbose(0,${PJSIP_ENDPOINT(1000,x)} >>> I don't think you can do it with channel but I actually don't remember >>> (but I'll check). >>> >>> "same = n,Verbose(0,${PJSIP_ENDPOINT(1000,x)})" works for me but the >>> final ')' is missing in you example, maybe just a cut and paste error >>> though. >>> >> >> >> Yes it was a cut and paste error. >> >> I've found the reason why ${PJSIP_ENDPOINT(1000,x)} didn't work for >> me earlier: >> my pjsip_woizard.conf file included a line such as: >> endpoint/set_var = x =t >> >> Changing it to the one bellow (trailing space), made everything work. >> endpoint/set_var = x=t >> >> Originally, my goal was to set something equivalent to (see [1]) >> setvar=FAXOPT(gateway)=yes,10 >> >> Is it supported (with PJSIP and PJSIP wizard) ? >> > > Ah, yes. Setting existing channel variables that way should work. We > even have a test that sets CALLERID that way... > "set_var=CALLERID(name)=foo" > > Yes, I could successfully use this "set_var=CALLERID(name)=foo" pattern. Some previous failed attempts came from trailing or leading whitespaces within "set_var=CALLERID(name)=foo" expression. Thank you very much for all. > > > > >> >> [1] http://www.voip-info.org/wiki/view/Asterisk+T.38+Gateway >> >> >> >> >>> >>> There's also an alternate way to specify arbitrary variables... >>> [myendpoint] >>> @myvariable = myvalue >>> >>> You can then retrieve it with ${PJSIP_ENDPOINT(1000,@myvariable)} >>> >>> The '@' tells the config to just treat is as an opaque extended variable. >>> >>> >>> >>> >>> >>> >>> >>> >>> PS: In the above example, 1000 is the name of the PJSIP endpoint (as displayed with pjsip show endpoint 1000) > > >> >> >>> >>> Regards >>> >>> -- >>> _ >>> -- 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 >>> >> >> >> >> -- >> George Joseph >> Digium, Inc. | Software Developer >> 445 Jan Davis Drive NW - Huntsville, AL 35806 - US >> Check us out at: www.digium.com & www.asterisk.org >> >> > > > -- > George Joseph > Digium, Inc. | Software Developer > 445 Jan Davis Drive NW - Huntsville, AL 35806 - US > Check us out at: www.digium.com & www.asterisk.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] Dial command for SIP driver with To-header config
On Fri, Apr 22, 2016 at 11:04 AM, Nitesh Bansalwrote: > Hello, > > I'm using the following Dial command syntax: > Dial*(SIP/peer/exten!sip:x...@xyz.com *), the SIP URI > after the '!' mark should be set as To-URI in outgoing INVITE > from Asterisk. > It works, but problem is that To-URI formatting is a bit messed up, > It looks as follows: > *sip:sip:x...@xyz.com *, it seems that Asterisk > added an extra '*sip:'* in the > To-header and it breaks. > > I'm using Asterisk 13. > I'm wondering if this behaviour is intended or a potential bug? > > I would think that it isn't a bug. If you look at the documentation of that dial string option for the chan_sip channel driver in sip.conf.sample, you can see that the URI scheme is left off: 54 ; All of these dial strings specify the SIP request URI. 55 ; In addition, you can specify a specific To: header by adding an 56 ; exclamation mark after the dial string, like 57 ; 58 ; SIP/sales@mysipproxy!sa...@edvina.net While it might be nice if it didn't always use a scheme of 'sip', that'd probably be categorized as an improvement to this option. -- Matthew Jordan Digium, Inc. | Director of Technology 445 Jan Davis Drive NW - Huntsville, AL 35806 - USA Check us out at: http://digium.com & http://asterisk.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] Recording barged calls
Leandro Dardini wrote: Hi, I'd like to record the barged call... but whichever leg of the call I try to barge, my speaking is never recorded using MixMonitor. Any idea about the reason? The only suggestion I have really is to insert a Local channel in the mix and record on the real one while barging on the Local. This is due to a limitation in the underlying mechanism that does not allow the position to be defined of where to insert the barging and recording. It's fixed so recording comes first, followed by injecting media. Cheers, -- Joshua Colp Digium, Inc. | Senior Software Developer 445 Jan Davis Drive NW - Huntsville, AL 35806 - US Check us out at: www.digium.com & www.asterisk.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] my dahdi dont'n start
I use the asterisk 13.Le 26 avril 2016 à 18:07, Administrator TOOTAIa écrit :Le 26/04/2016 17:23, Mamadou NGOM a écrit :Hello,Having installed DAHDI to be able to use the meetme() application , whenI start the dahdi service it generates me the following error:-bash: /etc/init.d/dahdi: No such file or directoryClear, the file dahdi is not existing. Did you copy it?BTW, you shouldn't need dahdi to run meetme. BTW #2, depending on your asterisk version, meetme is replaced by ConfBridge[...]-- Daniel-- _-- 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/helloasterisk-users mailing listTo UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-usersMamadou NGOMIngénieur Télécommunications & RéseauxMobile: 06 72 45 23 03Skype: Mamadou NumericapNumeriCap – SAS au capital de 30.000,00€ - RCS de Toulon N° 530188432 – TVA FR 485301188432 – APE6110Z - ARCEP N°13/0015. siège social : « le Galaxie C » 526 avenue Maréchal de Lattre de Tassigny 83000 Toulon. mail: fina...@numericap.comCentre d’exploitation : « Résidence les Coquières » 11 avenue Joseph Fallen - 13400 Aubagne – Tel :04.42.73.88.52 -- _ -- 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] my dahdi dont'n start
On Tuesday 26 Apr 2016, Mamadou NGOM wrote: > Hello, > > Having installed DAHDI to be able to use the meetme() application , when I > start the dahdi service it generates me the following error: -bash: > /etc/init.d/dahdi: No such file or directory > I need help please. You are using a distribution that needs an (old-style) initscript to start dahdi, but don't appear to have the initscript present. When you type something like # service foo start what happens is dependent on what kind of startup system you are using. With "old-fashioned" initscripts, the computer looks in /etc/init.d for a file called "foo" and then tries to execute that file with the parameter(s) you supplied (here "start"). Since there is no file called /etc/init.d/dahdi on your machine, then the command is failing. For your convenience, I've attached the relevant initscript from an older DAHDI version (2.6.1) but it probably should work OK with yours. Save it as /etc/init.d/dahdi and then run # chmod 755 /etc/init.d/dahdi so any user can read and execute it, but only root can write it. Then it should work. -- AJS Note: Originating address only accepts e-mail from list! If replying off- list, change address to asterisk1list at earthshod dot co dot uk . dahdi Description: application/shellscript -- _ -- 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] my dahdi dont'n start
Richard Mudgettwrote: > On Tue, Apr 26, 2016 at 11:07 AM, Administrator TOOTAI > wrote: > > > Le 26/04/2016 17:23, Mamadou NGOM a écrit : > > > >> Hello, > >> > >> > >> Having installed DAHDI to be able to use the meetme() application , when > >> I start the dahdi service it generates me the following error: > >> > >> -bash: /etc/init.d/dahdi: No such file or directory > >> > > > > Clear, the file dahdi is not existing. Did you copy it? > > > > BTW, you shouldn't need dahdi to run meetme. BTW #2, depending on your > > asterisk version, meetme is replaced by ConfBridge > > > > Administrator TOOTAI: You must have DAHDI running when using meetme because > DAHDI does the audio mixing for the conference. > > Meetme is deprecated and replaced by ConfBridge on all currently supported > Asterisk > versions. > Except that confbridge lacks some features that meetme has -- I wish this were not so. -- Your life is like a penny. You're going to lose it. The question is: How do you spend it? John Covici cov...@ccs.covici.com -- _ -- 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] my dahdi dont'n start
I am using the asterisk 13(the last version).So can i use confbride instead of meetme.Thank youLe 26 avril 2016 à 18:26, cov...@ccs.covici.com a écrit :Richard Mudgettwrote:On Tue, Apr 26, 2016 at 11:07 AM, Administrator TOOTAI wrote:Le 26/04/2016 17:23, Mamadou NGOM a écrit :>> Hello,>> Having installed DAHDI to be able to use the meetme() application , when>> I start the dahdi service it generates me the following error: -bash: /etc/init.d/dahdi: No such file or directory>>Clear, the file dahdi is not existing. Did you copy it?BTW, you shouldn't need dahdi to run meetme. BTW #2, depending on yourasterisk version, meetme is replaced by ConfBridgeAdministrator TOOTAI: You must have DAHDI running when using meetme becauseDAHDI does the audio mixing for the conference.Meetme is deprecated and replaced by ConfBridge on all currently supportedAsteriskversions.Except that confbridge lacks some features that meetme has -- I wishthis were not so.-- Your life is like a penny. You're going to lose it. The question is:How doyou spend it? John Covici cov...@ccs.covici.com-- _-- 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/helloasterisk-users mailing listTo UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users> http://lists.digium.com/mailman/listinfo/asterisk-usersMamadou NGOMIngénieur Télécommunications & RéseauxMobile: 06 72 45 23 03Skype: Mamadou NumericapNumeriCap – SAS au capital de 30.000,00€ - RCS de Toulon N° 530188432 – TVA FR 485301188432 – APE6110Z - ARCEP N°13/0015. siège social : « le Galaxie C » 526 avenue Maréchal de Lattre de Tassigny 83000 Toulon. mail: fina...@numericap.comCentre d’exploitation : « Résidence les Coquières » 11 avenue Joseph Fallen - 13400 Aubagne – Tel :04.42.73.88.52 -- _ -- 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] my dahdi dont'n start
Le 26/04/2016 17:23, Mamadou NGOM a écrit : Hello, Having installed DAHDI to be able to use the meetme() application , when I start the dahdi service it generates me the following error: -bash: /etc/init.d/dahdi: No such file or directory Clear, the file dahdi is not existing. Did you copy it? BTW, you shouldn't need dahdi to run meetme. BTW #2, depending on your asterisk version, meetme is replaced by ConfBridge [...] -- Daniel -- _ -- 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] my dahdi dont'n start
On Tue, Apr 26, 2016 at 11:07 AM, Administrator TOOTAIwrote: > Le 26/04/2016 17:23, Mamadou NGOM a écrit : > >> Hello, >> >> >> Having installed DAHDI to be able to use the meetme() application , when >> I start the dahdi service it generates me the following error: >> >> -bash: /etc/init.d/dahdi: No such file or directory >> > > Clear, the file dahdi is not existing. Did you copy it? > > BTW, you shouldn't need dahdi to run meetme. BTW #2, depending on your > asterisk version, meetme is replaced by ConfBridge > Administrator TOOTAI: You must have DAHDI running when using meetme because DAHDI does the audio mixing for the conference. Meetme is deprecated and replaced by ConfBridge on all currently supported Asterisk versions. Richard -- _ -- 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] AMI: check if the user has a Mailbox
On Thu, Apr 21, 2016 at 09:34:47PM +0200, Luca Bertoncello wrote: > On an Asterisk-Server I have some users. Just two of them have a Mailbox. > I want to write a little Web interface to manage many things and I'd like to > have a menu point for the voicemail, but just if the user has a Mailbox. Action: Getvar Variable: VM_INFO(222,exists) -- Stefan Tichy ( asterisk3 at pi4tel dot de ) -- _ -- 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] my dahdi dont'n start
Hello,Having installed DAHDI to be able to use the meetme() application , when I start the dahdi service it generates me the following error:-bash: /etc/init.d/dahdi: No such file or directoryI need help please.ThanksMamadou NGOMIngénieur Télécommunications & RéseauxMobile: 06 72 45 23 03Skype: Mamadou NumericapNumeriCap – SAS au capital de 30.000,00€ - RCS de Toulon N° 530188432 – TVA FR 485301188432 – APE6110Z - ARCEP N°13/0015. siège social : « le Galaxie C » 526 avenue Maréchal de Lattre de Tassigny 83000 Toulon. mail: fina...@numericap.comCentre d’exploitation : « Résidence les Coquières » 11 avenue Joseph Fallen - 13400 Aubagne – Tel :04.42.73.88.52 -- _ -- 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