Changeset 501:8eda480150bf in verona
- Timestamp:
- Jun 20, 2012 4:59:54 PM (11 months ago)
- Branch:
- default
- File:
-
- 1 edited
-
phapi/phapi.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
phapi/phapi.c
r500 r501 203 203 int ph_set_media_direction( sdp_message_t * sdp, const char *media_type, enum ph_direction direction); 204 204 const char * ph_get_str_direction( enum ph_direction direction); 205 205 int ph_message_set_allow(osip_message_t* msg, const char* allowstr); 206 206 #define nonempty(x) ((x) && (x)[0]) 207 207 … … 1772 1772 return -1; 1773 1773 1774 osip_message_set_allow(invite, "INVITE, ACK, BYE, CANCEL, REFER, NOTIFY, SUBSCRIBE, REGISTER");1774 ph_message_set_allow(invite, "INVITE, ACK, BYE, CANCEL, REFER, NOTIFY, SUBSCRIBE, REGISTER"); 1775 1775 1776 1776 ph_apply_customizations(invite, NULL, NULL); … … 3158 3158 3159 3159 osip_message_set_subject(reinvite, "Call reinvite"); 3160 osip_message_set_allow(reinvite, "INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO");3160 ph_message_set_allow(reinvite, "INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO"); 3161 3161 3162 3162 sdp_context_build_offer(ca->sdpctx); … … 3382 3382 if (vl->rid >= 0) 3383 3383 { 3384 osip_message_set_allow(msg, "INVITE, ACK, BYE, CANCEL, OPTIONS, REFER, NOTIFY, SUBSCRIBE, REGISTER, MESSAGE");3384 ph_message_set_allow(msg, "INVITE, ACK, BYE, CANCEL, OPTIONS, REFER, NOTIFY, SUBSCRIBE, REGISTER, MESSAGE"); 3385 3385 ph_apply_customizations(msg, NULL, NULL); 3386 3386 ret = eXosip_register_send_register(vl->rid, msg); … … 7817 7817 } 7818 7818 7819 int ph_message_set_allow(osip_message_t* msg, const char* allowstr) 7820 { 7821 osip_allow_t* allow; 7822 7823 if (!osip_message_get_allow(msg, 0, &allow)) { 7824 char *tmp = osip_strdup(allowstr); 7825 if (!tmp) 7826 return -1; 7827 osip_free(allow->value); 7828 allow->value = tmp; 7829 return 0; 7830 } 7831 return osip_message_set_allow(msg, allowstr); 7832 } 7833
Note: See TracChangeset
for help on using the changeset viewer.
