Difference between revisions of "Several incoming IPs for one Provider"

From Kolmisoft Wiki
Jump to navigationJump to search
(New page: Sometimes Providers sends calls from several IPs. This guide shows how to configure that in MOR. First lets create such Provider in GUI:)
 
 
(3 intermediate revisions by one other user not shown)
Line 1: Line 1:
'''THIS TOPIC IS OLD AND OUTDATED - DO NOT USE IT!!!'''
Sometimes Providers sends calls from several IPs.
Sometimes Providers sends calls from several IPs.


This guide shows how to configure that in MOR.
This guide shows how to configure that in MOR (prior 0.8).
 
'''NOTE: MOR 0.8 will have this implemented into GUI directly.'''
 
 
Lets say we have provider which sends calls from such IP:
 
* 83.136.162.72
* 83.136.161.72
* 83.136.161.75
 
First lets create such Provider in GUI and take note of Device ID of this Provider and enter on:
 
[[Image:several_ips1.png]]
 
 
Now open /etc/asterisk/sip.conf in text editor and at the end enter:
 
[provider1]
type=friend
host=83.136.162.72
'''accountcode=50'''
context=mor
 
[provider2]
type=friend
host=83.136.161.72
'''accountcode=50'''
context=mor
 
[provider3]
type=friend
host=83.136.162.75
'''accountcode=50'''
context=mor
 
And reload Asterisk.


First lets create such Provider in GUI:
=== >>> NOTE THE ACCOUNTCODE!!! <<< ===

Latest revision as of 08:56, 29 September 2009

THIS TOPIC IS OLD AND OUTDATED - DO NOT USE IT!!!

Sometimes Providers sends calls from several IPs.

This guide shows how to configure that in MOR (prior 0.8).

NOTE: MOR 0.8 will have this implemented into GUI directly.


Lets say we have provider which sends calls from such IP:

* 83.136.162.72
* 83.136.161.72
* 83.136.161.75

First lets create such Provider in GUI and take note of Device ID of this Provider and enter on:

Several ips1.png


Now open /etc/asterisk/sip.conf in text editor and at the end enter:

[provider1]
type=friend
host=83.136.162.72
accountcode=50
context=mor
[provider2]
type=friend
host=83.136.161.72
accountcode=50
context=mor
[provider3]
type=friend
host=83.136.162.75
accountcode=50
context=mor

And reload Asterisk.

>>> NOTE THE ACCOUNTCODE!!! <<<