Hello,

Ravin Suri wrote:
> Hello,
>  
> I would like to be able to use SEMS to do accounting for calls sent to a 
> SIP-PSTN gateway. This is the scenario that I'm thinking of:
>  
> 1. SER gets call to sip:[EMAIL PROTECTED]  The username 
> matches the PSTN route section in ser.cfg.
>  
> 2. Now instead of SER directly relaying the call to the pstn gateway's 
> IP address, it sends it to a SEMS application which is setup to be a 
> B2BUA with media. 
>  
> 3. The SEMS application relays the call to the pstn gateway.
>  
> 4. It then writes a record to the database when the call starts and 
> updates the record when the call terminates.
>  
> My questions are:
>  
> 1. Is there a SEMS app that I can customize to do this?
if you want/need media relaying, have a look at examples/jukecall. for 
how to use a timer, look at calling card example, or sw_prepaid_sip.

> 2. If so, could you outline the steps needed?
> 3. How can we write to a database directly in a SEMS application?
for mysql in c++ you can e.g. use mysql++ library. Look at conference or 
voicemail applications, USE_MYSQL sections.

>  
> I am using sems-0.10.0.
I'd suggest you use trunk version for development.

Stefan

>  
> Thank you for your advice and help.
>  
> - Ravin
>  
>  
>  
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Sems mailing list
> [email protected]
> http://lists.iptel.org/mailman/listinfo/sems

-- 
Stefan Sayer
VoIP Services

[EMAIL PROTECTED]
www.iptego.com

iptego GmbH
Am Borsigturm 40
13507 Berlin
Germany

Amtsgericht Charlottenburg, HRB 101010
Geschaeftsfuehrer: Alexander Hoffmann
_______________________________________________
Sems mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/sems

Reply via email to