Carrier doesn't register

All installation and configuration problems and questions

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

Carrier doesn't register

Postby shabeensiyam » Wed Jun 18, 2014 6:37 pm

When the agent logs in the softphone rings and he is able to hear "you're the only one in this conference". The problem occurs when dialing, the call does dial but in the end it say Call Congest

sip show peers gives this;

Code: Select all
xbs201/xbs201              192.168.1.103    D   N      37168    Unmonitored           
switch2voip-inbound        66.33.146.52                 5060    Unmonitored           
Switch2Voip/AccNo          169.132.196.11               5060    Unmonitored           


these are the cli outputs for sip debug;

Code: Select all
Jun 19 05:02:39] NOTICE[12655]: chan_sip.c:8178 sip_reregister:    -- Re-registration for  AccNo@sip.switch2voip.us


Code: Select all
10 headers 0 lines) ---
Scheduling destruction of SIP dialog '2493f1123cf73a23529fc98876235f76@192.168.1.101' in 32000 ms (Method: REGISTER)
[Jun 19 05:02:55] NOTICE[12655]: chan_sip.c:13779 handle_response_register: Outbound Registration: Expiry for sip.switch2voip.us is 120 sec (Scheduling reregistration in 105 s)
Last edited by shabeensiyam on Wed Jun 18, 2014 6:42 pm, edited 2 times in total.
shabeensiyam
 
Posts: 8
Joined: Tue Jun 10, 2014 12:28 pm

Re: Carrier doesn't register

Postby shabeensiyam » Wed Jun 18, 2014 6:39 pm

These are the specs of the system

Vicidial VERSION: 2.2.1-237 BUILD: 100510-2015
asterisk-1.4.39.1
dahdi-linux-complete-2.9.1.1+2.9.1
libpri-1.4.15
No extra hardware
shabeensiyam
 
Posts: 8
Joined: Tue Jun 10, 2014 12:28 pm

Re: Carrier doesn't register

Postby saulortega » Wed Jun 18, 2014 10:47 pm

add qualify=yes to your carriers, and post here the carriers.
saulortega
 
Posts: 118
Joined: Mon Jul 29, 2013 11:46 am

Re: Carrier doesn't register

Postby shabeensiyam » Thu Jun 19, 2014 12:29 pm

Registration String :

Code: Select all
register =>USERNAME:PASSWORD@server/siptrunking


Account Entry :

Code: Select all
[Switch2Voip]
username={USERNAME}
type=peer
secret={PASSWORD}
progressinband=never
port=5060
nat=auto
insecure=very
ignoresdpversion=yes
host=server
dtmfmode=rfc2833
context=from-trunk
canreinvite=no
allow=g729&g711&g723
fromuser=+1XXXXXXXXXX (Where XXXXXXXXXX is the phone number you wish to display on the Caller ID.)


Dialpan:

Code: Select all
exten => _91.,1,Set(callerid(num)=+1XXXXXXXXXX)
exten => _91.,2,Set(callerid(ani)=Phone number)
exten => _91.,3,AGI(agi://127.0.0.1:4577/call_log)
exten => _91.,4,Dial(sip/${EXTEN:1}@Switch2Voip,55,o)
exten => _91,5,Hangup
shabeensiyam
 
Posts: 8
Joined: Tue Jun 10, 2014 12:28 pm

Re: Carrier doesn't register

Postby shabeensiyam » Thu Jun 19, 2014 12:35 pm

And just out of curiosity i want to know, if there is any DNS error will that prohibit the registration?
This is because i tried many different VoIP providers and i got the same error in the CLI.

Code: Select all
 == Parsing '/etc/asterisk/manager.conf': Found
  == Manager 'sendcron' logged on from 127.0.0.1
  == Parsing '/etc/asterisk/manager.conf': Found
  == Manager 'sendcron' logged on from 127.0.0.1
  == Manager 'sendcron' logged off from 127.0.0.1
  == Parsing '/etc/asterisk/manager.conf': Found
  == Manager 'sendcron' logged on from 127.0.0.1
[Jun 19 23:39:07] ERROR[6908]: utils.c:967 ast_carefulwrite: write() returned error: Connection reset by peer
[Jun 19 23:39:07] ERROR[6908]: utils.c:967 ast_carefulwrite: write() returned error: Broken pipe
  == Manager 'sendcron' logged off from 127.0.0.1
  == Manager 'sendcron' logged off from 127.0.0.1


And at one point it does register :

Code: Select all
[Jun 19 23:46:54] NOTICE[7749]: chan_sip.c:13822 handle_response_peerpoke: Peer 'Switch2Voip' is now Reachable. (258ms / 2000ms)
Really destroying SIP dialog '384fc2e1089f89021b6ab7742b08c400@192.168.1.101' Method: OPTIONS
Really destroying SIP dialog '0cff96ec6202fa9d115c9a7f186afbae@192.168.1.101' Method: OPTIONS

<------------->
--- (9 headers 0 lines) ---

<--- SIP read from 169.132.196.11:5060 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.1.101:5060;branch=z9hG4bK6cf62443;received=ipaddress;rport=5060
From: <sip:AccNo@sip.switch2voip.us>;tag=as12b287ee
To: <sip:AccNo@sip.switch2voip.us>
Call-ID: 1dac18d043957f4f19310ad67cf691ee@192.168.1.101
Expires: 120
CSeq: 103 REGISTER
Contact: <sip:siptrunking@192.168.1.101:5060>
Server: Net2Phone ippbx
Content-Length: 0


<------------->
--- (10 headers 0 lines) ---
Scheduling destruction of SIP dialog '1dac18d043957f4f19310ad67cf691ee@192.168.1.101' in 32000 ms (Method: REGISTER)
[Jun 19 23:46:54] NOTICE[7749]: chan_sip.c:13779 handle_response_register: Outbound Registration: Expiry for sip.switch2voip.us is 120 sec (Scheduling reregistration in 105 s)

<--- SIP read from 192.168.1.103:55857 --->
shabeensiyam
 
Posts: 8
Joined: Tue Jun 10, 2014 12:28 pm

Re: Carrier doesn't register

Postby omarrodriguezt » Thu Jun 19, 2014 1:34 pm

Try disabling the iptables (before you disable iptables make sure you have physical access to that the server, or you will not be able to connect again)
to disable iptables run iptables -F
http://www.ITContinental.com
Dedicated USA Servers - Vicibox - Vicidial - Limesurvey - Vtiger CRM - More than 15 years experience - Hablamos Español
omarrodriguezt
 
Posts: 667
Joined: Fri Jun 05, 2009 12:22 pm
Location: Dominican Republic

Re: Carrier doesn't register

Postby saulortega » Fri Jun 20, 2014 3:17 pm

Try it:

[Switch2Voip]
username={USERNAME}
type=peer
secret={PASSWORD}
progressinband=never
nat=auto
insecure=very
ignoresdpversion=yes
host=server (I guess here is the IP address of name of your Switch2Voip account)
dtmfmode=rfc2833
qualify=yes
context=trunkinbound
canreinvite=no
allow=g729&g711&g723
fromuser=+1XXXXXXXXXX (Where XXXXXXXXXX is the phone number you wish to display on the Caller ID.)
saulortega
 
Posts: 118
Joined: Mon Jul 29, 2013 11:46 am

Re: Carrier doesn't register

Postby shabeensiyam » Mon Jun 30, 2014 11:59 am

None of the above posted solutions worked.
shabeensiyam
 
Posts: 8
Joined: Tue Jun 10, 2014 12:28 pm

Re: Carrier doesn't register

Postby omarrodriguezt » Mon Jun 30, 2014 12:11 pm

after you added qualify=yes, can you post here the output of the command on the asterisk cli " sip show peers"
http://www.ITContinental.com
Dedicated USA Servers - Vicibox - Vicidial - Limesurvey - Vtiger CRM - More than 15 years experience - Hablamos Español
omarrodriguezt
 
Posts: 667
Joined: Fri Jun 05, 2009 12:22 pm
Location: Dominican Republic

Re: Carrier doesn't register

Postby deficit » Mon Jun 30, 2014 7:10 pm

Switch to voip register string needs to look like this.

register=>xxxxxxxx:xxxx@sip.switch2voip.us/siptrunking
deficit
 
Posts: 30
Joined: Thu Jul 11, 2013 2:01 pm

Re: Carrier doesn't register

Postby shabeensiyam » Mon Jul 07, 2014 4:41 pm

I solved the problem by entering the carrier settings separately on sip.conf
The carrier registers and I'm able to make calls.
Not exactly sure what the problem was but this seems like a temporary fix.
shabeensiyam
 
Posts: 8
Joined: Tue Jun 10, 2014 12:28 pm

Re: Carrier doesn't register

Postby williamconley » Tue Jul 08, 2014 7:11 pm

If your vicidial server did not register to the carrier, the ONLY thing that matters was the registration string.

Given the odds, you placed a slightly different string in the file than you had in your carrier settings.

Try deleting the registration string from the carrier settings. The delete everything else from the sip.conf file (be sure it's all in the Vicidial carrier, of course, just as it was removed from the sip.conf file) and activate the carrier. That should not affect registration or inbound/outbound calls.

Then try moving the registration string into the carrier settings and delete it from the sip.conf file as well.

If you want to be very careful about it, move only one setting at a time. Check after each change. You'll find it eventually. 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!)


Return to Support

Who is online

Users browsing this forum: Bing [Bot] and 125 guests