Hi Stefan,

I have installed now sems 1.5.0 on our test server.
I have configured the sbc module, but a call throws the following error in 
syslog:

[#7f27be8ef700] [onSipRequest, AmSession.cpp:709] DEBUG:  onSipRequest: method 
= INVITE
[#7f27be8ef700] [updateRefreshMethod, AmSession.cpp:1057] DEBUG:  remote allows 
UPDATE, using UPDATE for session refresh.
[#7f27be8ef700] [onInvite, SBCCallLeg.cpp:719] DEBUG:  processing initial 
INVITE sip:[email protected];user=phone
[#7f27be8ef700] [replace_cc_values, SBCCallProfile.cpp:978] DEBUG:  processing 
replacements for call control interface 'prepaid'
[#7f27be8ef700] [replaceParameters, ParamReplacer.cpp:774] DEBUG:  acc_dest 
pattern replace: '$rU' -> 'some mobile number'
[#7f27be8ef700] [replaceParameters, ParamReplacer.cpp:774] DEBUG:  roldstprofile 
pattern replace: '$P(rdp)' -> 'pstn'
[#7f27be8ef700] [replaceParameters, ParamReplacer.cpp:774] DEBUG:  rolsrcprofile 
pattern replace: '$P(rsp)' -> 'local'
[#7f27be8ef700] [replaceParameters, ParamReplacer.cpp:774] DEBUG:  uuid pattern 
replace: '$P(u)' -> 'some local phonenumber'
[#7f27be8ef700] [processEventsCatchExceptions, AmSession.cpp:358] ERROR:  500 
unexpected exception.

Unfortunatly I receive only "Error: 500 unexpected exception".

Here my configs:

sems.conf:
sip_port=5060
rtp_low_port=10000
rtp_high_port=60000
plugin_path=/usr/lib/sems/plug-in/
exclude_plugins=precoded_announce;py_sems;db_reg_agent;cc_call_timer;cc_ctl;cc_pcalls;cc_prepaid;cc_prepaid_xmlrpc;cc_rest;cc_syslog_cdr
application = $(apphdr)
plugin_config_path=/etc/sems/etc/
fork=yes
stderr=no
loglevel=3
log_sessions=yes
log_events=yes
use_default_signature=yes
signature="DEV"
accept_fr_without_totag=yes

sbc.conf:
profiles=transparent,auth_b2b,sst_b2b,prepaid
active_profile=$(paramhdr)
enable_session_timer=yes
session_expires=181

prepaid.sbcprofile.conf:
RURI=sip:$rU@$P(rd)
From=<sip:$P(f)>
To=<sip:$P(t)>
outbound_proxy=sip:$P(op)
call_control=prepaid
prepaid_module=cc_acc
prepaid_uuid=$P(u)
prepaid_acc_dest=$rU
prepaid_rolsrcprofile=$P(rsp)
prepaid_roldstprofile=$P(rdp)


If I try to activate the cc_pcalls, sems doesn't start anymore.
Maybe I have misconfigured
In syslog I don't find any helpful info:

[#7f6dd38da720] [init_logging, log.cpp:179] INFO:  Logging initialized
...
[#7f6dd38da720] [readFromConfiguration, SBCCallProfile.cpp:389] INFO:  SBC: 
loaded SBC profile 'auth_b2b' - MD5: 5a8c3b27b26bc6dcced1b27557da524a
[#7f6dd38da720] [readFromConfiguration, SBCCallProfile.cpp:394] INFO:  SBC:     
 RURI      = 'sip:$rU@$P(d)'
[#7f6dd38da720] [readFromConfiguration, SBCCallProfile.cpp:395] INFO:  SBC:     
 RURI-host = ''
[#7f6dd38da720] [readFromConfiguration, SBCCallProfile.cpp:396] INFO:  SBC:      From = 
'\"$P(u)\" <sip:$P(u)@$P(d)>'
[#7f6dd38da720] [readFromConfiguration, SBCCallProfile.cpp:397] INFO:  SBC:      To   = 
'\"$rU\" <sip:$rU@$P(d)>'
[#7f6dd38da720] [readFromConfiguration, SBCCallProfile.cpp:405] INFO:  SBC:     
 force outbound proxy: no
[#7f6dd38da720] [readFromConfiguration, SBCCallProfile.cpp:406] INFO:  SBC:     
 outbound proxy = ''
[#7f6dd38da720] [readFromConfiguration, SBCCallProfile.cpp:416] INFO:  SBC:     
 A leg force outbound proxy: no
[#7f6dd38da720] [readFromConfiguration, SBCCallProfile.cpp:417] INFO:  SBC:     
 A leg outbound proxy = ''
[#7f6dd38da720] [readFromConfiguration, SBCCallProfile.cpp:433] INFO:  SBC:     
 header filter  is blacklist, 2 items in list
[#7f6dd38da720] [readFromConfiguration, SBCCallProfile.cpp:439] INFO:  SBC:     
 message filter is disabled, 0 items in list
[#7f6dd38da720] [main, sems.cpp:483] ERROR:  Child [1] return an error: -1
[#7f6dd38da720] [main, sems.cpp:618] INFO:  Disposing plug-ins
[#7f6dd38da720] [main, sems.cpp:627] DEBUG:  send -1 to parent
[#7f6dd38da720] [cleanup, SipCtrlInterface.cpp:308] DEBUG:  Stopping SIP 
control interface threads
[#7f6dd38da720] [main, sems.cpp:635] INFO:  Exiting (failure)


sems.conf:
sip_port=5060
rtp_low_port=10000
rtp_high_port=60000
plugin_path=/usr/lib/sems/plug-in/
exclude_plugins=precoded_announce;py_sems;db_reg_agent;cc_call_timer;cc_ctl;cc_pcalls;cc_prepaid;cc_prepaid_xmlrpc;cc_rest;cc_syslog_cdr
application = $(apphdr)
plugin_config_path=/etc/sems/etc/
fork=yes
stderr=no
loglevel=3
log_sessions=yes
log_events=yes
use_default_signature=yes
signature="DEV"
accept_fr_without_totag=yes

sbc.conf:
profiles=transparent,auth_b2b,sst_b2b,prepaid
active_profile=$(paramhdr)
load_cc_plugins=cc_pcalls
enable_session_timer=yes
session_expires=181

prepaid.sbcprofile.conf:
RURI=sip:$rU@$P(rd)
From=<sip:$P(f)>
To=<sip:$P(t)>
outbound_proxy=sip:$P(op)
call_control=prepaid;cc_pcalls
prepaid_module=cc_acc
prepaid_uuid=$P(u)
prepaid_acc_dest=$rU
prepaid_rolsrcprofile=$P(rsp)
prepaid_roldstprofile=$P(rdp)

cc_pcalls.conf:
cc_pcalls_uuid=$P(u)
cc_pcalls_max_calls=$P(cc_limit)

Please let me know, if you need more informations.

Best regards,
Julian Santer

Am 25.11.2013 19:13, schrieb Julian Santer:
Hi Stefan,

thanks for the quick reply.
I have to give a look tomorrow to sems 1.5. Last time I got a compile error, i 
think. Compiling on debian wheezy.
What about: http://comments.gmane.org/gmane.comp.voip.sems.devel/3527

Best regards,
Julian

Stefan Sayer <[email protected]> schrieb:

Hi,

o Julian Santer on 11/25/2013 04:53 PM:
Hi,

have I the possibility to limit the count of concurrent calls per user
with the SBC app?
So that one caller can establish for example only a certain count of
calls simultaneous (for example 1)?
We are using SEMS in version 1.4.3.

afair not in 1.4. From 1.5 on you can use parallel_calls call control
module.

Stefan



_______________________________________________
Sems mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/sems

Reply via email to