I am working on project in which I use Sipek Voip for connecting to Freeswitch. Here is the situation:
I have a Sangoma A400 hard. I compiled Freeswitch for Windows and now it works perfectly.
I have also created a Softphone using Sipek Voip SDK and it works well with Freeswitch.
The problem is that, when I have an incoming call, instead of showing the callers number, I get mod_sofia.
I looked at Sipek and all it gets from pjsip is a string containing <sip:mod_sofia@192.168.2.10:5060>
.
So I went to pjsip and tried to pass the actual phone number to Sipek. I found out there is a function called pjsua_call_on_incoming
which handles an incoming call.
It takes an argument of type pjsip_rx_data
. It has a string field (rdata->msg_info.msg_buf
) which contains the whole message. I tried to replace <sip:mod_sofia@192.168.2.10:5060>
with the actual number, but it has no effect.
Does anyone have any idea how to fix this?