[Serusers] Hangup on ser with asterisk

Andrey Kouprianov andrey.kouprianov at gmail.com
Thu Mar 16 06:10:24 CET 2006


It might not be the answer, but anyway....

Recently, I talked to one person from NECTEC in Thailand. He said
that, if you were using Digium (TDM400...) card, then there would be a
problem, when hanging up. He also suggested using Sagoma cards with
Asterisk....

On 3/16/06, Bart J. Smit <bart at smits.co.uk> wrote:
>
>
>
> Hi All,
>
>
>
> I'm still not getting anywhere with this. SER and Asterisk on the same box
> listening on 5060/5065 respectively. Invites for pbx.nexusmgmt.com go to the
> asterisk and call is connected. The ser registered phone can hang up but the
> asterisk registered phone can't.
>
>
>
> I have reduced my ser.cfg to the simplest form. Could somebody please tell
> me what I'm missing?
>
>
>
> Thanks,
>
>
>
> Bart...
>
>
>
>
>
>
>
> fork=yes
>
> log_stderror=no
>
> mhomed=1
>
> listen=65.126.236.148
>
> listen=192.168.163.120
>
> listen=127.0.0.1
>
> children=4
>
> fifo="/tmp/ser_fifo"
>
> fifo_db_url="mysql://ser:heslo@localhost/ser"
>
>
>
> loadmodule "/usr/lib/ser/modules/mysql.so"
>
> loadmodule "/usr/lib/ser/modules/sl.so"
>
> loadmodule "/usr/lib/ser/modules/tm.so"
>
> loadmodule "/usr/lib/ser/modules/rr.so"
>
> loadmodule "/usr/lib/ser/modules/maxfwd.so"
>
> loadmodule "/usr/lib/ser/modules/usrloc.so"
>
> loadmodule "/usr/lib/ser/modules/registrar.so"
>
> loadmodule "/usr/lib/ser/modules/auth.so"
>
> loadmodule "/usr/lib/ser/modules/auth_db.so"
>
> loadmodule "/usr/lib/ser/modules/uri.so"
>
> loadmodule "/usr/lib/ser/modules/uri_db.so"
>
> loadmodule "/usr/lib/ser/modules/textops.so"
>
> modparam("auth_db|uri_db|usrloc", "db_url",
> "mysql://ser:heslo@localhost/ser")
>
> modparam("auth_db", "calculate_ha1", 1)
>
> modparam("auth_db", "password_column", "password")
>
> modparam("usrloc", "db_mode", 2)
>
> modparam("rr", "enable_full_lr", 1)
>
>
>
> alias="65.126.236.148"
>
> alias="192.168.163.120"
>
> alias="nexphone"
>
> alias="nexphone.nexusmgmt.com"
>
>
>
> route {
>
>       if (!mf_process_maxfwd_header("10"))
> {sl_send_reply("483", "Too Many Hops"); break; };
>
>       if (msg:len > max_len) {sl_send_reply("513", "Message Overflow");
> break; };
>
>       if (method!="REGISTER") { record_route(); };
>
>       if (loose_route())      { route(1); break; };
>
>       if (method=="INVITE") {
>
>             if (uri=~"^sip:*@pbx\.nexusmgmt\.com$") {
>
>                   forward(localhost,5065);
>
>                   break;
>
>             };
>
>       };
>
>       if (uri!=myself)        { route(1); break; };
>
>       if (method=="REGISTER") { route(2); break; };
>
>       lookup("aliases");
>
>       if (uri!=myself) { route(1); break; };
>
>       if (!lookup("location")) {
>
>             sl_send_reply("404", "User Not Found");
>
>             break;
>
>       };
>
>       route(1);
>
> }
>
>
>
> route[1] {
>
>       if (!t_relay()) { sl_reply_error(); };
>
> }
>
>
>
> route[2] {
>
>       sl_send_reply("100", "Trying");
>
>       if (!www_authorize("","subscriber")) {
>
>             www_challenge("","0");
>
>             break;
>
>       };
>
>       if (!check_to()) {
>
>             sl_send_reply("401", "Unauthorized");
>
>             break;
>
>       };
>
>       if (!save("location")) { sl_reply_error(); };
>
> }
> _______________________________________________
> Serusers mailing list
> serusers at lists.iptel.org
> http://lists.iptel.org/mailman/listinfo/serusers
>
>
>




More information about the sr-users mailing list