please help! to get original callee id

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

 



> I don't see the original callee id in it
thats the problem, if the original callee id information is dropped in the SIP server, no client could do a orignal callee id recovery.

Try to configure your SIP server to proxy the calls via a route header insertion or something like that, but thats not a pjsip related issue.

Best,
Juri

________________________________________
Von: pjsip-bounces at lists.pjsip.org [pjsip-bounces at lists.pjsip.org] im Auftrag von vopjessie [jessievop at hotmail.com]
Gesendet: Donnerstag, 7. August 2008 15:01
An: pjsip list
Betreff: Re: [pjsip] please help! to get original callee id

Hi Juri, do you mean rdata->msg_info.msg_buf? I don't see the original callee id in it. I use 3CX as the sip server and set it up to forward all inbounds to MyClient. The following is an example of the message(a client 102 calls another client 101, which is forwarded to MyClient 100):

INVITE sip:100 at myclient.ip:1188 SIP/2.0
Via: SIP/2.0/UDP mysite.ip:5060;branch=z9hG4bK-d8754z-4375012f270d1b5d-1---d8754z-;rport
Max-Forwards: 70
Contact: <sip:100 at mysite.ip:5060>
To: <sip:100 at mysite.ip>
From: "102"<sip:102@xxxxxxxxx:5060>;tag=f10a150a
Call-ID: MTk5MjdiYzkwNDZkOTBiZjU5NTQ1NjRkNGRlNDc4YjM.
CSeq: 1 INVITE
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REGISTER, SUBSCRIBE, NOTIFY, REFER, INFO
Content-Type: application/sdp
User-Agent: 3CXPhoneSystem 6.0.650.0
Content-Length: 457

v=0
o=3cxPS 3942645760 132170907649 IN IP4 mysite.ip
s=3cxPS Audio call
c=IN IP4 myclient.ip
t=0 0
a=X-nat:0
m=audio 4064 RTP/AVP 0 103 102 117 3 104 8 101
a=rtcp:4065 IN IP4 myclient.ip
a=rtpmap:0 PCMU/8000
a=rtpmap:103 speex/16000
a=rtpmap:102 speex/8000
a=rtpmap:117 iLBC/8000
a=fmtp:117 mode=20
a=rtpmap:3 GSM/8000
a=rtpmap:104 speex/32000
a=rtpmap:8 PCMA/8000
a=sendrecv
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15


thanks!

-Jessica

> From: juri.glass@xxxxxxxxxxxx
> To: pjsip at lists.pjsip.org
> Date: Thu, 7 Aug 2008 14:25:11 +0200
> Subject: Re: please help! to get original callee id
>
>
> How do you forward the call in that SIP server?
> Do you see the original callee id in the plain SIP message received at MyClient?
>
> Best,
> Juri
> ________________________________________
> Von: pjsip-bounces at lists.pjsip.org [pjsip-bounces at lists.pjsip.org] im Auftrag von vopjessie [jessievop at hotmail.com]
> Gesendet: Donnerstag, 7. August 2008 14:01
> An: pjsip list
> Betreff: Re: [pjsip] please help! to get original callee id
>
> Thank Juri, yes, but for a forwarded call, what i get in rdata-msg_info.to->uri is not the original callee id any more, it is the callee id that actually receives the forwarded call. Do you know if i can get the original callee id of a forwarded call from some where?
>
> thanks
>
> -Jessica
>
>
> > From: juri.glass@xxxxxxxxxxxx
> > To: pjsip at lists.pjsip.org
> > Date: Thu, 7 Aug 2008 13:44:44 +0200
> > Subject: Re: please help! to get original callee id
> >
> > Hi Jessica
> >
> > Every SIP message should contain a To header with a callee SIP URI inside.
> > rdata->msg_info.to->uri
> >
> > Best,
> > Juri
> >
> > ________________________________________
> > Von: pjsip-bounces at lists.pjsip.org [pjsip-bounces at lists.pjsip.org] im Auftrag von vopjessie [jessievop at hotmail.com]
> > Gesendet: Donnerstag, 7. August 2008 03:40
> > An: pjsip at lists.pjsip.org
> > Betreff: [pjsip] please help! to get original callee id
> >
> > Hi all, my sip server is set up to forward all calls to a particular client written in pjsip, say MyClient. I need to know the original callee id (destination client) when a forwarded call reaches MyClient. The following method is called when an incoming call arrives on MyClient:
> >
> > static void on_incoming_call(pjsua_acc_id acc_id, pjsua_call_id call_id, pjsip_rx_data *rdata)
> > {
> > ...
> > }
> >
> > I have looked into some of the data in rdata, but could not find the original callee id. Could someone help me out?
> >
> >
> > thanks in advance
> >
> > -Jessica
> >
> > ________________________________
> > ? Windows Live Spaces ??????????????? ???????<http://spaces.live.com/?page=HP>
> > _______________________________________________
> > Visit our blog: http://blog.pjsip.org
> >
> > pjsip mailing list
> > pjsip at lists.pjsip.org
> > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
>
>
> ________________________________
> ???Hotmail???????? Windows Live Mail? ?????<http://get.live.com/wl/all>
> _______________________________________________
> Visit our blog: http://blog.pjsip.org
>
> pjsip mailing list
> pjsip at lists.pjsip.org
> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org


________________________________
? Windows Live Spaces ??????????????? ???????<http://spaces.live.com/?page=HP>


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux