Re: [asterisk-users] PRI DEBUG

2013-04-11 Thread Richard Mudgett


- Original Message -
 
 hi,
 
 strange behaviour while trying to use pri debugging on asterisk 11.x
 ...
 
 please take a look:
 
 bas1104*CLI pri show version
 libpri version: 1.4.13
 bas1104*CLI dahdi show version
 DAHDI Version: 2.6.1 Echo Canceller: HWEC
 bas1104*CLI help pri
 pri intense debug span no description available
 pri service disable channel Remove a channel from service
 pri service enable channel Return a channel to service
 pri set debug {on|off |hex|inte Enables PRI debugging on a span
 pri set debug file Sends PRI debug output to the specified file
 pri show channels Displays PRI channel information
 pri show debug Displays current PRI debug settings
 pri show spans Displays PRI span information
 pri show span Displays PRI span information
 pri show version Displays libpri version
 bas1104*CLI help dahdi
 dahdi destroy channel Destroy a channel
 dahdi restart Fully restart DAHDI channels
 dahdi set dnd Sets/resets DND (Do Not Disturb) mode on a channel
 dahdi set hwgain Set hardware gain on a channel
 dahdi set swgain Set software gain on a channel
 dahdi show cadences List cadences
 dahdi show channels [group|con Show active DAHDI channels
 dahdi show channel Show information on a channel
 dahdi show status Show all DAHDI cards status
 dahdi show version Show the DAHDI version in use
 
 currently all debug off:
 
 bas1104*CLI pri show debug
 Span 1: Debug: No Intense: No
 Span 2: Debug: No Intense: No
 Span 3: Debug: No Intense: No
 Span 4: Debug: No Intense: No
 
 switching it on (which currently works as expected)
 
 
 bas1104*CLI pri intense debug span 1
 Enabled debugging on span 1
 
 
 oops, still shows no debug but it IS activated...

It activated a different mode of debug than what you expected
because that command is an alias that was not updated.

 
 bas1104*CLI pri show debug
 Span 1: Debug: No Intense: No
 Span 2: Debug: No Intense: No
 Span 3: Debug: No Intense: No
 Span 4: Debug: No Intense: No
 
 huh... how to disable it again? on some machines I can do so with
 pri no debug span nr but not here... gives same result (no
 such command) and debug is still enabled...
 
 bas1104*CLI pri set debug off
 No such command 'pri set debug off' (type 'core show help pri set'
 for other possible commands)
 bas1104*CLI
 
 
 so... whats the right way to disable pri debugging?

The correct command is pri set debug {on|off|intense} span x.
The pri intense debug span x command is an alias for
pri set debug 2 span x that didn't get updated when the real
command was changed to pri set debug intense span x.

This will show the help you need:
bas1104*CLI help pri set debug off span

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] PRI DEBUG

2013-04-11 Thread Yves A.

thanks, that command syntax works.

yves

Am 11.04.2013 18:51, schrieb Richard Mudgett:


- Original Message -

hi,

strange behaviour while trying to use pri debugging on asterisk 11.x
...

please take a look:

bas1104*CLI pri show version
libpri version: 1.4.13
bas1104*CLI dahdi show version
DAHDI Version: 2.6.1 Echo Canceller: HWEC
bas1104*CLI help pri
pri intense debug span no description available
pri service disable channel Remove a channel from service
pri service enable channel Return a channel to service
pri set debug {on|off |hex|inte Enables PRI debugging on a span
pri set debug file Sends PRI debug output to the specified file
pri show channels Displays PRI channel information
pri show debug Displays current PRI debug settings
pri show spans Displays PRI span information
pri show span Displays PRI span information
pri show version Displays libpri version
bas1104*CLI help dahdi
dahdi destroy channel Destroy a channel
dahdi restart Fully restart DAHDI channels
dahdi set dnd Sets/resets DND (Do Not Disturb) mode on a channel
dahdi set hwgain Set hardware gain on a channel
dahdi set swgain Set software gain on a channel
dahdi show cadences List cadences
dahdi show channels [group|con Show active DAHDI channels
dahdi show channel Show information on a channel
dahdi show status Show all DAHDI cards status
dahdi show version Show the DAHDI version in use

currently all debug off:

bas1104*CLI pri show debug
Span 1: Debug: No Intense: No
Span 2: Debug: No Intense: No
Span 3: Debug: No Intense: No
Span 4: Debug: No Intense: No

switching it on (which currently works as expected)


bas1104*CLI pri intense debug span 1
Enabled debugging on span 1


oops, still shows no debug but it IS activated...

It activated a different mode of debug than what you expected
because that command is an alias that was not updated.


bas1104*CLI pri show debug
Span 1: Debug: No Intense: No
Span 2: Debug: No Intense: No
Span 3: Debug: No Intense: No
Span 4: Debug: No Intense: No

huh... how to disable it again? on some machines I can do so with
pri no debug span nr but not here... gives same result (no
such command) and debug is still enabled...

bas1104*CLI pri set debug off
No such command 'pri set debug off' (type 'core show help pri set'
for other possible commands)
bas1104*CLI


so... whats the right way to disable pri debugging?

The correct command is pri set debug {on|off|intense} span x.
The pri intense debug span x command is an alias for
pri set debug 2 span x that didn't get updated when the real
command was changed to pri set debug intense span x.

This will show the help you need:
bas1104*CLI help pri set debug off span

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




--
_
-- 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] PRI debug

2005-05-05 Thread Kris Boutilier
 -Original Message-
 From: Dan Goscomb [mailto:[EMAIL PROTECTED]
 Sent: Thursday, May 05, 2005 1:48 AM
 To: Asterisk-Users@lists.digium.com
 Subject: [Asterisk-Users] PRI debug
 
 
 Hi
 
 I have a problem in that every time i try to dial a number i get the
 error back that the number is unassigned (from an intense debug):
 
{clip}

From your email:

 Called Number (len=13) [ Ext: 1  TON: Subscriber Number (4)  NPI: 
 ISDN/Telephony Numbering Plan (E.164/E.163) (1) '0800800152' ]

Perhaps you're using the wrong Numbering Plan for your carrier? See 
'switchtype=' in /etc/asterisk/zapata.conf

:-)
___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


RE: [Asterisk-Users] PRI debug

2005-05-05 Thread Dan Goscomb
I am using euroisdn

this is a BT ISDN30e (a euroisdn circuit)



On Thu, 2005-05-05 at 01:53 -0700, Kris Boutilier wrote:
  -Original Message-
  From: Dan Goscomb [mailto:[EMAIL PROTECTED]
  Sent: Thursday, May 05, 2005 1:48 AM
  To: Asterisk-Users@lists.digium.com
  Subject: [Asterisk-Users] PRI debug
  
  
  Hi
  
  I have a problem in that every time i try to dial a number i get the
  error back that the number is unassigned (from an intense debug):
  
 {clip}
 
 From your email:
 
  Called Number (len=13) [ Ext: 1  TON: Subscriber Number (4)  NPI: 
  ISDN/Telephony Numbering Plan (E.164/E.163) (1) '0800800152' ]
 
 Perhaps you're using the wrong Numbering Plan for your carrier? See 
 'switchtype=' in /etc/asterisk/zapata.conf
 
 :-)
 ___
 Asterisk-Users mailing list
 Asterisk-Users@lists.digium.com
 http://lists.digium.com/mailman/listinfo/asterisk-users
 To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
 
-- 
Dan Goscomb [EMAIL PROTECTED]

___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


RE: [Asterisk-Users] PRI debug

2005-05-05 Thread Dan Goscomb
hmmm

it seems that when i dial the number without the leading 0 it works...

with the leading 0 it does not

any ideas?


On Thu, 2005-05-05 at 09:59 +0100, Dan Goscomb wrote:
 I am using euroisdn
 
 this is a BT ISDN30e (a euroisdn circuit)
 
 
 
 On Thu, 2005-05-05 at 01:53 -0700, Kris Boutilier wrote:
   -Original Message-
   From: Dan Goscomb [mailto:[EMAIL PROTECTED]
   Sent: Thursday, May 05, 2005 1:48 AM
   To: Asterisk-Users@lists.digium.com
   Subject: [Asterisk-Users] PRI debug
   
   
   Hi
   
   I have a problem in that every time i try to dial a number i get the
   error back that the number is unassigned (from an intense debug):
   
  {clip}
  
  From your email:
  
   Called Number (len=13) [ Ext: 1  TON: Subscriber Number (4)  NPI: 
   ISDN/Telephony Numbering Plan (E.164/E.163) (1) '0800800152' ]
  
  Perhaps you're using the wrong Numbering Plan for your carrier? See 
  'switchtype=' in /etc/asterisk/zapata.conf
  
  :-)
  ___
  Asterisk-Users mailing list
  Asterisk-Users@lists.digium.com
  http://lists.digium.com/mailman/listinfo/asterisk-users
  To UNSUBSCRIBE or update options visit:
 http://lists.digium.com/mailman/listinfo/asterisk-users
  
-- 
Dan Goscomb [EMAIL PROTECTED]

___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


RE: [Asterisk-Users] PRI debug

2005-05-05 Thread Peter Svensson
On Thu, 5 May 2005, Dan Goscomb wrote:

 it seems that when i dial the number without the leading 0 it works...
 
 with the leading 0 it does not
 
 any ideas?

You need pridialplan=unknown in your config file. The unknown TON/NPI 
means that the PSTN should interpret the called party number as if it was 
dialed on a normal phone, prefix zeroes and all. 

The default for Asterisk unfortunatly is national TON which is almost 
never correct. That TON implies that the number is a fully formed national 
number without prefixes. I.e. including an area code but no leading zero. 
It is impossible to dial an international number with that TON. 
international would be another possible choise.

Using the nationalprefix, internationalprefix etc settings Asterisk 
can be made to change the outgoing TON depending on the number dialed. 

For most pstn connections using the unknown TON is advisable. 

Peter


___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


RE: [Asterisk-Users] PRI debug

2005-05-05 Thread Dan Goscomb
all working

thanks!


On Thu, 2005-05-05 at 12:39 +0200, Peter Svensson wrote:
 On Thu, 5 May 2005, Dan Goscomb wrote:
 
  it seems that when i dial the number without the leading 0 it works...
  
  with the leading 0 it does not
  
  any ideas?
 
 You need pridialplan=unknown in your config file. The unknown TON/NPI 
 means that the PSTN should interpret the called party number as if it was 
 dialed on a normal phone, prefix zeroes and all. 
 
 The default for Asterisk unfortunatly is national TON which is almost 
 never correct. That TON implies that the number is a fully formed national 
 number without prefixes. I.e. including an area code but no leading zero. 
 It is impossible to dial an international number with that TON. 
 international would be another possible choise.
 
 Using the nationalprefix, internationalprefix etc settings Asterisk 
 can be made to change the outgoing TON depending on the number dialed. 
 
 For most pstn connections using the unknown TON is advisable. 
 
 Peter
 
 
 ___
 Asterisk-Users mailing list
 Asterisk-Users@lists.digium.com
 http://lists.digium.com/mailman/listinfo/asterisk-users
 To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
 
-- 
Dan Goscomb [EMAIL PROTECTED]

___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users