[OpenSER-Users] xlite with openser / hello world posts SOLVED

Bogdan-Andrei Iancu bogdan at voice-system.ro
Mon Jan 21 17:28:33 CET 2008


Hi there,

Have you checked the new config file that was uploaded for OpenSER 1.2.3 ??

Regards,
Bogdan

A.smith wrote:
> Hi Moujane,
>
>   In case you haven´t worked it out yet, I managed to get an openser.cfg to
> work for simple testing between XLite or other SIP client. Its a shame there
> isnt a working config easily findable on the openser site or other internet
> resource for those people new to SIP and OpenSER.... :S
>
> Try this, for me it works on OpenSER 1.2.2
>
> # SECTION 1 - GLOBAL DEFINTIONS
>
> debug=3
> fork=yes
> log_stderror=no
>
> #fork=no
> #log_stderror=yes
>
> listen=10.10.10.10  #put your server IP here
> port=5060
>
> disable_dns_blacklist=yes
> dns=no
> rev_dns=no
>
> children=4
>
> # SECTION 2 - MODULE DEFINTION
>
> mpath="/usr/local/lib/openser/modules"
>
> loadmodule "sl.so"
> loadmodule "tm.so"
> loadmodule "rr.so"
> loadmodule "maxfwd.so"
> loadmodule "usrloc.so"
> loadmodule "textops.so"
> loadmodule "xlog.so"
> loadmodule "registrar.so"
>
> # SECTION 3 - MODULE CONFIGURATION
>
> modparam("usrloc", "db_mode", 0)
> modparam("rr", "enable_full_lr", 1)
>
> # main routing logic FOR RADIUS ACC ACCOUNTING
>
> route{
>
>     if (!mf_process_maxfwd_header("15")) {
>         sl_send_reply("483","Too Many Hops");
>         exit;
>     };
>
>     if (msg:len >=  max_len ) {
>         sl_send_reply("513", "Message too big");
>         exit;
>     };
>
>     if (method=="REGISTER") {
>         record_route();
>                 if (!save("location")) {
>                 sl_reply_error();
>         };
>         exit;
>     };
>
>     if (loose_route()) {
>         append_hf("P-hint: rr-enforced\r\n");
>         route(1);
>     };
>
>     if (!uri==myself) {
>         append_hf("P-hint: outbound\r\n");
>         route(1);
>     };
>
>     if (uri==myself) {
>
>         if (!lookup("location")) {
>             sl_send_reply("404", "Not Found");
>             exit;
>             };
>         append_hf("P-hint: usrloc applied\r\n");
>     };
>
>     route(1);
> }
>
> # SECTION 5 - SECONDARY ROUTE BLOCKS
>
> route[1] {
>     if (!t_relay()) {
>         sl_reply_error();
>     };
>     exit;
> }
>
>
> ________________________________________________
> Message sent using UK Grid Webmail 2.7.9
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.openser.org
> http://lists.openser.org/cgi-bin/mailman/listinfo/users
>
>   





More information about the Users mailing list