[Freeswitch-users] Aastra SIP-DECT and UNREGISTER from FreeSWITCH
Helmut Kuper
helmut.kuper at ewetel.de
Tue Nov 16 04:27:39 PST 2010
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi Anthony,
as far as I see the mentioned patch doesn't address my problem. I looked
into "sofia-reg.c" and found that FS's already append "expires" to
"contact-header" when a SIP client is registering (as mentioned below).
I applied the following patch which solves the issue with Aastra DECT
SIP OMM-RFPs to sofia_reg.c:
index 67641ae..a94a93a 100644
- --- a/src/mod/endpoints/mod_sofia/sofia_reg.c
+++ b/src/mod/endpoints/mod_sofia/sofia_reg.c
@@ -1437,6 +1437,7 @@ uint8_t sofia_reg_handle_register(nua_t *nua,
sofia_profile_t *profile, nua_hand
}
#endif
} else {
+ sip_contact_add_param(nua_handle_home(nh),
sip->sip_contact, "expires=0");
if (switch_event_create_subclass(&s_event,
SWITCH_EVENT_CUSTOM, MY_EVENT_UNREGISTER) == SWITCH_STATUS_SUCCESS) {
switch_event_add_header_string(s_event,
SWITCH_STACK_BOTTOM, "profile-name", profile->name);
switch_event_add_header_string(s_event,
SWITCH_STACK_BOTTOM, "from-user", to_user);
The only thing what happens is to add "expires=0" parameter to
contac-header when replying "200 OK" to a client's (UN-)REGISTER message.
Shall I open an issue in Jira?
regards
helmut
Am 04.11.2010 18:44, schrieb Anthony Minessale:
> there is a feature request open for this already on jira with a semi
> completed patch.
>
>
> On Thu, Nov 4, 2010 at 12:05 PM, Helmut Kuper <helmut.kuper at ewetel.de> wrote:
> Hi again,
>
> I wiresharked the registering process now and here is the 200 ok reply
> from FS:
>
>
> SIP/2.0 200 OK
> Via: SIP/2.0/UDP aa.aa.aa.aa;branch=z9hG4bK-1065d870d0bfc57
> From: "PP 1" <sip:4919 at bb.bb.bb.bb>;tag=f-4ef46703147946f6
> To: "PP 1" <sip:4919 at bb.bb.bb.bb>;tag=3Dr3pc2Q15Fgj
> Call-ID: 1cd92cc94ef6d804cd2e6b46 at DSIP
> CSeq: 110118 REGISTER
> Contact: "PP 1" <sip:4919 at aa.aa.aa.aa>;expires=600
> Date: Thu, 04 Nov 2010 16:59:55 GMT
> User-Agent: FreeSWITCH-mod_sofia/1.0.head-git-
> Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, UPDATE, INFO,
> REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE
> Supported: timer, precondition, path, replaces
> Content-Length: 0
>
>
> As you can see there is an "expires" parameter in Contact header.
>
> regards
> helmut
>>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAkzieLsACgkQ4tZeNddg3dxJpACfapgSUpPocn1QJmHKxtqUTSOS
Ha4An12EjWIbCOLTqqaTA/ipAPLoaOF9
=j3bn
-----END PGP SIGNATURE-----
More information about the FreeSWITCH-users
mailing list