[Freeswitch-users] To and From fields in SIP OPTIONS

Brian West brian at freeswitch.org
Mon Feb 23 19:04:35 MSK 2015


Those are perfectly valid OPTIONS packets, how exactly is the vendor
claiming it breaks them?

On Mon, Feb 23, 2015 at 4:14 AM, Stanislav Sinyagin <ssinyagin at gmail.com>
wrote:

> It appears that in the OPTIONS ping packet, To and From fields contain
> only the domain name.
>
> In sofia.c:
>
>            if (ping_freq) {
>                 if (ping_freq >= 5) {
>                     gateway->ping_freq = ping_freq;
>                     gateway->ping_max = ping_max;
>                     gateway->ping_min = ping_min;
>                     gateway->ping_monitoring = ping_monitoring;
>                     gateway->ping = switch_epoch_time_now(NULL) +
> ping_freq;
>                     gateway->options_to_uri =
> switch_core_sprintf(gateway->pool, "<sip:%s>",
>                         !zstr(from_domain) ? from_domain : proxy);
>                     gateway->options_from_uri = gateway->options_to_uri;
>                 } else {
>                     switch_log_printf(SWITCH_CHANNEL_LOG,
> SWITCH_LOG_ERROR, "ERROR: invalid ping!\n");
>                 }
>             }
>
>
>
> Is there a reason why To and From fields don;t contain the register
> username? This seems to break some other vendor gateways.
>
>
> thanks,
> stan
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://confluence.freeswitch.org
> http://www.cluecon.com
>
> 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
>



-- 

*Brian West*
brian at freeswitch.org


*Twitter: @FreeSWITCH , @briankwest*
http://www.freeswitchbook.com
http://www.freeswitchcookbook.com

*T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378)
*iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20150223/7fbfb6d5/attachment.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list