Need Help Connecting to a voip as gateway client

Hi,

I am trying to connect to my voip provider as a gateway client but I am unable to do so.

I am able to connect to other voip provider callcentric as sip user and calls go through but I donot know how to connect as a gateway client with my vendor.

When I asked him login credetials to setup a Trunk he said that I need to connect as gateway and login isnt required.

In trunk Setup I have given the following credentials:

PEER DETAILS -
context=from-pstn
disallow=all
type=peer
host=69.41.xxx.xxx
insecure=very
allow=g729
careinvite=no
qualify=no

REGISTER STRING:
Nothing

I tried looking at Sip Show registry and it show as given below :

69.41.186.186:5060 dreamtel 120 Request Sent
203.194.134.88:5060 varunmahajan 105 Registered Thu, 13 Oct 2011 08:09:03
50.23.161.212:5060 0410003 120 Request Sent
callcentric.com:5080 17772420656 45 Registered Thu, 13 Oct 2011 08:10:08

Thanks in advance for the help.

Best Regards,
Varun M

You need something like this in sip.conf:

register => username:password@sip_provider_url/username (register string)

(peer definition)

[SIP_Trunk]
type=peer
host=sip_provider_url
username=username
secret=password
context=from_trunk
dtmfmode=RFC2833
qualify=yes
nat=yes
port=5060
canreinvite=no