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

List:       openser-users
Subject:    Re: [OpenSER-Users] Preserving original number when using
From:       Bogdan-Andrei Iancu <bogdan () voice-system ! ro>
Date:       2008-06-30 8:39:04
Message-ID: 48689BA8.7070006 () voice-system ! ro
[Download RAW message or body]

Hi Iñaki,

Most of the UAC will reject an incoming call if the RURI is not the 
contact they registered - and I by contact I mean URI + URI params (like 
SNOM encodes as contact param the line of the account)

But particularly talking about devices with PBX-like behaviour (with 
multiple extensions behind some registration), it really does not matter 
- there is impossible to force any relation between the contact (which 
is one) and accepted RURIs (which can be for multiple extensions).

Regards,
Bogdan

Iñaki Baz Castillo wrote:
> 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.
>
>
>   


_______________________________________________
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