Koozali.org: home of the SME Server

Modify Extension lengths and Not able to make INTERNAL CALLS ( SOLVED )

Offline Teviot

  • *
  • 610
  • +0/-0
S

Is there an easy way to convert from 4 digit length extension number to 3 digit length extension that doesn't create too many drama's?

I have read and used the command  to set 3 digit length extension with he PBX at work and it is working ok.

I'm looking at converting and exsisting PBX that has 4 digit length extension.
« Last Edit: May 25, 2009, 05:34:55 AM by teviot »
Regards
M0GLJ
......................................................
I am new to SAIL SME Server v8b6 and have been using SME for many years.
I have already done some research and only ask questions if I still can't work it out.

Offline versa

  • ****
  • 109
  • +0/-0
Re: Entension lengths
« Reply #1 on: May 19, 2009, 09:05:06 AM »
......

Offline Teviot

  • *
  • 610
  • +0/-0
Re: Entension lengths
« Reply #2 on: May 19, 2009, 09:17:57 AM »
Ready read that.  Thank you anyway.

Was looking fo a solution for and existing 4 digit extention system to convert is to a 3 digit system
Regards
M0GLJ
......................................................
I am new to SAIL SME Server v8b6 and have been using SME for many years.
I have already done some research and only ask questions if I still can't work it out.

Offline SARK devs

  • *****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
Re: Extension lengths
« Reply #3 on: May 19, 2009, 02:19:59 PM »
There isn't an automatic way to do it.  However, you can do the convert and then edit each extension and overtype the new extension number and save it back.  That should work.

S


Offline Teviot

  • *
  • 610
  • +0/-0
Re: Extension lengths
« Reply #4 on: May 22, 2009, 09:39:48 AM »
S

Completed the transformation.  I get external call coming in and I can make calls to external.

I can't make internal calls.

Any Idea's?

Everything appears to be in order
« Last Edit: May 22, 2009, 09:43:58 AM by teviot »
Regards
M0GLJ
......................................................
I am new to SAIL SME Server v8b6 and have been using SME for many years.
I have already done some research and only ask questions if I still can't work it out.

Offline David Harper

  • *
  • 653
  • +0/-0
  • Watch this space
    • Workgroup Technology Solutions
Re: Extension lengths
« Reply #5 on: May 22, 2009, 10:56:41 AM »
What does Asterisk show when you attempt to make an internal call?

Offline Teviot

  • *
  • 610
  • +0/-0
Re: Extension lengths
« Reply #6 on: May 22, 2009, 11:32:33 AM »
What does Asterisk show when you attempt to make an internal call?

Code: [Select]
sail*CLI>
    -- Executing [402@internal:1] AGI("SIP/401-08d36110", "selintra|OutCluster|402") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/selintra
    -- AGI Script selintra completed, returning 0
    -- Executing [402@default:1] AGI("SIP/401-08d36110", "selintra|InCall|") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/selintra
    -- AGI Script Executing Application: (Dial) Options: (SIP/402|30|tT)
    -- Called 402
[May 22 19:30:39] NOTICE[4869]: chan_sip.c:2941 auto_congest: Auto-congesting SIP/402-08d3a088
    -- SIP/402-08d3a088 is circuit-busy
  == Everyone is busy/congested at this time (1:0/1/0)
    -- AGI Script Executing Application: (Playback) Options: (silence/1)
    -- <SIP/401-08d36110> Playing 'silence/1' (language 'en')
    -- AGI Script Executing Application: (Voicemail) Options: (402|u)
    -- <SIP/401-08d36110> Playing 'vm-theperson' (language 'en')
    -- Got SIP response 400 "Bad Request" back from 192.168.76.14
    -- <SIP/401-08d36110> Playing 'digits/4' (language 'en')
    -- <SIP/401-08d36110> Playing 'digits/0' (language 'en')
    -- <SIP/401-08d36110> Playing 'digits/2' (language 'en')
    -- <SIP/401-08d36110> Playing 'vm-isunavail' (language 'en')
    -- <SIP/401-08d36110> Playing 'vm-intro' (language 'en')
    -- <SIP/401-08d36110> Playing 'beep' (language 'en')
    -- Recording the message
    -- x=0, open writing:  /var/spool/asterisk/voicemail/default/402/tmp/JB1IRc format: wav49, 0x8d35b18
    -- User hung up
    -- Recording was 0 seconds long but needs to be at least 8 - abandoning
  == Spawn extension (default, 402, 1) exited non-zero on 'SIP/401-08d36110'
    -- Executing [h@default:1] Hangup("SIP/401-08d36110", "") in new stack
  == Spawn extension (default, h, 1) exited non-zero on 'SIP/401-08d36110'

I'm not sure if what I'm thinking is correct but it's almost like there is an incorrect codec or IP range is wrong.  I'm not the expert here so I really am guessing

Code: [Select]
sail*CLI> sip show peers
Name/username              Host            Dyn Nat ACL Port     Status               
404/ext404                 (Unspecified)    D   N      0        UNKNOWN             
403/ext403                 192.168.76.14    D   N      5060     OK (208 ms)           
402/ext402                 192.168.76.41    D          5061     OK (15 ms)           
401/ext401                 192.168.76.41    D          5060     OK (14 ms)           
400/ext400                 192.168.76.40    D          5061     OK (8 ms)           
11 sip peers [Monitored: 10 online, 1 offline Unmonitored: 0 online, 0 offline]
« Last Edit: May 22, 2009, 11:34:30 AM by teviot »
Regards
M0GLJ
......................................................
I am new to SAIL SME Server v8b6 and have been using SME for many years.
I have already done some research and only ask questions if I still can't work it out.

Offline SARK devs

  • *****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
Re: Extension lengths
« Reply #7 on: May 22, 2009, 05:32:21 PM »
Ext402 is an spa2002type device... yes?

Can you call from the spa to the device at .76.40(Ext400).

Autocongestion usually happens after a bad SIP response of some kind.  You might want to try deleting the spa extensions and recreating them.

Something is not as it should be but you are doing something we've never tried. (i.e. moving from 4 digits to 3, after the fact)  :) 

S

Offline Teviot

  • *
  • 610
  • +0/-0
Re: Extension lengths
« Reply #8 on: May 23, 2009, 06:13:10 AM »
Ext402 is an spa2002type device... yes?

Can you call from the spa to the device at .76.40(Ext400).

Autocongestion usually happens after a bad SIP response of some kind.  You might want to try deleting the spa extensions and recreating them.

Something is not as it should be but you are doing something we've never tried. (i.e. moving from 4 digits to 3, after the fact)  :) 

S

S

Ext400 is a Linksys SPA-3102
Ext401 & Ext402 are on a Linksys PAP2 ATA Box
Ext403 is an Nokia N95

I deleted oall extensions and then recreated them. All works fine now.

Thanks S
Regards
M0GLJ
......................................................
I am new to SAIL SME Server v8b6 and have been using SME for many years.
I have already done some research and only ask questions if I still can't work it out.

Offline Teviot

  • *
  • 610
  • +0/-0
Re: Extension lengths and Not able to make INTERNAL CALLS ( SOLVED )
« Reply #9 on: May 25, 2009, 05:33:11 AM »
S

From the conversion I have completed, I conclude this.

1. To convert from 4 digit to 3 digit is issue the command

Code: [Select]
db selintra-work setprop global EXTLEN 3
and issue a COMMIT

2. Delete exsiting extensions and issue a COMMIT

3. Recreate them and issue a COMMIT.

4. Check and modify routes and Aliases if needed and issue a COMMIT.

5. Job complete ...  Test to make sure thing work the desired way.

Thanks for your help S, David & Versa
« Last Edit: May 25, 2009, 05:35:46 AM by teviot »
Regards
M0GLJ
......................................................
I am new to SAIL SME Server v8b6 and have been using SME for many years.
I have already done some research and only ask questions if I still can't work it out.