[OpenSIPS-Users] Mid_Registrar contact

nutxase nutxase at proton.me
Thu Nov 17 15:12:24 UTC 2022


hmm i do already have that

$ru = "sip:1.2.3.4:5060";
xlog("looking up $ct!\n");
t_relay();

Sent with [Proton Mail](https://proton.me/) secure email.

------- Original Message -------
On Thursday, November 17th, 2022 at 2:33 PM, Jehanzaib Younis <jehanzaib.kiani at gmail.com> wrote:

> Hi there,
> Just t_relay(); to the Asterisk IP, it should work perfectly fine.
>
> Regards,
> Jehanzaib
>
> On Fri, Nov 18, 2022 at 12:09 AM nutxase via Users <users at lists.opensips.org> wrote:
>
>> Yes so thats my idea but the problem i see is that asterisk sees the contact as the opensips details not the UAC device
>>
>> Sent with [Proton Mail](https://proton.me/) secure email.
>>
>> ------- Original Message -------
>> On Thursday, November 17th, 2022 at 11:04 AM, johan <johan at democon.be> wrote:
>>
>>> If you don't want to handle the r3egister locally, why don't you just forward it then ? (i.e. the path approach)
>>>
>>> On 17/11/2022 11:45, Liviu Chircu wrote:
>>>
>>>> On 17.11.2022 12:37, nutxase wrote:
>>>>
>>>>> Just to confirm can registrar also forward the registration similar to how mid_registrar does?
>>>>
>>>> Approach 1: the [save()](https://opensips.org/docs/modules/3.4.x/registrar.html#func_save) function has an "r" flag (do not auto-send a reply upstream) which may be useful here, allowing you to t_relay() your REGISTER further downstream. A caveat here is that you're saving the Contact before the Asterisk, which may fail (e.g. 500 Internal Server Error). So what do you do then? You must delete it somehow...
>>>>
>>>> Approach 2: if I remember correctly, the [save()](https://opensips.org/docs/modules/3.4.x/registrar.html#func_save) function was also designed to work on a 200 OK reply! But I haven't tested this scenario in a long time, so I'm not sure how well or if it works at all nowadays.
>>>>
>>>> Best,
>>>>
>>>> --
>>>> Liviu Chircu
>>>> www.twitter.com/liviuchircu
>>>> |
>>>> www.opensips-solutions.com
>>>> OpenSIPS eBootcamp 5-16 Dec |
>>>> www.opensips.org/training
>>>>
>>>> _______________________________________________
>>>> Users mailing list
>>>> Users at lists.opensips.org
>>>>
>>>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.opensips.org
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20221117/4bbbcdaa/attachment.html>


More information about the Users mailing list