Trunk Not working

General and Support topics relating to ViciDialNow and GoAutoDial ISO installers

Moderators: enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, s0lid

Trunk Not working

Postby bryan.kewl » Thu Jul 28, 2011 2:17 pm

Hi

I have Installed GoAutoDial 2.1 CE. And haven't made any changes in any config files. I followed the guide and added a carrier (trunk) and when I ran 'sip show registry' it return empty. Config are

Carrier ID: MYTESTCARRIER
Carrier Name: mytestcarrier
Carrier Description:
Registration String: <<username>>:<<password>>@<<voip_provider_ip>>
Template ID: -NONE-
Account Entry:
Code: Select all
[mytestcarrier]
disallow=all
allow=all
type=friend
username=<<username>>
secret=<<password>>
fromuser=<<username>>
host=<<voip_provider_ip>>
dtmfmode=rfc2833
insecure=very
nat=auto
context=from-internal
qualify=yes
canreinvite=no

Protocol: SIP
Globals String: MYTESTCARRIER = SIP/mytestcarrier
Dialplan Entry:
Code: Select all
exten => _91XXXXXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _91XXXXXXXXXX,2,Dial(SIP/${EXTEN:1}@mytestcarrier,,tTo)
exten => _91XXXXXXXXXX,3,Hangup

Active: Y

I have also tried using
X.
.
<<empty>>
for Dialplan Entries.

Also tried adding "register => " before the registration string.

Also tried adding/removing
Code: Select all
nat=auto
context=from-internal
qualify=yes
canreinvite=no

in the account entry. Also tried different values for context like
default
trunkinbound

but after all the possible combinations whenever I ran "SIP show registry" in asterisk console it return empty

go*CLI> sip show registry
Host Username Refresh State Reg.Time
go*CLI>

Plz help.
bryan.kewl
 
Posts: 52
Joined: Mon Jul 04, 2011 5:14 pm

Postby williamconley » Thu Jul 28, 2011 3:49 pm

ALWAYS post your VICIDIAL version with build. 8)

registration string requires "register =>" at the beginning

then use sip debug to find the results of the registration attempt.

do not forget to wait at least one minute before checking.

also check your "sip-vicidial.conf" to verify your registration string ended up there.
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Postby bryan.kewl » Thu Jul 28, 2011 11:28 pm

thanks williamconley. its working now. I think 1min wait is the key as I was checking right after making the changes.


VICIDIAL VERSION: 2.4-325c BUILD: 110430-1924
bryan.kewl
 
Posts: 52
Joined: Mon Jul 04, 2011 5:14 pm

Postby williamconley » Fri Jul 29, 2011 3:44 pm

Excellent. Now go buy the manual from The Vicidial Group (the guys who MADE and MAINTAIN the free software you are using wrote a BOOK on how to use it, with stuff you will save hours of research knowing ... not bad at their price, I highly recommend it! Keep your hair! LOL).

Then come back here and help newbies with easy problems (reduces the load on the rest of us, and causes The Vicidial Group to spend their time developing! which helps EVERYONE!)

And NO, I don't get paid by Vici. I just lurk loudly. LOL 8-)
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Postby scenarist » Thu Aug 25, 2011 3:49 am

I have installed goautodial ce 2.1
(VERSION: 2.4-309aBUILD: 110430-1642)

I can not to register sip trunk (sipgate.de).
I set static ip for goautodial 192.168.1.132.
This is my config of carrier


Code: Select all
carrier id: sipgate
register => username:password@sipconnect.sipgate.de/username


[sipgate]
type=peer
host=sipconnect.sipgate.de
outboundproxy=sipconnect.live.sipgate.de
port=5060
username=xxxxx
fromuser=xxxxxx
fromdomain=sipconnect.sipgate.de
secret=xxxxx
dtmfmode=rfc2833
insecure=port,invite
canreinvite=no
registertimeout=600
disallow=all
allow=alaw&ulaw
[/code]
Code: Select all
server IP: 192.168.1.132
active: Y

Template id:none
Global strings: none

I waited 1 minute but sip show registry shows me
Code: Select all
go*CLI> sip show registry
Host                            Username       Refresh State                Reg.Time

I also set sip set debug to 15 and sip set verbose to 15 but nothing!
I checked sip-vicidial.conf but inside it I have only phones from [8002] to [8020]




[/code]
scenarist
 
Posts: 102
Joined: Mon May 23, 2011 2:53 am

Postby williamconley » Thu Aug 25, 2011 5:13 pm

get the ip address of sipconnect.live.sipgate.de
Code: Select all
ping sipconnect.live.sipgate.de -c 2

use that ip to debug sip
Code: Select all
asterisk -R
sip set debug ip 217.10.68.150
if you do not get any results from that, verify that your carrier is ACTIVE (Y) and that the register => line is placed in sip-vicidial.conf where it belongs. If it is not, have you changed the IP of this machine since building it? did you follow the instructions for changing the IP from the goautodial wiki or the vicidial manager's manual or both?
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Postby scenarist » Fri Aug 26, 2011 2:38 am

Lets start from the beginning.
I tried first add trunk via GUI. Before that I setup my IP address from cmd via "setup"(192.168.1.132), sub,gateway and dns servers then under Network and System > config eth0 > I added new IP and update database IP. (updated IP is successfull). I followed guide from goautodial wiki.

But when I login via putty I get the following default messages
For access to the VICIDIAL admin and agent web GUI use this URL
http://192.168.1.2 (ip is not changed)


sip show peers and sip show registry shows me nothing!
Inside sip-vicidial.conf and sip.conf I have nothing i.e I have not config of my trunk.
I have setup sip set debug ip 217.10.68.150, but nothing.
At this moment I will try to add manually carrier in sip.conf
scenarist
 
Posts: 102
Joined: Mon May 23, 2011 2:53 am

Postby scenarist » Fri Aug 26, 2011 2:58 am

I just added config of carrier manually in sip.conf after that I run sip reload and now I have the following
Code: Select all
[Aug 26 03:54:34] NOTICE[3570]: chan_sip.c:13822 handle_response_peerpoke: Peer 'sipgate' is now Reachable. (60ms / 2000ms)
[Aug 26 03:54:34] Really destroying SIP dialog '7a5f446527a20fd3244bebc3439725b6@192.168.1.132' Method: OPTIONS
go*CLI> sip show registry
Host                            Username       Refresh State                Reg.Time
go*CLI> sip show peers
Name/username              Host            Dyn Nat ACL Port     Status
sipgate/xxxxx          217.10.68.150        N      5060     OK (60 ms)
8020/8020                  (Unspecified)    D   N      0        UNKNOWN
8019/8019                  (Unspecified)    D   N      0        UNKNOWN
8018/8018                  (Unspecified)    D   N      0        UNKNOWN
8017/8017                  (Unspecified)    D   N      0        UNKNOWN
8016/8016                  (Unspecified)    D   N      0        UNKNOWN
8015/8015                  (Unspecified)    D   N      0        UNKNOWN
8014/8014                  (Unspecified)    D   N      0        UNKNOWN
8013/8013                  (Unspecified)    D   N      0        UNKNOWN
8012/8012                  (Unspecified)    D   N      0        UNKNOWN
8011/8011                  (Unspecified)    D   N      0        UNKNOWN
8010/8010                  (Unspecified)    D   N      0        UNKNOWN
8009/8009                  (Unspecified)    D   N      0        UNKNOWN
8008/8008                  (Unspecified)    D   N      0        UNKNOWN
8007/8007                  (Unspecified)    D   N      0        UNKNOWN
8006/8006                  (Unspecified)    D   N      0        UNKNOWN
8005/8005                  (Unspecified)    D   N      0        UNKNOWN
8004/8004                  (Unspecified)    D   N      0        UNKNOWN
8003/8003                  (Unspecified)    D   N      0        UNKNOWN
8002/8002                  (Unspecified)    D   N      0        UNKNOWN
8001/8001                  (Unspecified)    D   N      0        UNKNOWN
21 sip peers [Monitored: 1 online, 20 offline Unmonitored: 0 online, 0 offline]

But I still have
sip show registry
Code: Select all
go*CLI> sip show registry
Host                            Username       Refresh State                Reg.Time
go*CLI>


I dont know what is my next step to get information from sip show registry ! ?
scenarist
 
Posts: 102
Joined: Mon May 23, 2011 2:53 am

Postby scenarist » Fri Aug 26, 2011 4:17 am

OK!
I have successful go out via my carrier but I still have nothing from command sip show registry.
I also added dialplan in extensions.conf according to my needs and under section [globals] added SIPtrunk=SIP/sipgate

exten => _000387XXXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _000387XXXXXXXX,2,Dial(${SIPtrunk}/${EXTEN:1},55,o)
exten => _000387XXXXXXXX,3,Hangup

I am a little bit confused about GUI of vicidial because it seems for gui that is unusable.??? Very interesting!
When I try to add a new trunk via gui , it is not added in sip.conf ???

Maybe I must update some tools or what?
My installed version is goautodial 2.1 CE
Asterisk 1.4.39.1-vici
VERSION: 2.4-309a
BUILD: 110430-1642

p.s How to change default time zone ?
scenarist
 
Posts: 102
Joined: Mon May 23, 2011 2:53 am

Postby williamconley » Fri Aug 26, 2011 9:27 am

did you use the getting started guide for GoAutoDials installation or did you "wing it"? What about the changing of the IP address? Did you "just do it" or did you follow instructions?

have you read the Vicidial Manager's Manual from EFLO.net (very necessary after installation is complete ...).

If you had followed my instruction and answered it, we'd be on the path ...

get the ip address of sipconnect.live.sipgate.de
Code: Select all
ping sipconnect.live.sipgate.de -c 2


use that ip to debug sip
Code: Select all
asterisk -R
sip set debug ip 217.10.68.150
IF this shows no activity related to registration, then your system is not attempting and we can determine why

... which may well be that you changed your IP address but did not notify Vicidial properly ... and it is not writing your "-vicidial.conf" files. So nothing you change in the GUI will have any effect on a configuration file until your IP is properly registered.
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Postby scenarist » Fri Aug 26, 2011 10:46 am

OK @williamconley.
P.S thank you very much for your help...

I installed again goautodial according Getting Started Guide. Exactly according it. Now when I login via putty I see correct IP (192.168.1.70).
At this moment I will try to add a new carrier, I think that will be everything ok.
scenarist
 
Posts: 102
Joined: Mon May 23, 2011 2:53 am

Postby scenarist » Fri Aug 26, 2011 11:13 am

Unfortunatelly I have the same situation.
I did
Code: Select all
go*CLI> sip set debug ip 217.10.68.150
SIP Debugging Enabled for IP: 217.10.68.150
[Aug 26 12:08:53]   == Refreshing DNS lookups.
go*CLI>


when try to register carrier via gui I get nothing again , nothings happens ?
I did everything according Getting started Guide located on goautodial.org under wiki.
Note: I installed goautodial on virtualbox if it mean something!
Under
Configuration file: /etc/sysconfig/network-scripts/ifcfg-eth0
Code: Select all
# Intel Corporation 82540EM Gigabit Ethernet Controller
DEVICE=eth0
BOOTPROTO=static
HWADDR=08:00:27:51:42:29
IPADDR=192.168.1.70
NETMASK=255.255.255.0
ONBOOT=yes
GATEWAY=192.168.1.1
scenarist
 
Posts: 102
Joined: Mon May 23, 2011 2:53 am

Postby scenarist » Fri Aug 26, 2011 12:53 pm

Uhf...

Finally I have successfull registered carrier. Problem was on path
Configuration file: /etc/astguiclient.conf
Code: Select all
# The IP address of this machine
VARserver_ip => 192.168.1.2


ONLY on that place it stayed default IP address!

I have changed it and now everything is ok.
Code: Select all
go*CLI> sip show registry
Host                            Username       Refresh State                Reg.Time
sipconnect.sipgate.de:5060      xxxxxx          105 Registered           Fri, 26 Aug 2011 19:49:23
scenarist
 
Posts: 102
Joined: Mon May 23, 2011 2:53 am

Postby williamconley » Fri Aug 26, 2011 7:14 pm

Please note: you will not be able to use a virtualbox based system in production for more than 1 or 2 agents. Beware.
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Postby scenarist » Fri Aug 26, 2011 11:26 pm

ok. Thanks for suggestion, I didn't know for that. Why?
But if I have a high performance hardware?
scenarist
 
Posts: 102
Joined: Mon May 23, 2011 2:53 am

Postby williamconley » Sat Aug 27, 2011 11:59 am

if you have a 3.2 Ghz 8 processor system running your virtualbox you MAY be able to put 10 users on it in that virtualbox. but if you put that same system directly on the hardware, you'll easily triple that result. vicidial does not work well when trying to use hi-res timing in a system specifically "sharing" timing among multiple OS's. nature of the beast. Great for testing, but you cannot (as of this date) run Vicidial Virtual in Production above a couple agents. (Ordinarily: One).
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)


Return to ViciDialNow - GoAutoDial

Who is online

Users browsing this forum: No registered users and 74 guests