Page 1 of 1

How to setup SIP trunk

PostPosted: Thu Jun 18, 2009 12:11 pm
by MySnS
Hi Everyone,

Can you help me setting up my SIP trunk and Extension? I am using vicidialnow 2.0.5. I don't use username and password to register to my SIP provider. How to configure without username and password to register?

Any help greatly appreciated!

Thanks,

Julz

PostPosted: Thu Jun 18, 2009 9:15 pm
by ruben23
Try this: sample

on the sip.conf (depends if you asterisk server is behind NAT), if NAted you add up (NAT-config)

[SIPtrunk]
type=friend
host=xxxxx.xxxx.xxxx
canreinvite=no
disallow=all
allow=g729
allow=ulaw
dtmfmode=rfc2833
qualify=1000

For NAT:

you add this to-

[general]
localnet=192.168.0.0/255.255.0.0 ; or your subnet
externip=x.x.x.x ; use your address


on extensions.conf look for this config on the dial plan- replace the xxxxx with the context of your SIP provider.

[globals]
CONSOLE=Console/dsp ; Console interface for demo
TRUNK=SIP/xxxxxx ; Trunk interface
TRUNKX=SIP/xxxxx

this will be executed in this dial plan

; dial a long distance outbound number
; This 'o' Dial flag is VERY important for VICIDIAL on outbound calls
exten => _91NXXNXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _91NXXNXXXXXX,2,Dial(${TRUNKX}/${EXTEN:1},,To)
exten => _91NXXNXXXXXX,3,Hangup

then asterisk -rvvvvvv => reload

try to check on the CLI: sip show peers if your voip context is reachable
then test call

thats it
:)

PostPosted: Fri Jun 19, 2009 2:26 pm
by MySnS
I tried your suggestion but it's not working. can you give a GUI screen shot of your vicidial configuration? you can omit the sensitive information.


Thanks

PostPosted: Sat Jun 20, 2009 10:49 am
by williamconley
you may need to contact your provider and get a call to work with ASTERISK before you attempt vicidial. there is a much wider "help base" for "asterisk" than "vicidial" and AFTER you have the call working in Asterisk, it becomes extremely easy for us to get you up and running. and you may not even need help.

be aware that there are many ways to initiate a call with asterisk, until you find out how YOUR provider does this, you won't be able to "connect it" to vicidial's structure.

so simplify the process and find out first, then hook up to vicidial.