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

Andy Smith a.smith at ukgrid.net
Mon Jan 21 18:22:55 CET 2008


Hi Bogdan,

  no, havent tried anything beyond 1.2.2. Does it have a working hello world 
config included with the source now?
Would be a good idea I think :P

cheers Andy.


----- Original Message ----- 
From: "Bogdan-Andrei Iancu" <bogdan at voice-system.ro>
To: "A.smith" <a.smith at ukgrid.net>
Cc: <moujane.h at gmail.com>; <users at lists.openser.org>
Sent: Monday, January 21, 2008 5:28 PM
Subject: Re: [OpenSER-Users] xlite with openser / hello world posts SOLVED


> 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
>>
>>
>
>
>
> -- 
> No virus found in this incoming message.
> Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 
> 269.19.7/1232 - Release Date: 18/01/2008 19:32
> 





More information about the Users mailing list