Ok All. I finally got my OSBC with TWO NICS to Work
My working config is below...
Pay close attention you must declare your Interfaces in the SIP Transports and also look at the Route List in SIP Transports.
FYI: I am running OpenSBC in front of Asterisk
OpenSBC WAN IP: w.x.y.188
OpenSBC LAN IP: 192.168.1.150
Asterisk IP: 192.168.1.250
If you have questions i am actively on this board
[Solegy]
RTTS-Client-Address=192.168.1.150
[OpenSBC-General-Parameters]
SIP-Log-Level=5
PTRACE-Log-Level=1
Log-File-Prefix=opensbc
User-Agent-Name=SBC
SBC-Application-Mode=B2BUpperReg Mode
Interface-Address Array Size=0
Enable-Backdoor-Port=True
Enable-Trunk-Port=False
Enable-Calea-Port=False
Static-RTP-Media-Address=
RTP-Min-Port=30001
RTP-Max-Port=40000
Send-Responses-Using-New-Socket=True
Enable-Local-Refer=False
Max-Forwards=70
Encryption-Mode=XOR
Encryption-Key=GS
Transaction-Thread-Count=10
Session-Thread-Count=10
Alerting-Timeout=30000
Seize-Timeout=60000
SIP-Timer-B=Default
SIP-Timer-H=Default
Session-Keep-Alive=1800
Session-Max-Life-Span=10800
Max-Concurrent-Session=100
Max-Call-Rate-Per-Second=10
Interface-Address 1=sip:192.168.1.150:5060
[Upper-Registration]
All-Reg-As-Upper-Reg=True
Enable-Stateful-Reg=False
Rewrite-TO-Domain=True
Rewrite-FROM-Domain=True
Route-List Array Size=1
Route-List 1=[sip:*@sip.mydomain.net] sip:192.168.1.250;domain=sip.mydomain.com
[Internal-DNS-Mapping]
Internal-DNS-Map Array Size=0
[RTP-Proxy]
Proxy-On-Private-Contact=True
Proxy-On-via-received-vs-signaling-address=True
Proxy-On-Private-Via=True
Proxy-On-Different-RPORT=True
Proxy-All-Media=True
[Media-Server]
Enable-Media-Server=False
Media-Server-Number=5000
Codec-List Array Size=0
No-RTP-Proxy-On-All-Transfers=False
Enable-Announcement-Service=False
4xx-Error-Map=prompts/basic/cant_complete.wav
5xx-Error-Map=prompts/basic/cant_complete.wav
6xx-Error-Map=prompts/basic/cant_complete.wav
Announcement-Error-Map Array Size=0
[B2BUA-Routes]
Enable-Route-Scripting=False
Route-Script=b2bua-route.cscript
Route-List Array Size=1
Route-List 1=[sip:*@sip.mydomain.net] sip:192.168.1.250
Catch-All-Route=
Insert-Route-Header=True
Rewrite-TO-URI=True
Rewrite-From-Domain=
Prepend-ISUP-OLI=False
Route-By-Request-URI=True
Route-By-To-URI=False
Drop-Routes-On-Ping-Timeout=False
Use-External-XML=False
External-XML-File=b2bua-route.xml
[Local-Domain-Accounts]
Accept-All-Registration=True
Account-List Array Size=0
[Trusted-Domains]
Accept-All-Calls=True
Trusted-Domain-List Array Size=0
[Privacy-RFC-3325]
Default-Realm=
Trusted-Domain-List Array Size=0
[SIP-Transports]
Main-Interface-Address Array Size=2
Backdoor-Interface-Address=sip:*:5062
Trunk-Interface-Address=sip:*:5064
Media-Server-Interface-Address=sip:*:5066
CALEA-Interface-Address=sip:*:5068
Auxiliary-Interface-Address=sip:*:5070
Interface-Route-List Array Size=2
Interface-Route-List 1=[sip:192.168.1.*] sip:192.168.1.150
Main-Interface-Address 1=sip:192.168.1.150:5060
Main-Interface-Address 2=sip:w.x.y.188:5060
Interface-Route-List 2=[sip:w.x.y.*] sip:192.168.1.150;external=w.x.y.188