This Question is Possibly Answered

1 "correct" answer available (5 pts) 2 "helpful" answers available (1 pts)
3 Replies Last post: Sep 15, 2009 9:41 AM by mehedi091  
Click to view Diego-UY's profile   10 posts since
Sep 14, 2009

Sep 14, 2009 11:01 AM

Reg-Expires with upper-reg


Hi, I'm a newbie with Opensbc, but with some years working with ngn networks. I have installed an opensbc only as a "voice firewall" so i have configured it only to forward all the incomming traffic to an upper-reg.

Everything is working fine with the exception of registration expires, by default is configured with 3600sec. How can i configure it to a lower value?.


Thanks!

Diego

Click to view joegen's profile   519 posts since
Apr 28, 2007
1. Sep 14, 2009 10:48 PM in response to: Diego-UY
Re: Reg-Expires with upper-reg
statefull upper reg does default to 3600. if you want opensbc to simply honor the expiration value your ua is sending, then do not enable stateful upper-reg
Click to view mehedi091's profile   3 posts since
Sep 13, 2009
3. Sep 15, 2009 9:41 AM in response to: Diego-UY
Re: Reg-Expires with upper-reg
Hi,

My network configuration is:

sip Phone(any IP)..........>OpenSBC(lan IP: 10.0.4.45, Wan Ip: 220.247.163.244)............>softswitch(IP:10.0.4.4)

I tried with the following configuration

[Solegy]
RTTS-Client-Address=220.247.163.244

[OpenSBC-General-Parameters]
SIP-Log-Level=3
PTRACE-Log-Level=5
Log-File-Prefix=b2bua
User-Agent-Name=OpenSBC
SBC-Application-Mode=B2BUpperReg Mode
Enable-Trunk-Port=True
Enable-Calea-Port=True
RTP-Min-Port=30000
RTP-Max-Port=35000
NAT-Keep-Alive-Interval=15
Send-OPTIONS-NAT-Keep-Alive=False
Send-Responses-Using-New-Socket=True
Enable-Local-Refer=True
Disable-Refer-Optimization=False
Max-Forwards=70
Encryption-Mode=XOR
Encryption-Key=GS
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

[Local-Domain-Accounts]
Accept-All-Registration=False
Account-List Array Size=2
Account-List 1=sip:9000204@220.247.163.244
Account-List 2=sip:9000202@220.247.163.244

[B2BUA-Routes]
Route-List Array Size=2
Route-List 1=[sip:*@*] sip:10.0.4.4;sip-trunk=true
Insert-Route-Header=True
Rewrite-TO-URI=True
Prepend-ISUP-OLI=False
Route-By-Request-URI=True
Route-By-To-URI=True
Drop-Routes-On-Ping-Timeout=True
Use-External-XML=False
External-XML-File=b2bua-route.xml
Route-List 2=[sip:*@*] sip:9000204@220.247.163.244

[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

[Upper-Registration]
All-Reg-As-Upper-Reg=False
Enable-Stateful-Reg=True
Rewrite-TO-Domain=True
Rewrite-FROM-Domain=True
Route-List Array Size=1
Route-List 1=[sip:*@220.247.163.244] sip:10.0.4.4:5060

[SIP-Transports]
Main-Interface-Address Array Size=1
Main-Interface-Address 1=sip:220.247.163.244:5060
Backdoor-Interface-Address=sip:10.0.4.45:5061
Trunk-Interface-Address=sip:10.0.4.45:5064
Media-Server-Interface-Address=sip:*:5066
CALEA-Interface-Address=sip:*:5068
Auxiliary-Interface-Address=sip:*:5070
Interface-Route-List Array Size=0

[Media-Server]
Enable-Media-Server=True
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


[SIP-Trunk-Config]
SIP-Trunk-Config=<root>
SIP-Trunk-Config=<siptrunk trunk-name="bpl-opensbc"
SIP-Trunk-Config=route-set="10.0.4.4"
SIP-Trunk-Config=sip-domain="10.0.4.4"
SIP-Trunk-Config=expires="3600">
SIP-Trunk-Config=
SIP-Trunk-Config=<trunk-accounts>
SIP-Trunk-Config=<account user-name="9000204"
SIP-Trunk-Config=auth-user-name="9000204"
SIP-Trunk-Config=auth-password=""
SIP-Trunk-Config=inbound-route="[sip:*@*]sip:9000204@220.247.163.244"
SIP-Trunk-Config=expires="3600" />
SIP-Trunk-Config=
SIP-Trunk-Config=<account user-name="9000202"
SIP-Trunk-Config=auth-user-name="9000202"
SIP-Trunk-Config=auth-password=""
SIP-Trunk-Config=expires="3600" />
SIP-Trunk-Config=
SIP-Trunk-Config=</trunk-accounts>
SIP-Trunk-Config=
SIP-Trunk-Config=<transient-accounts>
SIP-Trunk-Config=<account user-name="9000204"
SIP-Trunk-Config=auth-user-name="9000204"
SIP-Trunk-Config=auth-password=""
SIP-Trunk-Config=inbound-route="[sip:*@*] sip:9000204@220.247.163.244"
SIP-Trunk-Config=expires="3600" />
SIP-Trunk-Config=
SIP-Trunk-Config=
SIP-Trunk-Config=<account user-name="9000202"
SIP-Trunk-Config=auth-user-name="9000202"
SIP-Trunk-Config=auth-password=""
SIP-Trunk-Config=expires="3600" />
SIP-Trunk-Config=
SIP-Trunk-Config=
SIP-Trunk-Config=
SIP-Trunk-Config=
SIP-Trunk-Config=</transient-accounts>
SIP-Trunk-Config=
SIP-Trunk-Config=
SIP-Trunk-Config=</siptrunk>
SIP-Trunk-Config=</root>

For this configuration softphone is registered in openSBC and sip trunk is also registered with our softswitch. Outgoing call is possible but incoming call fails.

In incoming call after sending 100(trying) no 180(ringing) message sends. After sometime "cancel" message come.

Please help me.