[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openser-users
Subject:    Re: [OpenSER-Users]
From:       Iñaki_Baz_Castillo <ibc () in ! ilimit ! es>
Date:       2008-06-30 8:31:41
Message-ID: 200806301031.41834.ibc () in ! ilimit ! es
[Download RAW message or body]

El Monday 30 June 2008 10:17:57 Bogdan-Andrei Iancu escribió:
> Hi Stagg,
>
> This is a common issue when you have an Asterisk with multiple
> extensions and a single registration to OpenSER. A trick you can do is
> to save the username part of the RURI (the extension) and restore if the
> location lookup (for registrations) was successful:
>
>     ......
>     $avp(s:tmp) = $rU;
>     if ( !lookup("location")) {
>        # no location found
>        sl_send_reply("404","Not Found");
>        exit;
>     }
>     # registration found -> restore the username part
>     $rU = $avp(s:tmp)
>
>     t_relay();
>
>     ......


Hi Bogdan, will any SIP UA allow a call if the RURI username doesn't match the 
username in the "Contact" during UA registration?
Well, sure a PBX would allow it (like Asterisk), but what about single phones?
By my experience, most of the phone just allow receiving INVITE's for the same 
RURI username as the "Contact" send by the UA in the REGISTER.


-- 
Iñaki Baz Castillo
ibc@in.ilimit.es

_______________________________________________
Users mailing list
Users@lists.openser.org
http://lists.openser.org/cgi-bin/mailman/listinfo/users

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic