Page 1 of 1

multiple sip trunk configuration!!!

PostPosted: Thu Jan 05, 2012 4:42 am
by mrd.d
i am using vicidialnow 1.2, i have configured one sip trunk but i need to setup multiple sip trunks !!!

here is my configuration
:arrow: sip.conf
Code: Select all

register => username:secret@XXX.XXX.XXX.XXX:5060
[mysiptrunk1]
disallow=all
allow=g729
context=trunkinbound
username=username
secret=secret
dtmfmode=auto
host=XXX.XXX.XXX.XXX
type=friend
port=5060
qualify=yes
insecure=very
canreinvite=yes
fromdomain=XXX.XXX.XXX.XXX
fromuser=0000000000
nat=yes



:arrow:
here is my extensions.conf

Code: Select all

[globals]
CONSOLE=Console/dsp                             ; Console interface for demo
TRUNK=ZAP/g1                                    ; Trunk interface
TRUNKX=SIP/mysiptrunk1



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



outbound/inbound working perfectly on this configuration no error at all!!!
please tell me how to add more sip trunks.



Thanks.. :roll:


VERSION: 2.2.1-237
BUILD: 100510-2015
Vicidialnow1.2
3.2GHZ Core2Duo
2GB ,250GB

PostPosted: Thu Jan 05, 2012 7:49 am
by rrb555
you can add more in administration page Admin > Carriers

PostPosted: Thu Jan 05, 2012 2:46 pm
by williamconley
exten => _8X.,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _8X.,2,Dial(${TRUNK2}/${EXTEN:1},,To)
exten => _8X,3,Hangup

TRUNK2=SIP/mysiptrunk2

register => username:secret@XXX.XXX.XXX.XXX:5060
[mysiptrunk2]
disallow=all
allow=g729
...

dial prefix "8" in the campaign.

PostPosted: Thu Jan 05, 2012 3:31 pm
by mrd.d
oh my God!!! William you're a gem!!!
now i am able to dial both sip trunks!!
but i cannot able to receive calls from [siptrunk2]
on [mysiptrunk1} DID is working fine..inbound/outbound,
but on [mysiptrunk2] DID is not working, outbound is working
and i have configured and Set my [mysiptrunk2] DID just like [mysiptrunk1].


once again thanks.. :roll:

PostPosted: Thu Jan 05, 2012 6:35 pm
by williamconley
is siptrunk2 registered?

PS: Thanks for posting your vicidial version with build AND your installer on your first post. it's helpful. :)

PostPosted: Thu Jan 05, 2012 9:16 pm
by mrd.d
williamconley wrote:is siptrunk2 registered?

PS: Thanks for posting your vicidial version with build AND your installer on your first post. it's helpful. :)



Thanks for your appreciation..

i can configure extra trunks from Admin>Carrier>Trunks Add<<
but i need to add more trunks from sip.conf/extensions.conf instead of GUI.

i am trying to add trunks from sip.conf/extensions.conf but its not working..

PostPosted: Thu Jan 05, 2012 9:41 pm
by williamconley
that does not answer "is siptrunk2 registered? "

also: why do you need to modify the .conf file directly? is this a commandment from your overlord? anything you can do in .conf directly can be put in the gui instead and will make it hard for you to screw up your system.

seriously. my advice is to NEVER directly modify the .conf files in a vicidial system.

regardles: the changes are the same, you just put them in the conf file directly, but they are teh same changes and result in the same question: "is siptrunk2 registered? "

PostPosted: Fri Jan 06, 2012 5:14 pm
by mrd.d
williamconley wrote:that does not answer "is siptrunk2 registered? "

also: why do you need to modify the .conf file directly? is this a commandment from your overlord? anything you can do in .conf directly can be put in the gui instead and will make it hard for you to screw up your system.

seriously. my advice is to NEVER directly modify the .conf files in a vicidial system.

regardles: the changes are the same, you just put them in the conf file directly, but they are teh same changes and result in the same question: "is siptrunk2 registered? "



both trunks are now registered and thanks for your advise william 8)

PostPosted: Fri Jan 06, 2012 6:13 pm
by williamconley
Now: Stick around and pay attention on the forum ... you'll learn a lot, but eventually find a newbie who has a question you can answer! Answer it! 8-)

PostPosted: Sun Jan 08, 2012 7:17 pm
by mrd.d
williamconley wrote:Now: Stick around and pay attention on the forum ... you'll learn a lot, but eventually find a newbie who has a question you can answer! Answer it! 8-)


Thanks William !!!

8)