SIP_HEADER on P-Asserted-Identity value

General discussions about Asterisk.

Moderators: Moderator, Support

SIP_HEADER on P-Asserted-Identity value

Postby rtjoa » Thu Jun 18, 2015 10:12 pm

Hello,

I am trying to capture P-Asserted-Identity value using SIP_HEADER command but it does not work and I get empty string. My diaplan is exten => s,n,Set(RPID=${SIP_HEADER(P-Asserted-Identity)})

I can read other variables such as TO and FROM.

I am using Asterisk 11.16.0 and PAI from wireshark (just for confirmation):
P-Asserted-Identity: "Tester1" <sip:7001@10.100.6.253>
SIP Display info: "Tester1"
SIP PAI Address: sip:7001@10.100.6.253
SIP PAI User Part: 7001
SIP PAI Host Part: 10.100.6.253

CAll scenario is attended transfer.

Any ideas what am I missing?
Thank you in advance.

Regards,
Ronny
Last edited by rtjoa on Fri Jun 19, 2015 12:53 pm, edited 1 time in total.
rtjoa
Newsterisk
 
Posts: 3
Joined: Thu Jun 18, 2015 4:54 am

Re: SIP_HEADER on P-Asserted-Identity value

Postby david55 » Fri Jun 19, 2015 8:58 am

Why cant you use trustrpid=yes?
david55
Moves Like Spencer
 
Posts: 12570
Joined: Fri Sep 26, 2008 5:03 am

Re: SIP_HEADER on P-Asserted-Identity value

Postby rtjoa » Fri Jun 19, 2015 10:21 am

I have used both sendrpid=pai and trustrpid=yes
rtjoa
Newsterisk
 
Posts: 3
Joined: Thu Jun 18, 2015 4:54 am

Re: SIP_HEADER on P-Asserted-Identity value

Postby david55 » Fri Jun 19, 2015 11:50 am

If you use trustrpid=yes, the information should be available using ${CALLERID(...)}
david55
Moves Like Spencer
 
Posts: 12570
Joined: Fri Sep 26, 2008 5:03 am

Re: SIP_HEADER on P-Asserted-Identity value

Postby rtjoa » Wed Jun 24, 2015 12:32 pm

Thanks David.

I made a mistake by calling SIP_HEADER before Dial().

I use macro in Dial then calling SIP_HEADER. I want to capture original caller ID in attended transfer but the macro captures second last INVITE.

Can I detect attended transfer (last INVITE) in dial plan?
rtjoa
Newsterisk
 
Posts: 3
Joined: Thu Jun 18, 2015 4:54 am

Re: SIP_HEADER on P-Asserted-Identity value

Postby david55 » Thu Jun 25, 2015 1:25 am

A SIP attended transfer is indistinguishable from a normal SIP call before Dial is called.

For a features.conf attended transfer, the SIP both SIP calls are outgoing, the transferror identity identity hasn't changed, and there is nothing that would force there to be even any SIP signalling from the trasnferror.
david55
Moves Like Spencer
 
Posts: 12570
Joined: Fri Sep 26, 2008 5:03 am


Return to Asterisk General

Who is online

Users browsing this forum: Exabot [Bot] and 1 guest