bugThe eXtended osip library - Bugs: bug #25351, to enlarge call ID and add...

 
 

bug #25351: to enlarge call ID and add @IP_address patternt

Submitted by:  sunny <sunnylin>
Submitted on:  Sun 18 Jan 2009 10:34:53 AM UTC  
 
Category: NoneSeverity: 1 - Wish
Item Group: NoneStatus: Wont Fix
Privacy: PublicAssigned to: Aymeric MOIZARD <aymeric>
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sun 18 Jan 2009 06:52:55 PM UTC, comment #1:

It seems you need this format, but SIP doesn't mandates to have the IP format and I prefer to have a short call-id, rather than using 32 char: reducing SIP message size sound more important to me.

Aymeric

Aymeric MOIZARD <aymeric>
Project AdministratorIn charge of this item.
Sun 18 Jan 2009 10:34:53 AM UTC, original submission:

Hi All,

the API seams only provide 10 digits as a call ID,
but if I need more longer, for example 32 digits, and which pattern xxxxxxx@IP_address,
I need ad some code in the file 'jrequest.c' as following.

under function
"osip_from_set_tag (request->from, osip_from_tag_new_random ());"
(line 423)
we add following caode after 438 line:

char tmp[33],randnum[10];

unsigned int number;

/* call-id is always the same for REGISTRATIONS */

i = osip_call_id_init (&callid);

if (i != 0)

goto brood_error_1;

cidrand = osip_call_id_new_random ();

/orger add for call id/

memset(tmp,0x00,sizeof(tmp));

strcat(tmp, cidrand);

strcat(tmp, "-");

number = osip_build_random_number ();

sprintf (randnum, "%u", number);

strcat(tmp, randnum);

strcat(tmp, "-");

number = osip_build_random_number ();

sprintf (randnum, "%u", number);

strcat(tmp, randnum);

strcpy(cidrand,tmp);

and remove following 3 line

cidrand = osip_call_id_new_random ();

strcat(tmp, cidrand);

osip_call_id_set_number (callid, tmp);

sunny <sunnylin>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by aymeric (Posted a comment)
  • -unavailable- added by sunnylin (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 18 Jan 2009 06:52:55 PM UTCaymericSeverity3 - Normal=>1 - Wish
      StatusNone=>Wont Fix
      Assigned toNone=>aymeric
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1