[OpenSIPS-Users] Wrong IP when relaying REGISTER to Asterisk

Web Support web at fubutel.com
Tue Mar 9 19:47:49 CET 2010


I am using fix_nated_contact(), previous to that, it was registering with
the private IP on MY lan. Which obviously does me no good either.

Essentially, I know I need to change the header (unless there's something
else I've mis-configured), I just don't know how to change the header.
Everything I've tried so far, hasn't worked.

-Tyler

-----Original Message-----
From: users-bounces at lists.opensips.org
[mailto:users-bounces at lists.opensips.org] On Behalf Of Bogdan-Andrei Iancu
Sent: Tuesday, March 09, 2010 13:34
To: OpenSIPS users mailling list
Subject: Re: [OpenSIPS-Users] Wrong IP when relaying REGISTER to Asterisk

forgot the script :)

but look for fix_nated_contact() ....if present

Regards,
Bogdan

Web Support wrote:
> I've attached the .cfg, I'm sure it's a bit of a mess in your eyes... I'm
> still getting the grasp of OpenSIPS scripting and I'm having a hard time
> figuring out what is returned from certain function calls.
>
> I am not knowingly changing the Contact hdr, I think I want to though, so
> that it reflects the public IP of the UAD, no?
>
> Thanks for your help so far Bogdan.
>
> -Tyler
>
> -----Original Message-----
> From: users-bounces at lists.opensips.org
> [mailto:users-bounces at lists.opensips.org] On Behalf Of Bogdan-Andrei Iancu
> Sent: Tuesday, March 09, 2010 13:25
> To: OpenSIPS users mailling list
> Subject: Re: [OpenSIPS-Users] Wrong IP when relaying REGISTER to Asterisk
>
> Ok, in this case I assume opensips is change it, right ?
>
> so the question is - does your opensips changes the Contact hdr in 
> REGISTERs ?
>
> Regards,
> Bogdan
>
> Web Support wrote:
>   
>> Hello Bogdan,
>>
>> The IP is of my OpenSIPS server.
>>
>> -Tyler
>>
>> -----Original Message-----
>> From: users-bounces at lists.opensips.org
>> [mailto:users-bounces at lists.opensips.org] On Behalf Of Bogdan-Andrei
Iancu
>> Sent: Tuesday, March 09, 2010 12:34
>> To: OpenSIPS users mailling list
>> Subject: Re: [OpenSIPS-Users] Wrong IP when relaying REGISTER to Asterisk
>>
>> Hi Tyler,
>>
>> can you check at network level (use tcpdump, ngrep), in the REGISTER 
>> from opensips to asterisk, what is the Contact header? does this Contact 
>> hdr contain an IP of opensips or an IP of UAD ?
>>
>> Regards,
>> Bogdan
>>
>> Web Support wrote:
>>   
>>     
>>> Currently I have OpenSIPS installed on one machine, and have my 
>>> Asterisk (PBXware) on another machine. When trying to register my UAD 
>>> through OpenSIPS, the relay is happening correctly and the device is 
>>> showing up in Asterisk, but it's showing up with the IP of OpenSIPS.
>>>
>>> Ideally, I would like it to be the public IP of the device trying to 
>>> register. As it stands right now, my UAD gets authenticated fine, 
>>> registered in Asterisk. I can make extension to extension calls, 
>>> extension to PSTN calls, but can NOT receive calls.
>>>
>>> How can I change the IP when relaying the REGISTER to Asterisk so that 
>>> it's the public IP of the deivce, instead of my OpenSIPS server?
>>>
>>> Note: I am a LAMP guy, programming is not new to me, however. OpenSIPS 
>>> scripting is still sort of foggy.
>>>
>>> Thanks in advance.
>>>
>>> -Tyler
>>>
>>> ------------------------------------------------------------------------
>>>
>>> _______________________________________________
>>> Users mailing list
>>> Users at lists.opensips.org
>>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>>   
>>>     
>>>       
>>   
>>     
>
>
>   


-- 
Bogdan-Andrei Iancu
www.voice-system.ro


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




More information about the Users mailing list