Page 1 of 1

Station to Station: Extension Not Found

PostPosted: Wed Dec 01, 2010 12:33 pm
by ejaboneta
I can't seem to get our phones to call eachother. The stations are all working, I can call out and in. I have DIDs that are sent to both the extension 1004 and 1007 so I know they work. But when I try to call any extension manually, I get a busy signal.

Code: Select all
[Dec  1 09:18:25] NOTICE[28765]: chan_sip.c:15147 handle_request_invite: Call from '1004' to extension '1007' rejected because extension not found.



GoAutoDial CE 2.2.1-237 | BUILD: 100510-2015 | Asterisk 1.4.27.1-1 | Single Server | No Extra Software After Installation

PostPosted: Wed Dec 01, 2010 4:13 pm
by williamconley
what context do you have your agent phones in?

PostPosted: Wed Dec 01, 2010 4:15 pm
by ejaboneta
default

PostPosted: Wed Dec 01, 2010 4:29 pm
by williamconley
Interesting.

In your extensions-vicidial.conf, do your phones appear under:
Code: Select all
; Phones direct dial extensions:
exten => 300,1,Dial(IAX2/cc300|60|)
exten => 300,2,Goto(default,85026666666666300,1)
exten => 301,1,Dial(IAX2/cc301|60|)
exten => 301,2,Goto(default,85026666666666301,1)
e
(obviously with YOUR extensions instead ...)

PostPosted: Wed Dec 01, 2010 4:31 pm
by ejaboneta
Code: Select all
exten => 1004,1,Dial(SIP/1004|60|)
exten => 1004,2,Goto(default,850266666666661004,1)
exten => 1005,1,Dial(SIP/1005|60|)
exten => 1005,2,Goto(default,850266666666661005,1)
exten => 1006,1,Dial(SIP/1006|60|)
exten => 1006,2,Goto(default,850266666666661006,1)
exten => 1007,1,Dial(SIP/1007|60|)
exten => 1007,2,Goto(default,850266666666661007,1)

PostPosted: Wed Dec 01, 2010 4:59 pm
by williamconley
have you noticed that the default ones have "cc" in front of a 3 digit number?

PostPosted: Wed Dec 01, 2010 5:11 pm
by ejaboneta
Yes, should my extensions have that also?

PostPosted: Wed Dec 01, 2010 5:28 pm
by williamconley
Have you tried it with the default extensions in the system to test such a theory?

One of the things about a system THIS complex is using the existing configuration before making changes to it, then when you DO make changes be sure they worked (completely). If it turns out that cc105 works but 1005 does not ... either switch back or find the "Other" differences (or perhaps change to cc1005 LOL).

Please remember that there IS a difference in "105" and "cc105" (both are used, but each in its appropriate location, for the single phone). Agents on a standard system dial "105" (not cc105, since there is no cc on the phone's keyboard) to dial an extension. yet there is a cc in front of it when creating the SIP context.

Be watching your sip-vicidial.conf and your extensions-vicidial.conf and your asterisk output to find your issue. :)

PostPosted: Wed Dec 01, 2010 5:46 pm
by ejaboneta
Is the error message I'm getting only when the extension isn't found in a dialplan? I tried changing one of the phones to a default extension but I get the same thing.

PostPosted: Wed Dec 01, 2010 5:51 pm
by williamconley
ejaboneta wrote:Is the error message I'm getting only when the extension isn't found in a dialplan? I tried changing one of the phones to a default extension but I get the same thing.
show CLI output from this

PostPosted: Wed Dec 01, 2010 7:10 pm
by ejaboneta
Code: Select all
[Dec  1 15:09:27] NOTICE[28765]: chan_sip.c:15147 handle_request_invite: Call from '1004' to extension '107' rejected because extension not found.



I added this to the extensions.conf to make it work, I hope it doesn't disrupt anything.


Code: Select all
exten => _1XXX,1,Dial(SIP/${EXTEN},20)

PostPosted: Wed Dec 01, 2010 7:24 pm
by williamconley
I do not think you are using a "default" extension 107.

By default it would dial "cc107" (exten 107 would go to this entry, and be converted to SIP/cc107, thus accessing the sip context of cc107, which is in sip-vicidial.conf, successfully). Your example CLI output just dialed 107 without this conversion

Code: Select all
exten => 107,1,Dial(SIP/cc107|60|)
So ... your setup is altered?

PostPosted: Wed Dec 01, 2010 7:33 pm
by ejaboneta
I don't think I've changed much. Where can I get a copy of an unaltered extensions.conf for GoAutoDial to compare?

PostPosted: Wed Dec 01, 2010 9:50 pm
by williamconley
it's not in extensions.conf, it's the default phones that were in "admin->phones" (or should have been). these are put in extensions-vicidial.conf by the update script in the system (activated by the hopper perl script keepalive every minute)

a quick way to get a fresh set is to execute the sql statement that adds 50 sip and 50 iax2 phones, then execute the server ip update script (so those phones are assigned to your server's ip address instead of 10.10.10.15, which is the ip address in the script.)

extras/sip-iax_phones.sql (sql script to add 50 sip/iax phones, located in your /usr/src folder for your installation, varies by install ... be sure it matches your installed version)

/usr/share/astguiclient/ADMIN_update_server_ip.pl (script to modify the server ip address, use 10.10.10.15 as the "old" ip and your server's real ip address as the "new" ip and it will reassign the phones to your server)