Re: [asterisk-users] Variable stripping/removing part of string

2011-04-11 Thread magnus.b
It was a 1.8 but then we started to do a lot of development (ooh323) so today it is Asterisk SVN-may-ooh323_ipv6_direct_rtp-r311741MS-/trunk. Can hardly se that we have done any changes that would cause my problem. -Ursprungligt meddelande- From: Tilghman Lesher Sent: Monday, April

Re: [asterisk-users] Variable stripping/removing part of string

2011-04-11 Thread magnus.b
I dont know if my mail client will keep formatting as I se it, but for me it sure looks like one space. -- Executing [0424449...@fax.inputinterior.se:4] NoOp(OOH323/Avaya2-109, Martela (fax)) in new stack xyz --

Re: [asterisk-users] Variable stripping/removing part of string

2011-04-11 Thread magnus.b
U were right, breaking it into two lines work. exten = 0424449631,n,NoOp(${CALLERID(name)}) exten = 0424449631,n,Set(name=${CUT(CALLERID(name),\(,1)}) exten = 0424449631,n,NoOp(${name:0:-1}) -- Executing [0424449...@fax.inputinterior.se:4] NoOp(OOH323/Avaya2-150, Martela (fax)) in new stack --

Re: [asterisk-users] Variable stripping/removing part of string

2011-04-11 Thread magnus.b
Weired result: exten = 0424449631,n,NoOp(${CALLERID(name)}) exten = 0424449631,n,NoOp(${${CUT(CALLERID(name),\(,1)}:0:-1}) -- Executing [0424449...@fax.inputinterior.se:4] NoOp(OOH323/Avaya2-248, Martela (fax)) in new stack -- Executing [0424449...@fax.inputinterior.se:5]

[asterisk-users] Variable stripping/removing part of string

2011-04-10 Thread magnus.b
Hi! I try to get rid of some part of CALLERID(name) but I cant realy figure out a way to do it. For example: CALLERID(name) = Martela (fax) I am just looking for the part before “ (“ in my case “Martela”. I can’t serch for “ “, could be many “ “, but only one “ (“, thought i could do something

Re: [asterisk-users] Variable stripping/removing part of string

2011-04-10 Thread magnus.b
Now i am lost. exten = 0424449631,n,NoOp(${CALLERID(name)}) exten = 0424449631,n,NoOp(${CUT(CALLERID(name),\(,2):0:-1}) -- Executing [0424449...@fax.inputinterior.se:4] NoOp(OOH323/Avaya2-8, Martela (fax)) in new stack -- Executing [0424449...@fax.inputinterior.se:5] NoOp(OOH323/Avaya2-8, fax))

Re: [asterisk-users] Checking status of a cell phone

2011-03-28 Thread magnus.b
Its not the Avaya that makes the call back, it is mobile. -Ursprungligt meddelande- From: Gilles Sent: Monday, March 28, 2011 1:57 PM To: asterisk-users@lists.digium.com Subject: Re: [asterisk-users] Checking status of a cell phone On Sat, 26 Mar 2011 14:58:30 +0100,

[asterisk-users] Variable. AMI and dialplan

2011-03-28 Thread magnus.b
Hi! Guess I am doing something totally wrong here: Some smart person could maybe plz tell me what. From AMI, I set a variable Action: Setvar\r\nVariable:x\r\n\Value: 5\r\n\r\n From dialplan i can “access” the variable “x” and see the value “5” From dialplan i modify “x” to “8”. But from AMI i

Re: [asterisk-users] Variable. AMI and dialplan

2011-03-28 Thread magnus.b
I did use Action: Getvar when i read it back in AMI. On 3/28/2011 7:41 AM, magnu...@inputinterior.se wrote: Hi! Guess I am doing something totally wrong here: Some smart person could maybe plz tell me what. From AMI, I set a variable Action: Setvar\r\nVariable:x\r\n\Value: 5\r\n\r\n From

Re: [asterisk-users] Variable. AMI and dialplan

2011-03-28 Thread magnus.b
Could be, do u think its a bug or do u think I am doing totally wrong? I can easily reproduce it if any needs more info. -Ursprungligt meddelande- From: Sebastian Sent: Monday, March 28, 2011 3:57 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re:

Re: [asterisk-users] Checking status of a cell phone

2011-03-28 Thread magnus.b
I was a little unclear, it is not the cell phone that does the call-back, it is the cell-phone-network. We can define 3 traffic-cases per cell-phone: 1) If cell-phone wont anser in x seconds call number a. 2) if cell-phone is busy call number b. 3) if cell-phone is unavailable call number c.

[asterisk-users] Checking status of a cell phone

2011-03-26 Thread magnus.b
Hi, I am looking for a way to check the status of a cell phone. Found one way that worked for me and would like to have some feedback or suggestion of improvments. Below example is for a “Swedish” cell phone, dont know if it works in the same way for other countries. I could define

Re: [asterisk-users] Checking status of a cell phone

2011-03-26 Thread magnus.b
Setup as below: Celluar Network - E1 - Avaya - OOH323 - Asterisk It works like this, some1 (we can call her Åsa) wants to know if i am avaiable (my cell phone 073-302 59 75 is NOT_INUSE) She have a web-app (just a simple form), where she enter my extension and hits enter. The web-app

[asterisk-users] Automatically unpause a paused queue memeber - bad idea?

2011-03-11 Thread magnus.b
I have some cases when I want to pause a queue member and automatically unpause the queue member after a specified time. Right now I am doing it by a AMI script, but was thinking if it is possible to add a parameter to PauseQueueMember like,

[asterisk-users] AddQueueMember and stateinterface question

2011-02-22 Thread magnus.b
Hi, I have missed something so I wonder if someone could explain for me? 0424449647 desktop phone 0106024647 DECT phone 0424449630 Helsingborg queue extensions.conf --- [support] exten = 0424449647,hint,SIP/0424449647SIP/0106024647 exten =

Re: [asterisk-users] MEMBERINTERFACE and MEMBERNAME questions

2011-02-20 Thread magnus.b
Hmm, First i must correct myself, MEMBERINTERFACE seems to be NULL, not the “device” that called in, my bad reading. Did some changes: queues.conf --- [Kinna] keepstats=yes ringinuse=no setinterfacevar=yes setqueuevar=yes strategy=rrmemory timeout=5 wrapuptime=120 extensions.conf

[asterisk-users] MEMBERINTERFACE and MEMBERNAME questions

2011-02-19 Thread magnus.b
Hi! Did play around with queues and need some help. I thought that MEMBERINTERFACE and MEMBERNAME should be set to the “device” the call was queued to not the device that called the queue, or do i miss something? Running: Asterisk 1.8.2.3 built by root @ sip on a i686 running Linux on

[asterisk-users] SendFAX dialplan example

2011-01-27 Thread magnus.b
Hi! I am playing with SendFAX but cant really figure out how it is working. I have a “fax” /var/spool/asterisk/tmp/fax.tiff that i would like to send to a “physical” fax at numer 0317998901. Can some1 write me a simple dialplan that just “grab” the file and send it to 0317998901? /Magnus--

Re: [asterisk-users] Fax stopped working when upgrading to 1.8.2

2011-01-17 Thread magnus.b
Vladimir, Sorry, I was a little “unclear”, Asterisk SVN-trunk-r280589M was not a 1.8 release. It was compiled before 1.8 was released. May did a lot of patches that he comitted to the trunk version and then when I got everything to work, I didnt recompile until I tried 1.8.2. But I will dig into

[asterisk-users] Fax stopped working when upgrading to 1.8.2

2011-01-13 Thread magnus.b
Gentlemen, We have a setup as below: PSTN – E1 – Avaya – OOH323 trunk – Asterisk – SPA-2102 – Fax machine Running Asterisk SVN-trunk-r280589M, fax working as a clock. I decided to leave “trunk” and go a stable version so I upgraded to 1.8.2. Didn’t change any config files, everything worked as

Re: [asterisk-users] Fax stopped working when upgrading to 1.8.2

2011-01-13 Thread magnus.b
Did apply the patch and did a recompile, no difference, fax still not working. But I did notice one thing, when I was standing at a fax attched to PSTN and trying to send a fax to a fax attached to the Asterisk: The PSTN fax never switched to saying “Sending...” in the display just “Dialing”,