sip.conf file

Added by Frank Tricamo 4 days ago

I wanted to load didforsale parameters into WAZO through sip.conf file. Not really interested in trying to use the GUI
IPBX>>Trunk management>>SIP protocol

I am adding to the /asterisk/sip.conf file directly as stated here https://projects.wazo.community/boards/1/topics/8792?r=8830#message-8830 but when i run the "/usr/bin/xivo-confgen asterisk/sip.conf" command i only see what was enabled in the GUI.

I restarted and reloaded...nothing. What am i missing?

[didforsale_in1]
host=209.216.2.211
type=peer
context=from-didforsale
disallow=all
allow=ulaw
nat=yes
canreinvite=yes
insecure=very
dtmfmode=rfc2833
qualify=yes

[didforsale_in2]
host=209.216.15.70
type=peer
context=from-didforsale
disallow=all
allow=ulaw
nat=yes
canreinvite=yes
insecure=very
dtmfmode=rfc2833
qualify=yes

[didforsale_out1]
host=209.216.2.212
type=peer
context=from-didforsale
disallow=all
allow=ulaw
nat=yes
canreinvite=yes
insecure=very
dtmfmode=rfc2833
qualify=yes

[didforsale_out2]
host=209.216.15.71
type=peer
context=from-didforsale
disallow=all
allow=ulaw
nat=yes
canreinvite=yes
insecure=very
dtmfmode=rfc2833
qualify=yes


Replies (4)

RE: sip.conf file - Added by Pascal Cadotte-Michaud 4 days ago

Hi,

the content of sip.conf does not modify the output of xivo-confgen.

The line "#exec /usr/bin/xivo-confgen asterisk/sip.conf" in sip.conf executes the xivo-confgen asterisk/sip.conf and inserts the output at the location of the "#exec" line.

RE: sip.conf file - Added by Pascal Cadotte-Michaud 4 days ago

Basically, you can add content to the file above or below the xivo-confgen line but the web interface will not be aware of those changes.

I also notice that some of the fields used in your configuration are not supported anymore in asterisk 14.

for example:

canreinvite has been replaced by direct
insecure=very should probably be insecure=port,invite

The most tricky port of this configuration is probably the "qualify=yes" part which is named "monitoring" in the web ui.

RE: sip.conf file - Added by Frank Tricamo 4 days ago

I can see that the trunks are up as you can see in the attached picture.

which was going to bring me to my next question

1) Since the web interface is not aware of any of the changes....i cannot use the interface to route the calls?

peerstatus.jpg (81.5 KB)

RE: sip.conf file - Added by Pascal Cadotte-Michaud 3 days ago

Of course if you configure your trunks manually you will have to do most of the configuration yourself.

If you want to route calls from the web interface you will have to configure the trunk using the web UI, which should be pretty straightforward with the information in my previous message.

(1-4/4)