partysip-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Partysip-dev] Re: A problem of partysip and libosip!


From: 军 陈
Subject: Re: [Partysip-dev] Re: A problem of partysip and libosip!
Date: Wed, 24 Jul 2002 17:33:00 +0800 (CST)

   Thank you for your answer first,but I still cannot find where does the program call the function "osip_ist_execute"?  First I use source insight to see the source code ,I search the total source code,it shows nothing.when I grep in the libosip directory,it also tells nothing.

   And I have a problem among the following flows,this flow is generated when I use linphone to register a user on the partysip....Some puzzles are listed there,I hope you can help me examine it.

/***********************Beginning of the log file***********************/

 Server:             WellX Telecom/Partysip/0.4.4
Debug level:        6
Config name:        /etc/partysip.conf
Log name:           Standard output
L0 -1027471059- <psp_utils.c: 171> INFO: registrar plugin: Number of auth rules: 0. Number of user entries: 0
L2 -1027471059- <udp_core.c: 63> INFO: udp plugin: plugin_init()!
L2 -1027471059- <syntax_core.c: 51> INFO: syntax plugin: plugin_init()!
L2 -1027471059- <filter_core.c: 62> INFO: filter plugin: plugin_init()!
L3 -1027471059- <filter_core.c: 141> INFO: filter plugin: Authentication is turned off!
L2 -1027471059- <auth_core.c: 64> INFO: auth plugin: plugin_init()!
L3 -1027471059- <auth_core.c: 77> INFO: auth plugin: Authentication is turned off!
L2 -1027471059- <rgstrar_core.c: 63> INFO: rgstrar plugin: plugin_init()!
L2 -1027471059- <ls_sless_core.c: 61> INFO: ls_sless plugin: plugin_init()!
L2 -1027471059- <ls_localdb_core.c: 54> INFO: ls_localdb plugin: plugin_init()!
L2 -1027471098- <udp.c: 164> INFO: udp plugin: hook1: cb_rcv_udp_message()!
L1 -1027471098- <udp.c: 169> WAITING FOR UDP MESSAGE
L3 -1027471098- <udp.c: 176> INFO: udp plugin: RCV UDP MESSAGE
L1 -1027471098- <udp.c: 169> WAITING FOR UDP MESSAGE
L5 -1027471098- <udp.c: 187> WARNING: udp plugin: no data available!
L1 -1027471098- <imp.c: 357> INFO: imp module: dispatching request!

L5 -1027471098- <sipevent.c: 80> MESSAGE REC. CALLID:1729069151 :-(
L1 -1027471098- <psp_core.c: 414> Branch hash (remote client is not compliant): z9hG4bKlbaed691727f078d33473bb80a24efac8
L3 -1027471098- <psp_req.c: 28> INFO: Allocating psp_req ressource!
L3 -1027471098- <syntax.c: 55> INFO: syntax plugin: validate syntax. (NOT IMPLEMENTED)
L3 -1027471098- <filter.c: 68> INFO: filter plugin: checking rules. (NOT IMPLEMENTED)
L0 -1027471098- <rgstrar.c: 77> INFO: rgstrar plugin: Updating contact list of a user!
L3 -1027471098- <rgstrar.c: 97> INFO: rgstrar plugin: Expires header set to 900!L3 -1027471098- <rgstrar.c: 116> INFO: rgstrar plugin: User Registration saved!
L3 -1027471098- <transaction.c: 34> INFO: allocating transaction ressource 1 1729069151
L3 -1027471098- <nist.c: 30> INFO: allocating NIST context
L3 -1027471098- <rgstrar.c: 137> INFO: rgstrar plugin: Adding bindings in 200 OK for REGISTER!!

/*********here I wonder why this plugin is called,I found this statement located in the function "cb_registrar_add_contacts_in_register",and this function is hooked on the snd_2xx,so when the program have a snd_2xx action,this function may be called,but I think when I first register an user to partysip,it should first called the function "cb_rgstrar_update_contact_list",but I cannot find this is called before the function "cb_registrar_add_contacts_in_register",because I think the function "cb_rgstrar_update_contact_list" is hooked on the imp _register_hook,,,it should be first called,is it true??

*********************************/


the username and host of aor are abiao,,,202.112.101.174
the username and host of uinfo are abiao,,,202.112.101.174

/*********the above two statement is added by myself, when I first register an user i think the content of user_infos should be null,but when I printf the content of it,it shows the second line,why?? ***************/


L3 -1027471098- <psp_req.c: 56> INFO: free psp_req ressouce!
L3 -1027471098- <transaction.c: 209> sipevent evt->transactionid: 1
L3 -1027471098- <transaction.c: 210> sipevent tr->state: 15
L3 -1027471098- <transaction.c: 211> sipevent evt->type: 12
L3 -1027471098- <transaction.c: 212> sipevent evt->sip: 48220
L1 -1027471098- <psp_core4.c: 83> INFO: psp_core_cb_rcvregister!
L3 -1027471098- <transaction.c: 243> sipevent evt: method called!
L3 -1027471098- <transaction.c: 209> sipevent evt->transactionid: 1
L3 -1027471098- <transaction.c: 210> sipevent tr->state: 16
L3 -1027471098- <transaction.c: 211> sipevent evt->type: 20
L3 -1027471098- <transaction.c: 212> sipevent evt->sip: 48b38
L2 -1027471098- <udp.c: 221> INFO: udp plugin: hook2: cb_snd_udp_message()!
L1 -1027471098- <udp.c: 292> INFO: udp_plugin: message sent to 202.112.101.135 on port 5060
L1 -1027471098- <psp_core4.c: 143> INFO: psp_core_cb_snd2xx!
L3 -1027471098- <transaction.c: 243> sipevent evt: method called!

 

  Aymeric Moizard <address@hidden> 的正文:


On Wed, 24 Jul 2002, [gb2312] 军 陈 wrote:

>
> Hi jack and all:
>
> These days,I met a problem,which when I went through the source
> code,I still cannot understand it.I hope someone can help me explain
> it.
>
> When I register some user by using linphone and linphone showed
> "Registration successfull", and in the partysip,it also tells me
> "Registration saved ok"(I will attached the message printed by
> partysip below),but when I call from another UA(also linphone),it
> tells me "user not found".so I trace the source code,and have the
> following problems:
>
> 1).I found the function such as "css_core_cb_rcvinvite"(in
> css_core4.c) is just a statement like:

This is not where the the INVITE is processed at the application level.
It is processed in plugins called by the "imp" module.

> trace(__FILE__,__LINE__,TRACE_LEVEL1,NULL,"INFO: css_core_cb_rcvinvite!\n");
>
> then do nothing,and I trace it in the libosip,I found the process flow
> is like this
>
>
> osip_ist(ict)_execute()---->transcation_execute()--->fsm_method()--->osip->cb_ist_invite_received()(this
> is just css_core_cb_rcvinvite() function),,,Here I wonder where is the
> function osip_ist(ict)_execute called???

a grep will tell you!
Those methods are called each 500ms.

> 2).when I have registered an user in a server,and I made the server
> act as a redirect server, next time,when I called the user from
> another UA, in the server,it should find the user in the function
> "cb_ls_localdb_search_user_location",but I cannot trace it! Why?

You are not using the latest partysip version. Before 0.4.5, version
were beta version. You MUST use this one. Also, you'll get a better
output by compiling with:
CFLAGS="-DSHOW_MESSAGE" ./configure

This will print all SIP messages and will certianly help to debug.
Aymeric

> L2 -1027407033- INFO: udp plugin: hook1: cb_rcv_udp_message()!
> L1 -1027407033- WAITING FOR UDP MESSAGE
> L3 -1027407033- INFO: udp plugin: RCV UDP MESSAGE
> L1 -1027407033- WAITING FOR UDP MESSAGE
> L5 -1027407033- WARNING: udp plugin: no data available!
> L1 -1027407033- INFO: imp module: dispatching request!
> L5 -1027407033- MESSAGE REC. CALLID:1546736410 :-(
> L1 -1027407033- Branch hash (remote client is not compliant): z9hG4bKl634ded7a32933510fe2bc519429abec3
> L3 -1027407033- INFO: Allocating psp_req ressource!
> L3 -1027407033- INFO: syntax plugin: validate syntax. (NOT IMPLEMENTED)
> L3 -1027407033- INFO: filter plugin: checking rules. (NOT IMPLEMENTED)
> L3 -1027407033- INFO: allocating transaction ressource 3 1546736410
> L3 -1027407033- INFO: allocating IST context
> L3 -1027407033- INFO: free psp_req ressouce!
> L3 -1027407033- sipevent evt->transactionid: 3
> L3 -1027407033- sipevent tr->state: 5
> L3 -1027407033- sipevent evt->type: 10
> L3 -1027407033- sipevent evt->sip: 4a500
> L1 -1027407033- INFO: psp_core_cb_rcvinvite!
> L3 -1027407033- sipevent evt: method called!
> L3 -1027407033- sipevent evt->transactionid: 3
> L3 -1027407033- sipevent tr->state: 6
> L3 -1027407033- sipevent evt->type: 21
> L3 -1027407033- sipevent evt->sip: 4ae18
>
> /***I think this maybe exist a procedure of finding the user in the
> localdb is it true??*****/


> L2 -1027407033- INFO: udp plugin: hook2: cb_snd_udp_message()!
> L1 -1027407033- INFO: udp_plugin: message sent to 202.112.101.145 on port 5060
> L1 -1027407033- INFO: psp_core_cb_snd4xx!
> L3 -1027407033- sipevent evt: method called!
>
> Thank you for your answer
>
>
>
> ---------------------------------
> Do You Yahoo!?
> 雅虎体育捕捉激动时刻


_______________________________________________
Partysip-dev mailing list
address@hidden
http://mail.freesoftware.fsf.org/mailman/listinfo/partysip-dev



Do You Yahoo!?
雅虎体育捕捉激动时刻
reply via email to

[Prev in Thread] Current Thread [Next in Thread]