Problem connecting to SIP Server

hi ,

am a newbee to asterixwin32. I got a SIP account with callcentric.com I have this frustrating problem of connecting to their server. This is what i did:

1 Edit file sip.conf:

 [color=blue] [general]
  dtmfmode = rfc2833
  context=from-callcentric
  srvlookup=yes
  register => 17772791762:password@callcentric.com/17772791762[/color]


  [color=blue][callcentric]
  type=peer
  context=from-callcentric
  host=callcentric.com
  username=17772791762
  secret=password
  fromuser=17772791762
  fromdomain=callcentric.com
  insecure=very[/color]


 [color=blue][123]
  context=to-callcentric
  type=friend
  username=123
  secret=PHONESECRET
  host=dynamic[/color]

2 Edit the file extensions.conf:

 [color=blue][from-callcentric]
  exten => s,1,Dial(SIP/123)

 [to-callcentric]
  exten => _XX.,1,Dial(SIP/${EXTEN}@callcentric)[/color]

I get this error:

[color=red]
Feb 9 23:29:19 WARNING[1008] srv.c: Failed to expand hostname
Feb 9 23:29:19 WARNING[1008] srv.c: Failed to parse srv
Feb 9 23:29:19 WARNING[1008] dns.c: Failed to parse result
Feb 9 23:29:19 WARNING[1008] dns.c: DNS Parse error for _sip._udp.callcentric.com
Feb 9 23:29:39 NOTICE[1008] chan_sip.c: – Registration for '17772791762@callcentric.com’ timed out, trying again (Attempt #1)
[/color]

Can anyone help please…

forget about * windows, install from source :wink:

P.S looks like it is dns related

I dont have a clue whats wrong with the dns. I tried with actual IP address. It Worked… but not for long… the connection with the server drops very often…

The reason for the lines getting dropped was my server at office. Thats fixed. Now i have a new problem… this s my configuration:

sip.conf

[color=blue][general]
dtmfmode = rfc2833
context=from-callcentric
register=>17772987118:password@204.11.192.23

bindport = 5060 ; UDP Port to bind to (SIP standard port is 5060)
bindaddr = 0.0.0.0 ; IP address to bind to (0.0.0.0 binds to all)
srvlookup = yes ; Enable DNS SRV lookups on outbound calls

[callcentric]
type=peer
context=from-callcentric
host=204.11.192.23
username=17772897118
secret=password
fromuser=17772897118
fromdomain=204.11.192.23
insecure=very

[123]
context=to-callcentric
type=friend
username=123
secret=test
host=dynamic
[/color]

extension.conf

[color=blue];
[general]

static=yes
writeprotect=yes
autofallthrough=yes
clearglobalvars=no
priorityjumping=yes

;[globals]
#include “exten_gvars.inc”

[default]
exten => 99990,1,Answer
exten => 99990,2,AGI(agi-test.agi)
exten => 99990,3,Hangup
exten => 99991,1,Answer
exten => 99991,2,EAGI(eagi-test)
exten => 99991,3,Hangup
exten => 99992,1,Answer
exten => 99992,2,Wait(1)
exten => 99992,3,SayUnixTime()
exten => 99992,4,Hangup
exten => 99999,1,Answer
exten => 99999,2,Wait(1)
exten => 99999,3,MusicOnHold

[from-callcentric]
exten => s,1,Dial(SIP/123)

[to-callcentric]
exten => _0.,1,Dial(SIP/${EXTEN:1}@204.11.192.23)
[/color]

my asterisk is registered with callcentric and i have a xlite phone registered with asterisk. All inbound calls goes to the xlite perfectly. But i cant make outbound calls with xlite. There are no error messages. in the xlite phone it shows “service unavailable”.