Re: [asterisk-users] DIALSTATUS on CANCEL

2010-12-24 Thread Vardan Harutyunyan

Hello Bryant
Extension h is worked in any case of hangup.
It not important to that the call was answered or no.
It also be more flexible, if you use instead of ${DIALSTATUS}use 
${HANGUPCAUSE}, while in most of cause ${DIALSTATUS} is returned the 
same return code.

http://www.voip-info.org/wiki/view/Asterisk+variable+hangupcause


--
Vardan Harutyunyan,
Senior System Administrator

Enterprise Incubator Foundation
123 Hovsep Emin Street,
Yerevan 0051, Republic of Armenia
Tel: + 374 10 219735
Fax: + 374 10 219777
E-mail: i...@eif.am
www.eif-it.com

Bryant Zimmerman wrote:

Vardan

I have not use AEL so it is a bit hard to follow with the formatting the
way it is but it looks like correct.
Please note the h extension only appears to run if a call is connected
so I do not know when the CANCEL would ever be set.
There may be someone else who can speak to this. It also appears thet
${DIALSTATUS} may not be set if the call is not allowed to time out or
dialed. To me it would make sense to set the inital state of the
${DIALSTATUS} to CANCEL and if nothing changes it that would stand, but
I may be missing the point on this can anyone else speak to it?

Bryant


*From*: Vardan Harutyunyan hvarda...@gmail.com
*Sent*: Thursday, December 23, 2010 2:11 AM
*To*: asterisk-users@lists.digium.com
*Subject*: Re: [asterisk-users] DIALSTATUS on CANCEL

I have make test in AEL.

context fu {

_000./userN = {
Dial(SIP/${EXTEN:3...@prov);
Noop(${DIALSTATUS});
};
h = {
Noop(${DIALSTATUS});
};
};

And look CLI
-- Executing [00018185402...@fu:1] NoOp(SIP/userN-b6317738, )
in new stack
-- Executing [00018185402...@fo:2] Dial(SIP/user3-b6317738,
SIP/18185402...@prov) in new stack
-- Called 18185402...@prov
-- SIP/Prov-082a83b8 is making progress passing it to
SIP/userN-b6317738
== Spawn extension (fu, 00018185402020, 2) exited non-zero on
'SIP/user3-b6317738'
-- Executing [...@fu:1] NoOp(SIP/userN-b6317738, CANCEL) in new stack

I think, I am right

--
Vardan Harutyunyan,
Senior System Administrator

Enterprise Incubator Foundation
123 Hovsep Emin Street,
Yerevan 0051, Republic of Armenia
Tel: + 374 10 219735
Fax: + 374 10 219777
E-mail: i...@eif.am
www.eif-it.com

Bryant Zimmerman wrote:

 The Dial Status is not set when accessing it from the h extension.

 Bryant

 
 *From*: Vardan Harutyunyan hvarda...@gmail.com
 *Sent*: Wednesday, December 22, 2010 10:39 AM
 *To*: asterisk-users@lists.digium.com
 *Subject*: Re: [asterisk-users] DIALSTATUS on CANCEL

 Try to use h extension

 --
 Vardan Harutyunyan,
 Senior System Administrator

 Enterprise Incubator Foundation
 123 Hovsep Emin Street,
 Yerevan 0051, Republic of Armenia
 Tel: + 374 10 219735
 Fax: + 374 10 219777
 E-mail: i...@eif.am
 www.eif-it.com

 Michael wrote:
 Hi Nikhil,

 Both debug and verbose are set to 20. That's all I got, but as you can
 see, for the other types of reasons, the DIALSTATUS got a value (and we
 see the events). I'm pretty sure it's a bug.

 Michael

 On Wed, Dec 22, 2010 at 9:01 AM, Nikhil d.nik...@cem-solutions..net
 mailto:d.nik...@cem-solutions.net wrote:

 Hi
 Enable debug level to more than 1 ,you may get something.

 Thanks
 Nikhil

 On 12/22/2010 11:26 AM, Michael wrote:

 Spawn extension (incoming-private, , 3) exited non-zero
 on 'SIP/Proxy-0031'




 --
 _
 -- 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


 --
 _
 -- 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



 --
 _
 -- 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



--
_
-- 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] Today at 12 Noon EST

2010-12-24 Thread Randy R
Hi,

Lots of VoIP, SIP and Asterisk-related discussion and some free phones
and Polycom software today, join us at the usual place:

http://www.voipusersconference.org

Call sip:200...@login.zipdx.com  Skype:vuc.me (via Skype for Asterisk
and PhonefromHere.com)
Listen Live 16khz mp3 Stream: http://vuc.li/mp3stream

None of the above will work until about 15 minutes before. The mp3
stream goes live on the hour.

The VUC may be the only way to hear John Todd's voice at the moment.
That alone is worth the price of admission!

/r

--
_
-- 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] Asterisk 1.8 and Realtime

2010-12-24 Thread Ishfaq Malik
On Fri, 2010-12-24 at 07:52 +1300, CB wrote:
 Could anyone recommend some documentation regarding Asterisk 1.8 and the
 realtime architecture? Specifically I want to know if it is possible to set
 a priority label or to use n as a priority for realtime extensions in
 Asterisk 1.8? My understanding is that is not possible with Asterisk 1.4 and
 I wonder if it's changed?
 --
I can't see how you could possibly use n priority with RealTime. How
would the system know what the ordering was?
-- 
Ishfaq Malik
Software Developer
PackNet Ltd

Office:   0161 660 3062


--
_
-- 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] Zombie DAHDI FXO channels

2010-12-24 Thread Andrew Latham
 Dear listers,

 I'm facing a puzzling situation with Digium TDM2400 card (12 FXO / 12
 FXS). Once a day or so we detect 1 or 2 zombie FXO channels. These can be
 either outbound or inbound calls. I thought this could be related to
 obsolete DAHDI or Asterisk versions, so I upgraded to 2.4.0 and 1.6.2.15
 respectively (OS: Ubuntu 10.04 64 bits). To no avail; the zombie channels
 keep showing up.
 Those zombies appear to be hangup calls not being recognized as such by
 DAHDI. When we see existing calls with suspicious long durations (20 minutes
 or more) we spy those channels, and pretty often they show no audio at all.
 Following are a few logs:

 inbound call ending up as zombie: http://pastebin.com/NtS8CiMa
 outbound call ending up as zombie: http://pastebin.com/nfY707Ap, you can
 see that starting at line 145 the channel is being hanged up on the console
 (hangup request DAHDI/x-y)

 Any ideas?
 Alex Saavedra

One Idea: http://www.digium.com/en/supportcenter/

~~~ Andrew lathama Latham lath...@gmail.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

[asterisk-users] Prepaid Billing for Asterisk and Gnugk

2010-12-24 Thread bilal ghayyad
Hi All;

A2Billing is working fine for Asterisk, but in case I need to use Asterisk and 
Gnugk and I need to manage the accounts and the billing from one Database and 
one billing system, so I need a prepaid billing that can work with both. 

Which prepaid billing (open source) can be used to work with Asterisk and Gnugk?

Regards
Bilal


  

--
_
-- 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] Moving asterisk from one network to another.

2010-12-24 Thread Asterisk Man
Friends,



Do we need to change any Asterisk configuration files (Or any file related
to Asterisk for that matter) when we put Asterisk box from one network to
another?

It is assumed that DB is on the same box.

Asterisk box has got Asterisk running in it with no issues.

Probably, it should not complain.

I tried to check for IP address in Asterisk files (using ‘find . | xargs
grep 192.168.X.XX –sl’), but it seems that Asterisk does not store specific
IP in file(s).



Your thoughts on this if I m missing something.



-AsteriskMan
--
_
-- 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] Moving asterisk from one network to another.

2010-12-24 Thread Asterisk Man
Friends,



Do we need to change any Asterisk configuration files (Or any file related
to Asterisk for that matter) when we put Asterisk box from one network to
another?

It is assumed that DB is on the same box.

Asterisk box has got Asterisk running in it with no issues.

Probably, it should not complain.

I tried to check for IP address in Asterisk files (using ‘find . | xargs
grep 192.168.X.XX –sl’), but it seems that Asterisk does not store specific
IP in file(s).



Your thoughts on this if I m missing something.



-AsteriskMan
--
_
-- 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] Moving asterisk from one network to another.

2010-12-24 Thread Jim Dickenson
If you set bindaddr in any conf file you will need to change the IP address 
there.
-- 
Jim Dickenson
mailto:dicken...@cfmc.com

CfMC
http://www.cfmc.com/



On Dec 24, 2010, at 4:30 AM, Asterisk Man wrote:

 Friends,
  
 Do we need to change any Asterisk configuration files (Or any file related to 
 Asterisk for that matter) when we put Asterisk box from one network to 
 another?
 It is assumed that DB is on the same box. 
 Asterisk box has got Asterisk running in it with no issues. 
 Probably, it should not complain. 
 I tried to check for IP address in Asterisk files (using ‘find . | xargs grep 
 192.168.X.XX –sl’), but it seems that Asterisk does not store specific IP in 
 file(s).
  
 Your thoughts on this if I m missing something.
  
 -AsteriskMan
 --
 _
 -- 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

--
_
-- 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] live audio stream in asterisk

2010-12-24 Thread Arjan Kroon | Mobillion
Hi,

Is it possible to use a live audio stream in asterisk

I want to call a number and then hear an external audio stream.
For example http://www.radioveronica.nl/radioveronicaplayer/radioveronica.asx

I thought it was possible to use musiconhold, but I did not get it working.

This is my musiconhold.conf 
;
; Music on Hold -- Sample Configuration
;
[general]

[default]
mode=custum

directory=/var/lib/asterisk/mohmp3/stream,http://www.radioveronica.nl/radioveronicaplayer/radioveronica.asx

This is my extension.conf
exten = _X.,1,Answer
exten = _X.,n,MusicOnHold()


If I look in the CLI I get the following error:
Executing [...@test_moh:2] MusicOnHold(SIP/arjankroon-, ) 
in new stack
-- Music class default requested but no musiconhold loaded.
[Dec 24 14:34:03] NOTICE[9030]: channel.c:4006 __ast_read: Dropping 
incompatible voice frame on SIP/arjankroon- of format gsm since our 
native format has changed to 0x4 (ulaw)

I'm using asterisk 1.8


Can anybody help me?

Kind regards,

Arjan Kroon
Mobillion BV


--
_
-- 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] DIALSTATUS on CANCEL

2010-12-24 Thread BryantZ
If a call is hung up before an answer our h extension is not running in our 
dial macro 

Bryant

On Dec 24, 2010, at 3:47 AM, Vardan Harutyunyan hvarda...@gmail.com wrote:

 Hello Bryant
 Extension h is worked in any case of hangup.
 It not important to that the call was answered or no.
 It also be more flexible, if you use instead of ${DIALSTATUS}use 
 ${HANGUPCAUSE}, while in most of cause ${DIALSTATUS} is returned the same 
 return code.
 http://www.voip-info.org/wiki/view/Asterisk+variable+hangupcause
 
 
 -- 
 Vardan Harutyunyan,
 Senior System Administrator
 
 Enterprise Incubator Foundation
 123 Hovsep Emin Street,
 Yerevan 0051, Republic of Armenia
 Tel: + 374 10 219735
 Fax: + 374 10 219777
 E-mail: i...@eif.am
 www.eif-it.com
 
 Bryant Zimmerman wrote:
 Vardan
 
 I have not use AEL so it is a bit hard to follow with the formatting the
 way it is but it looks like correct.
 Please note the h extension only appears to run if a call is connected
 so I do not know when the CANCEL would ever be set.
 There may be someone else who can speak to this. It also appears thet
 ${DIALSTATUS} may not be set if the call is not allowed to time out or
 dialed. To me it would make sense to set the inital state of the
 ${DIALSTATUS} to CANCEL and if nothing changes it that would stand, but
 I may be missing the point on this can anyone else speak to it?
 
 Bryant
 
 
 *From*: Vardan Harutyunyan hvarda...@gmail.com
 *Sent*: Thursday, December 23, 2010 2:11 AM
 *To*: asterisk-users@lists.digium.com
 *Subject*: Re: [asterisk-users] DIALSTATUS on CANCEL
 
 I have make test in AEL.
 
 context fu {
 
 _000./userN = {
 Dial(SIP/${EXTEN:3...@prov);
 Noop(${DIALSTATUS});
 };
 h = {
 Noop(${DIALSTATUS});
 };
 };
 
 And look CLI
 -- Executing [00018185402...@fu:1] NoOp(SIP/userN-b6317738, )
 in new stack
 -- Executing [00018185402...@fo:2] Dial(SIP/user3-b6317738,
 SIP/18185402...@prov) in new stack
 -- Called 18185402...@prov
 -- SIP/Prov-082a83b8 is making progress passing it to
 SIP/userN-b6317738
 == Spawn extension (fu, 00018185402020, 2) exited non-zero on
 'SIP/user3-b6317738'
 -- Executing [...@fu:1] NoOp(SIP/userN-b6317738, CANCEL) in new stack
 
 I think, I am right
 
 --
 Vardan Harutyunyan,
 Senior System Administrator
 
 Enterprise Incubator Foundation
 123 Hovsep Emin Street,
 Yerevan 0051, Republic of Armenia
 Tel: + 374 10 219735
 Fax: + 374 10 219777
 E-mail: i...@eif.am
 www.eif-it.com
 
 Bryant Zimmerman wrote:
 The Dial Status is not set when accessing it from the h extension.
 
 Bryant
 
 
 *From*: Vardan Harutyunyan hvarda...@gmail.com
 *Sent*: Wednesday, December 22, 2010 10:39 AM
 *To*: asterisk-users@lists.digium.com
 *Subject*: Re: [asterisk-users] DIALSTATUS on CANCEL
 
 Try to use h extension
 
 --
 Vardan Harutyunyan,
 Senior System Administrator
 
 Enterprise Incubator Foundation
 123 Hovsep Emin Street,
 Yerevan 0051, Republic of Armenia
 Tel: + 374 10 219735
 Fax: + 374 10 219777
 E-mail: i...@eif.am
 www.eif-it.com
 
 Michael wrote:
  Hi Nikhil,
 
  Both debug and verbose are set to 20. That's all I got, but as you can
  see, for the other types of reasons, the DIALSTATUS got a value (and we
  see the events). I'm pretty sure it's a bug.
 
  Michael
 
  On Wed, Dec 22, 2010 at 9:01 AM, Nikhil d.nik...@cem-solutions..net
  mailto:d.nik...@cem-solutions.net wrote:
 
  Hi
  Enable debug level to more than 1 ,you may get something.
 
  Thanks
  Nikhil
 
  On 12/22/2010 11:26 AM, Michael wrote:
 
  Spawn extension (incoming-private, , 3) exited non-zero
  on 'SIP/Proxy-0031'
 
 
 
 
  --
  _
  -- 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
 
 
 --
 _
 -- 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
 
 
 
 --
 _
 -- 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
 
 
 --
 _
 -- Bandwidth and Colocation Provided by 

[asterisk-users] One way crappy audio in iax call - Asterisk 1.6.2.15

2010-12-24 Thread Administrator TOOTAI

Hi,

We had 2 asterisk 1.4 connected together in iax, all was fine. One of 
them was upgraded (server and Asterisk) in 1.6.2.15, the other end is in 
1.4.38


When calling to 1.4 to 1.6.2 -remember, it's iax- all is good. But 
calling from 1.6.2 to 1.4 give a bad audio to calling party (words are 
cutted, you can't understand the words). On callee party it's still good.


We replace 1.6.2 version with 1.4.38 and everything is going back to 
normal, good audio on both side does'nt matter who call.


I already opened another thread about problem with iax and Asterisk 
1.6.2 (rsa auth not working anymore). Are there some known problems with 
iax and 1.6 version of Asterisk?


Thanks for any hint

--
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] DIALSTATUS on CANCEL

2010-12-24 Thread Jim Dickenson
If on the dial command you add option g, if the call is not answered, it will 
fall through to the next statement which can be a hangup command and then it 
will go to the h extension. If that does not then make the statement after the 
dial command a goto h extension.
-- 
Jim Dickenson
mailto:dicken...@cfmc.com

CfMC
http://www.cfmc.com/



On Dec 24, 2010, at 6:03 AM, brya...@zktech.com wrote:

 If a call is hung up before an answer our h extension is not running in our 
 dial macro 
 
 Bryant
 
 On Dec 24, 2010, at 3:47 AM, Vardan Harutyunyan hvarda...@gmail.com wrote:
 
 Hello Bryant
 Extension h is worked in any case of hangup.
 It not important to that the call was answered or no.
 It also be more flexible, if you use instead of ${DIALSTATUS}use 
 ${HANGUPCAUSE}, while in most of cause ${DIALSTATUS} is returned the same 
 return code.
 http://www.voip-info.org/wiki/view/Asterisk+variable+hangupcause
 
 
 -- 
 Vardan Harutyunyan,
 Senior System Administrator
 
 Enterprise Incubator Foundation
 123 Hovsep Emin Street,
 Yerevan 0051, Republic of Armenia
 Tel: + 374 10 219735
 Fax: + 374 10 219777
 E-mail: i...@eif.am
 www.eif-it.com
 
 Bryant Zimmerman wrote:
 Vardan
 
 I have not use AEL so it is a bit hard to follow with the formatting the
 way it is but it looks like correct.
 Please note the h extension only appears to run if a call is connected
 so I do not know when the CANCEL would ever be set.
 There may be someone else who can speak to this. It also appears thet
 ${DIALSTATUS} may not be set if the call is not allowed to time out or
 dialed. To me it would make sense to set the inital state of the
 ${DIALSTATUS} to CANCEL and if nothing changes it that would stand, but
 I may be missing the point on this can anyone else speak to it?
 
 Bryant
 
 
 *From*: Vardan Harutyunyan hvarda...@gmail.com
 *Sent*: Thursday, December 23, 2010 2:11 AM
 *To*: asterisk-users@lists.digium.com
 *Subject*: Re: [asterisk-users] DIALSTATUS on CANCEL
 
 I have make test in AEL.
 
 context fu {
 
 _000./userN = {
 Dial(SIP/${EXTEN:3...@prov);
 Noop(${DIALSTATUS});
 };
 h = {
 Noop(${DIALSTATUS});
 };
 };
 
 And look CLI
 -- Executing [00018185402...@fu:1] NoOp(SIP/userN-b6317738, )
 in new stack
 -- Executing [00018185402...@fo:2] Dial(SIP/user3-b6317738,
 SIP/18185402...@prov) in new stack
 -- Called 18185402...@prov
 -- SIP/Prov-082a83b8 is making progress passing it to
 SIP/userN-b6317738
 == Spawn extension (fu, 00018185402020, 2) exited non-zero on
 'SIP/user3-b6317738'
 -- Executing [...@fu:1] NoOp(SIP/userN-b6317738, CANCEL) in new stack
 
 I think, I am right
 
 --
 Vardan Harutyunyan,
 Senior System Administrator
 
 Enterprise Incubator Foundation
 123 Hovsep Emin Street,
 Yerevan 0051, Republic of Armenia
 Tel: + 374 10 219735
 Fax: + 374 10 219777
 E-mail: i...@eif.am
 www.eif-it.com
 
 Bryant Zimmerman wrote:
 The Dial Status is not set when accessing it from the h extension.
 
 Bryant
 
 
 *From*: Vardan Harutyunyan hvarda...@gmail.com
 *Sent*: Wednesday, December 22, 2010 10:39 AM
 *To*: asterisk-users@lists.digium.com
 *Subject*: Re: [asterisk-users] DIALSTATUS on CANCEL
 
 Try to use h extension
 
 --
 Vardan Harutyunyan,
 Senior System Administrator
 
 Enterprise Incubator Foundation
 123 Hovsep Emin Street,
 Yerevan 0051, Republic of Armenia
 Tel: + 374 10 219735
 Fax: + 374 10 219777
 E-mail: i...@eif.am
 www.eif-it.com
 
 Michael wrote:
 Hi Nikhil,
 
 Both debug and verbose are set to 20. That's all I got, but as you can
 see, for the other types of reasons, the DIALSTATUS got a value (and we
 see the events). I'm pretty sure it's a bug.
 
 Michael
 
 On Wed, Dec 22, 2010 at 9:01 AM, Nikhil d.nik...@cem-solutions..net
 mailto:d.nik...@cem-solutions.net wrote:
 
 Hi
 Enable debug level to more than 1 ,you may get something.
 
 Thanks
 Nikhil
 
 On 12/22/2010 11:26 AM, Michael wrote:
 
 Spawn extension (incoming-private, , 3) exited non-zero
 on 'SIP/Proxy-0031'
 
 
 
 
 --
 _
 -- 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
 
 
 --
 _
 -- 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
 
 
 
 --
 _
 -- Bandwidth and Colocation Provided by 

[asterisk-users] asterisk regiserted as a client check_auth: username mismatch on calls from client

2010-12-24 Thread dave george
I have my asterisk Server A registered as a client with another asterisk
Server B.

When I place a call from Server A to B I get the following:

WARNING[834]: chan_sip.c:12673 check_auth: username mismatch, have SS72,
digest has openbts1

NOTICE[834]: chan_sip.c:19961 handle_request_invite: Failed to authenticate
device 0014734068436 sip:0014734068...@x.x.x.x;tag=as0b50a2f9

I can call from server A to Server B with no problem


My sip.conf (asterisk client A)

register = openbts1:openbt...@x.x.x.x:5060


[SS72]
type=peer
canreinvite=no
secret=openbts12
username=openbts1
host=x.x.x.x
context=openbts
fromuser=openbts1
dtmfmode=info
fromdomain=x.x.x.x
insecure=port,invite
qualify=yes
disallow=all
allow=gsm


sip.conf (asterisk Server B)

[openbts1]
type=peer
username=openbts1
secret=openbts12
host=dynamic
canreinvite=no
qualify=yes
context=local
dtmfmode=rfc2833
nat=yes
disallow=all
allow=gsm

any suggestions welcome.


Dave


--
_
-- 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] Forward voicemail to group of people

2010-12-24 Thread Daniel Tryba
On Wed, Dec 22, 2010 at 11:41:52PM -0800, Matt Darnell wrote:
 Is there a way to forward a message to multiple people from within the
 telephone user interface?  Now there is only the ability to forward to
 an individual.
 
 I see there is a way to leave a message for multiple people using the
 dial plan but that is not available when you are listening to
 voicemail.

My guess the easiest hack is to create a local alias (/etc/aliases) that
will relay the mail to multiple users.

-- 

   Daniel Tryba

--
_
-- 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] DIALSTATUS on CANCEL

2010-12-24 Thread Vardan Harutyunyan

In AEL macro you must use catch h

for example

macro DialToSIPProv (tech,number,prov) {

Dial(${tech}/${numb...@${prov});
switch(${DIALSTATUS}) {
case BUSY:
Noop(BUSY);
[Do some one]
break;
case CHANUNAVAIL:
Noop(CHANUN);
[Do some one]
break;
case NOANSWER:
Noop(NOANS);
[Do some one]
break;
case CANCEL:
Noop(CANCEL);
[Do some one]
break;
case CONGESTION:
Noop(CONG);
[Do some one]
break;
case ANSWER:
Noop(ANS);
[Do some one]
break;
default:
Noop(default);
[Do some one]
break;
};

catch h {
Noop(Hangup in macro);
Noop(${DIALSTATUS});
Hangup;
};

return;
};


--
Vardan Harutyunyan,
Senior System Administrator

Enterprise Incubator Foundation
123 Hovsep Emin Street,
Yerevan 0051, Republic of Armenia
Tel: + 374 10 219735
Fax: + 374 10 219777
E-mail: i...@eif.am
www.eif-it.com

brya...@zktech.com wrote:

If a call is hung up before an answer our h extension is not running in our 
dial macro

Bryant

On Dec 24, 2010, at 3:47 AM, Vardan Harutyunyanhvarda...@gmail.com  wrote:


Hello Bryant
Extension h is worked in any case of hangup.
It not important to that the call was answered or no.
It also be more flexible, if you use instead of ${DIALSTATUS}use 
${HANGUPCAUSE}, while in most of cause ${DIALSTATUS} is returned the same 
return code.
http://www.voip-info.org/wiki/view/Asterisk+variable+hangupcause


--
Vardan Harutyunyan,
Senior System Administrator

Enterprise Incubator Foundation
123 Hovsep Emin Street,
Yerevan 0051, Republic of Armenia
Tel: + 374 10 219735
Fax: + 374 10 219777
E-mail: i...@eif.am
www.eif-it.com

Bryant Zimmerman wrote:

Vardan

I have not use AEL so it is a bit hard to follow with the formatting the
way it is but it looks like correct.
Please note the h extension only appears to run if a call is connected
so I do not know when the CANCEL would ever be set.
There may be someone else who can speak to this. It also appears thet
${DIALSTATUS} may not be set if the call is not allowed to time out or
dialed. To me it would make sense to set the inital state of the
${DIALSTATUS} to CANCEL and if nothing changes it that would stand, but
I may be missing the point on this can anyone else speak to it?

Bryant


*From*: Vardan Harutyunyanhvarda...@gmail.com
*Sent*: Thursday, December 23, 2010 2:11 AM
*To*: asterisk-users@lists.digium.com
*Subject*: Re: [asterisk-users] DIALSTATUS on CANCEL

I have make test in AEL.

context fu {

_000./userN =  {
Dial(SIP/${EXTEN:3...@prov);
Noop(${DIALSTATUS});
};
h =  {
Noop(${DIALSTATUS});
};
};

And look CLI
-- Executing [00018185402...@fu:1] NoOp(SIP/userN-b6317738, )
in new stack
-- Executing [00018185402...@fo:2] Dial(SIP/user3-b6317738,
SIP/18185402...@prov) in new stack
-- Called 18185402...@prov
-- SIP/Prov-082a83b8 is making progress passing it to
SIP/userN-b6317738
== Spawn extension (fu, 00018185402020, 2) exited non-zero on
'SIP/user3-b6317738'
-- Executing [...@fu:1] NoOp(SIP/userN-b6317738, CANCEL) in new stack

I think, I am right

--
Vardan Harutyunyan,
Senior System Administrator

Enterprise Incubator Foundation
123 Hovsep Emin Street,
Yerevan 0051, Republic of Armenia
Tel: + 374 10 219735
Fax: + 374 10 219777
E-mail: i...@eif.am
www.eif-it.com

Bryant Zimmerman wrote:

The Dial Status is not set when accessing it from the h extension.

Bryant


*From*: Vardan Harutyunyanhvarda...@gmail.com
*Sent*: Wednesday, December 22, 2010 10:39 AM
*To*: asterisk-users@lists.digium.com
*Subject*: Re: [asterisk-users] DIALSTATUS on CANCEL

Try to use h extension

--
Vardan Harutyunyan,
Senior System Administrator

Enterprise Incubator Foundation
123 Hovsep Emin Street,
Yerevan 0051, Republic of Armenia
Tel: + 374 10 219735
Fax: + 374 10 219777
E-mail: i...@eif.am
www.eif-it.com

Michael wrote:

Hi Nikhil,

Both debug and verbose are set to 20. That's all I got, but as you can
see, for the other types of reasons, the DIALSTATUS got a value (and we
see the events). I'm pretty sure it's a bug.

Michael

On Wed, Dec 22, 2010 at 9:01 AM, Nikhild.nik...@cem-solutions..net
mailto:d.nik...@cem-solutions.net  wrote:

Hi
Enable debug level to more than 1 ,you may get something.

Thanks
Nikhil

On 12/22/2010 11:26 AM, 

Re: [asterisk-users] Forward voicemail to group of people

2010-12-24 Thread Danny Nicholas


-Original Message-
From: asterisk-users-boun...@lists.digium.com
[mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Daniel Tryba
Sent: Friday, December 24, 2010 9:17 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] Forward voicemail to group of people

On Wed, Dec 22, 2010 at 11:41:52PM -0800, Matt Darnell wrote:
 Is there a way to forward a message to multiple people from within the
 telephone user interface?  Now there is only the ability to forward to
 an individual.
 
 I see there is a way to leave a message for multiple people using the
 dial plan but that is not available when you are listening to
 voicemail.

My guess the easiest hack is to create a local alias (/etc/aliases) that
will relay the mail to multiple users.

This is Too obvious to work, but what if you set up a voicemail group and
entered that group number instead of an extension.  If you have extensions
1001, 1002 and 1003 and you set up a group 2001 that contained all 3
extensions, would the voicemail app not forward to that group?


--
_
-- 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] One way crappy audio in iax call - Asterisk 1.6.2.15

2010-12-24 Thread Steve Davies
On 24 December 2010 14:40, Administrator TOOTAI ad...@tootai.net wrote:
 Hi,

 We had 2 asterisk 1.4 connected together in iax, all was fine. One of them
 was upgraded (server and Asterisk) in 1.6.2.15, the other end is in 1.4.38

 When calling to 1.4 to 1.6.2 -remember, it's iax- all is good. But calling
 from 1.6.2 to 1.4 give a bad audio to calling party (words are cutted, you
 can't understand the words). On callee party it's still good.

 We replace 1.6.2 version with 1.4.38 and everything is going back to normal,
 good audio on both side does'nt matter who call.

 I already opened another thread about problem with iax and Asterisk 1.6.2
 (rsa auth not working anymore). Are there some known problems with iax and
 1.6 version of Asterisk?

 Thanks for any hint


Not 100% sure, but I think there was a fix for IAX audio in
1.6.2.16-rc1 - Perhaps try that?

Regards,
Steve

--
_
-- 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] No MOH with parked call

2010-12-24 Thread Steve Davies
On 23 December 2010 18:01, Steve Davies davies...@gmail.com wrote:
 Hi Again,

 I thought I had this sorted, but it appears that in a clean
 environment I did not in fact fix it. There appears to be a bit of a
 contradiction.

 1) In 1.6.2.x, musiconhold requires DAHDI (which we have)
 2) In 1.6.2.x parked calls get MOH only if res_timing_dahdi is not loaded...

 I am confused. MOH in general terms works just fine, but if I park a
 call with res_timing_dahdi loaded, I get silence after the orbit
 announcement. If I unload res_timing_dahdi, all works fine, but my
 timing sources are less reliable.

 I have backported res_musiconhold.c from 1.8 to 1.6.2.16-rc1, but this
 does not seem to fix things - is the problem elsewhere? Is there a fix
 that I can try, or perhaps backport?

Further to this, I have been slowly tracing through the codepath for a
parked call - ast_settimer is called correctly for the MOH generator,
and seems to set up the DAHDI timer exactly the same way as it does
for the alternative timing modules, and all of the setup calls return
success. I don't have a verbose output trace to hand, but the sequence
seems to be as follows:

-- Start moh_files_generator successfully using ast_settimer()
   Chunks of MOH file are generated here
-- Stop moh_files_generator successfully
-- Play the parking position numbers
-- Start moh_files_generator using ast_settimer()
Generator is never called

Any thoughts where to look next? It is odd that it appears to be
working immediately before the position is read out, but then fails to
restart afterwards...

Thanks,
Steve

--
_
-- 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] How to install the new cdr-stats?

2010-12-24 Thread Doug Lytle

Doug Lytle wrote:


I'll let you know what I come up with, hopefully before the weekend ends.


Bruce,

I gave it a shot this weekend.  It's very specific to whatever distro 
they were using, most of the path information and program location 
weren't found under Mandriva.  The area where they were talking about 
myql and sqlite, were just the databases that they supported.


I find that it's not worth the effort, for such a poorly documented 
project, to go any further.  I'd suggest Asterisk-Stat, it hasn't been 
updated in a few years, but still works well.  It can be had at:


http://www.areski.net/areski/index.php?option=com_contenttask=viewid=22Itemid=54

Doug



--
Ben Franklin quote:

Those who would give up Essential Liberty to purchase a little Temporary Safety, 
deserve neither Liberty nor Safety.


--
_
-- 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] DIALSTATUS on CANCEL

2010-12-24 Thread BryantZ
I am using the g option and it does not run the next statement or h extension 
 if the caller hangs up before an answers or time out event occurs during a 
dial comand.

Bryant

On Dec 24, 2010, at 9:55 AM, Jim Dickenson dicken...@cfmc.com wrote:

 If on the dial command you add option g, if the call is not answered, it will 
 fall through to the next statement which can be a hangup command and then it 
 will go to the h extension. If that does not then make the statement after 
 the dial command a goto h extension.
 -- 
 Jim Dickenson
 mailto:dicken...@cfmc.com
 
 CfMC
 http://www.cfmc.com/
 
 
 
 On Dec 24, 2010, at 6:03 AM, brya...@zktech.com wrote:
 
 If a call is hung up before an answer our h extension is not running in 
 our dial macro 
 
 Bryant
 
 On Dec 24, 2010, at 3:47 AM, Vardan Harutyunyan hvarda...@gmail.com wrote:
 
 Hello Bryant
 Extension h is worked in any case of hangup.
 It not important to that the call was answered or no.
 It also be more flexible, if you use instead of ${DIALSTATUS}use 
 ${HANGUPCAUSE}, while in most of cause ${DIALSTATUS} is returned the same 
 return code.
 http://www.voip-info.org/wiki/view/Asterisk+variable+hangupcause
 
 
 -- 
 Vardan Harutyunyan,
 Senior System Administrator
 
 Enterprise Incubator Foundation
 123 Hovsep Emin Street,
 Yerevan 0051, Republic of Armenia
 Tel: + 374 10 219735
 Fax: + 374 10 219777
 E-mail: i...@eif.am
 www.eif-it.com
 
 Bryant Zimmerman wrote:
 Vardan
 
 I have not use AEL so it is a bit hard to follow with the formatting the
 way it is but it looks like correct.
 Please note the h extension only appears to run if a call is connected
 so I do not know when the CANCEL would ever be set.
 There may be someone else who can speak to this. It also appears thet
 ${DIALSTATUS} may not be set if the call is not allowed to time out or
 dialed. To me it would make sense to set the inital state of the
 ${DIALSTATUS} to CANCEL and if nothing changes it that would stand, but
 I may be missing the point on this can anyone else speak to it?
 
 Bryant
 
 
 *From*: Vardan Harutyunyan hvarda...@gmail.com
 *Sent*: Thursday, December 23, 2010 2:11 AM
 *To*: asterisk-users@lists.digium.com
 *Subject*: Re: [asterisk-users] DIALSTATUS on CANCEL
 
 I have make test in AEL.
 
 context fu {
 
 _000./userN = {
 Dial(SIP/${EXTEN:3...@prov);
 Noop(${DIALSTATUS});
 };
 h = {
 Noop(${DIALSTATUS});
 };
 };
 
 And look CLI
 -- Executing [00018185402...@fu:1] NoOp(SIP/userN-b6317738, )
 in new stack
 -- Executing [00018185402...@fo:2] Dial(SIP/user3-b6317738,
 SIP/18185402...@prov) in new stack
 -- Called 18185402...@prov
 -- SIP/Prov-082a83b8 is making progress passing it to
 SIP/userN-b6317738
 == Spawn extension (fu, 00018185402020, 2) exited non-zero on
 'SIP/user3-b6317738'
 -- Executing [...@fu:1] NoOp(SIP/userN-b6317738, CANCEL) in new stack
 
 I think, I am right
 
 --
 Vardan Harutyunyan,
 Senior System Administrator
 
 Enterprise Incubator Foundation
 123 Hovsep Emin Street,
 Yerevan 0051, Republic of Armenia
 Tel: + 374 10 219735
 Fax: + 374 10 219777
 E-mail: i...@eif.am
 www.eif-it.com
 
 Bryant Zimmerman wrote:
 The Dial Status is not set when accessing it from the h extension.
 
 Bryant
 
 
 *From*: Vardan Harutyunyan hvarda...@gmail.com
 *Sent*: Wednesday, December 22, 2010 10:39 AM
 *To*: asterisk-users@lists.digium.com
 *Subject*: Re: [asterisk-users] DIALSTATUS on CANCEL
 
 Try to use h extension
 
 --
 Vardan Harutyunyan,
 Senior System Administrator
 
 Enterprise Incubator Foundation
 123 Hovsep Emin Street,
 Yerevan 0051, Republic of Armenia
 Tel: + 374 10 219735
 Fax: + 374 10 219777
 E-mail: i...@eif.am
 www.eif-it.com
 
 Michael wrote:
 Hi Nikhil,
 
 Both debug and verbose are set to 20. That's all I got, but as you can
 see, for the other types of reasons, the DIALSTATUS got a value (and we
 see the events). I'm pretty sure it's a bug.
 
 Michael
 
 On Wed, Dec 22, 2010 at 9:01 AM, Nikhil d.nik...@cem-solutions..net
 mailto:d.nik...@cem-solutions.net wrote:
 
 Hi
 Enable debug level to more than 1 ,you may get something.
 
 Thanks
 Nikhil
 
 On 12/22/2010 11:26 AM, Michael wrote:
 
 Spawn extension (incoming-private, , 3) exited non-zero
 on 'SIP/Proxy-0031'
 
 
 
 
 --
 _
 -- 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
 
 
 --
 _
 -- 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
 

Re: [asterisk-users] How to install the new cdr-stats?

2010-12-24 Thread Bruce B
Thanks for looking into it. Yes, it missed up and not worth looking at it.
Unfortuantly, so are a few products from the same company (probably trying
to make money of support which I understand)but it seems they released
an install script which is here for CentOS:

https://github.com/Star2Billing/cdr-stats/tree/master/scripts/

https://github.com/Star2Billing/cdr-stats/tree/master/scripts/Regards,

On Fri, Dec 24, 2010 at 1:29 PM, Doug Lytle supp...@drdos.info wrote:

 Doug Lytle wrote:


 I'll let you know what I come up with, hopefully before the weekend ends.


 Bruce,

 I gave it a shot this weekend.  It's very specific to whatever distro they
 were using, most of the path information and program location weren't found
 under Mandriva.  The area where they were talking about myql and sqlite,
 were just the databases that they supported.

 I find that it's not worth the effort, for such a poorly documented
 project, to go any further.  I'd suggest Asterisk-Stat, it hasn't been
 updated in a few years, but still works well.  It can be had at:


 http://www.areski.net/areski/index.php?option=com_contenttask=viewid=22Itemid=54


 Doug



 --
 Ben Franklin quote:

 Those who would give up Essential Liberty to purchase a little Temporary
 Safety, deserve neither Liberty nor Safety.


 --
 _
 -- 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

--
_
-- 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