sanjeevspr / sipeksdk

Automatically exported from code.google.com/p/sipeksdk
0 stars 0 forks source link

Incoming call cannot display the caller name #2

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Incoming call cannot display the caller name
2. pjsipCallWrapper.cs  onCallIncoming
3. sturi  is in <sip:xxxxx:@xxx@.com>   not display name

What is the expected output? What do you see instead?
the sturi shall be  "XXXDisplayName"<sip:xxxx@xxx@.com>

What version of the product are you using? On what operating system?

Please provide any additional information below.

Original issue reported on code.google.com by zhangyue...@gmail.com on 11 Oct 2009 at 12:38

GoogleCodeExporter commented 8 years ago
Hi, ist there a solution for this problem?

I need to display the Displayname in my Aplliakation: "XXXDisplayName" but i 
get 
only the Number xxxx in the event onIncomingCall

Original comment by jose.seg...@googlemail.com on 20 Oct 2009 at 12:47

GoogleCodeExporter commented 8 years ago
No answer is also an answer!

Thank you for the (none)Help!

Original comment by jose.seg...@googlemail.com on 21 Jan 2010 at 7:52

GoogleCodeExporter commented 8 years ago
hi jose.seguin..
off topic comment here ..but can u receive call? May i know how u do it? u can 
reply 
me at cwchia87@gmail.com
thank you 

Original comment by cwchi...@gmail.com on 5 Mar 2010 at 11:07

GoogleCodeExporter commented 8 years ago
I get neither the DisplayName or the Number.  Instead, I get a GUID-like string:
e.g. 
sturi="sip:e04d938de9124da690c8f1760f151...@204.11.192.37:5060;transport=udp" 
Can anyone explain why?

Original comment by alw...@gmail.com on 5 May 2010 at 5:42

GoogleCodeExporter commented 8 years ago
I have the same problem. Have You solved it?

Original comment by x.Samadh...@gmail.com on 17 Jun 2010 at 4:36

GoogleCodeExporter commented 8 years ago
You can modify pjsipdll sources to obtain this value.

In my case (pjsipDll_mobile)
In function "static void on_incoming_call

Add 

"
    wchar_t* treminfo = (wchar_t*)pj_pool_alloc(app_config.pool, 255);
    treminfo = PJ_STRING_TO_NATIVE(call_info.remote_info.ptr, treminfo, call_info.remote_info.slen);
"

And change 
    cb_callincoming(call_id, tremcontat);
by
    cb_callincoming(call_id, treminfo);

Original comment by Jonas.Si...@gmail.com on 18 Jun 2010 at 8:56

GoogleCodeExporter commented 8 years ago
Unfortunally i don't have ability to compile this library. 
Can You send to me working one, please.

Original comment by x.Samadh...@gmail.com on 18 Jun 2010 at 10:28

GoogleCodeExporter commented 8 years ago
Thanks for the information but i can't find 'cb_callincoming(call_id, 
tremcontat)' in the entire solution...

Which version did you mean??

Thanks!

Original comment by jose.seg...@googlemail.com on 21 Jul 2010 at 9:48

GoogleCodeExporter commented 8 years ago
For pjsipDll (rev-166):  

Open pjsipDll.cpp file and go to static void on_incoming_call ... function; 
then change the line 

if (cb_callincoming != 0) cb_callincoming(call_id, 
call_info.remote_contact.ptr);

by this one:

if (cb_callincoming != 0) cb_callincoming(call_id, call_info.remote_info.ptr);

Build the project again.

HC
Regards.

Original comment by hcaa...@gmail.com on 29 Jul 2010 at 6:23

Attachments:

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
the issue is fixed in the current trunk.

thanks for the suggestions!

Original comment by RAndriese on 6 May 2012 at 7:55