[Freeswitch-users] FS not detecting public IP address change
Mark Campbell-Smith
mcampbellsmith at gmail.com
Mon Oct 25 16:53:47 PDT 2010
Hi!
How do I enable debugging to get the UPnP keep alive packets?
Thanks!
On Tue, Oct 26, 2010 at 1:15 AM, Rupa Schomaker <rupa at rupa.com> wrote:
> I need the debug logging from the upnp stuff. It should look something
> like:
>
> +OK log level 7 [7]
> freeswitch at internal> 2010-10-25 09:13:59.926861 [DEBUG] switch_nat.c:299
> got UPnP keep alive packet:
> NOTIFY * HTTP/1.1
> HOST:239.255.255.250:1900
> Cache-Control:max-age=60
> Location:http://192.168.1.1:5000/rootDesc.xml
> Server: Tomato UPnP/1.0 MiniUPnPd/1.4
> NT:urn:schemas-upnp-org:service:WANIPConnection:1
>
> USN:uuid:00000000-0000-0000-0000-000000000000::urn:schemas-upnp-org:service:WANIPConnection:1
> NTS:ssdp:alive
>
> I also run tomato and haven't had trouble with the upnp support so at least
> we have that part working.
>
> You should see the above keepalive appear periodically every 30s or so.
> You should see another set of messages when you terminate the DSL
> connection and when that dsl connection comes back online.
>
> On Sat, Oct 23, 2010 at 5:36 PM, Mark Campbell-Smith <
> mcampbellsmith at gmail.com> wrote:
>
>> Hi!
>>
>> The router is a ASUS router but it is running the tomato firmware which
>> runs miniupnd.
>>
>> In the debug I see the message: 2010-10-24 08:02:59.178918 [DEBUG]
>> sofia.c:956 nua_i_outbound: unknown event 8: 101 NAT detected
>>
>> This is what I see below. I hope I enabled all debug messages. I thought
>> I saw some xml type messages earlier, but not sure how I enabled them.
>>
>> nta_outgoing: RTT is 67.958 ms
>> outbound(0xb6e07c00): NAT binding changed: [210.xx.xxx.xx]:5080 !=
>> [58.xxx.xx.xx]:5080
>> nua(0xb6e07c00): event i_outbound 102 NAT binding changed
>> nua: nua_application_event: entering
>> 2010-10-24 09:05:08.849525 [DEBUG] sofia.c:956 nua_i_outbound: unknown
>> event 8: 102 NAT binding changed
>>
>>
>> On Sun, Oct 24, 2010 at 1:08 AM, Rupa Schomaker <rupa at rupa.com> wrote:
>>
>>> btw: what router are you using?
>>>
>>>
>>> On Sat, Oct 23, 2010 at 9:06 AM, Rupa Schomaker <rupa at rupa.com> wrote:
>>>
>>>> In a upnp config, FS is depending on the router to notify it of the ip
>>>> address change. It is possible the upnp message(s) aren't formatted as
>>>> expected. If you turn on debug logging you'll get the upnp messages on the
>>>> console. If you can pastebin the capture of those while dropping and
>>>> restarting the dsl connection I can maybe see if there is something obvious
>>>> going on. The debug should also have messages related to the processing of
>>>> those upnp messages.
>>>>
>>>> On Sat, Oct 23, 2010 at 7:04 AM, Mark Campbell-Smith <
>>>> mcampbellsmith at gmail.com> wrote:
>>>>
>>>>> HI!
>>>>>
>>>>> I know this question must have been answered 100's of times....
>>>>>
>>>>> My adsl is a bit dodgy at the moment and tends to go up and down; which
>>>>> means I get assigned a new ip address from my ISP. FS is nat'd behind a
>>>>> upnp capable router.
>>>>>
>>>>> The problem is that FS does not seem to be detecting the change. For
>>>>> both the internal and external profile, I have auto-nat setup, and I have
>>>>> tried stun and host settings in vars.conf. When I issue a nat_map status I
>>>>> see my old IP address, and if I then issue a nat_map reinit, I see the new
>>>>> public IP address. How can I get this to be automatic?
>>>>>
>>>>> Also the public IP address shown in the nat_map status is not the same
>>>>> as shown in the sofia profile internal/external printouts. Why is this?
>>>>>
>>>>> I'm sure this is configuration, just not sure what to change.
>>>>>
>>>>> Thanks!
>>>>>
>>>>> _______________________________________________
>>>>> FreeSWITCH-users mailing list
>>>>> FreeSWITCH-users at lists.freeswitch.org
>>>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>>>>> UNSUBSCRIBE:
>>>>> http://lists.freeswitch.org/mailman/options/freeswitch-users
>>>>> http://www.freeswitch.org
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> -Rupa
>>>>
>>>
>>>
>>>
>>> --
>>> -Rupa
>>>
>>> _______________________________________________
>>> FreeSWITCH-users mailing list
>>> FreeSWITCH-users at lists.freeswitch.org
>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>>> http://www.freeswitch.org
>>>
>>>
>>
>> _______________________________________________
>> FreeSWITCH-users mailing list
>> FreeSWITCH-users at lists.freeswitch.org
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> http://www.freeswitch.org
>>
>>
>
>
> --
> -Rupa
>
> _______________________________________________
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20101026/baffeeb9/attachment.html
More information about the FreeSWITCH-users
mailing list