[Freeswitch-users] Accessing the Identity header in the dialplan

Alexandru Tripon alexandru.tripon at itsyscom.com
Thu Apr 9 11:18:15 UTC 2020


Hello,

I wish to kindly ask how can I access the "Identity" header.
I set the following variable to true in my sip profile:`<param
name="parse-all-invite-headers" value="true"/>` in order to access all
invite header but without luck.
The SIP invite header is the following:
`
INVITE sip:1002 at 192.168.59.203 SIP/2.0.
Record-Route: <sip:192.168.59.203;lr>.
Call-ID: dd566f5f1c0c7f746226fdd374fdb2ae at 0:0:0:0:0:0:0:0.
CSeq: 1 INVITE.
From: "1001" <sip:1001 at 192.168.59.203>;tag=1bcc4483.
To: <sip:1002 at 192.168.59.203>.
Via: SIP/2.0/UDP 192.168.59.203:5060;branch=z9hG4bK2003.33316c51.0.
Via: SIP/2.0/UDP 192.168.59.213:5060
;branch=z9hG4bK-323138-463e2aa4a02196f588595ac028866af3.
Max-Forwards: 69.
Contact: "1001" <sip:1001 at 192.168.59.213:5060
;transport=udp;registering_acc=192_168_59_203>.
User-Agent: Jitsi2.11.20200408Linux.
Content-Type: application/sdp.
Content-Length: 897.
Date: Thu, 09 Apr 2020 10:11:24 GMT.
Identity:
eyJhbGciOiJFUzI1NiIsInBwdCI6InNoYWtlbiIsInR5cCI6InBhc3Nwb3J0IiwieDV1IjoiaHR0cHM6Ly9jZXJ0LmV4YW1wbGUub3JnL3Bhc3Nwb3J0LmNlciJ9.eyJhdHRlc3QiOiJBIiwiZGVzdCI6eyJ0biI6WyI8bnVsbD4iXX0sImlhdCI6MTU4NjQyNzA4NCwib3JpZyI6eyJ0biI6IjxudWxsPiJ9LCJvcmlnaWQiOiIxMjM0NTYifQ.MEQCIH9KqTnrIW6pAlCqrYbHEFoCF3AsS6crh4ptSEzfnOM_AiAjZrZJ2Ur1csuYvJN8NygYEg1N-3RseLSoNHQOEX_Z5w;info=<
https://cert.example.org/passport.cer>;ppt="shaken".
Test-Header: mytest.
`
And the message log I get is :
`
variable_sip_i_from: ["1001" <sip:1001 at 192.168.59.203>;tag=1bcc4483]
variable_sip_i_to: [<sip:1002 at 192.168.59.203>]
variable_sip_i_call_id: [dd566f5f1c0c7f746226fdd374fdb2ae at 0:0:0:0:0:0:0:0]
variable_sip_i_cseq: [1 INVITE]
variable_sip_i_max_forwards: [69]
variable_sip_i_contact: ["1001" <sip:1001 at 192.168.59.213:5060
;transport=udp;registering_acc=192_168_59_203>]
variable_sip_i_user_agent: [Jitsi2.11.20200408Linux]
variable_sip_i_date: [Thu, 09 Apr 2020 10:11:24 GMT]
variable_sip_i_content_type: [application/sdp]
variable_sip_i_content_length: [897]
variable_sip_i_via: [ARRAY::SIP/2.0/UDP
192.168.59.203:5060;branch=z9hG4bK2003.33316c51.0;received=192.168.58.201|:SIP/2.0/UDP
192.168.59.213:5060;branch=z9hG4bK-323138-463e2aa4a02196f588595ac028866af3]
variable_sip_i_record_route: [<sip:192.168.59.203;lr>]
variable_sip_i_test_header: [mytest]
`
I tested this in latest release(
https://github.com/signalwire/freeswitch/releases/tag/v1.10.2) and on
master(commit: ae0444e9cbccdee55a80467d605e1e8c3363a36d) and the same thing
happened: the Test-Header is present in the log but the Identity header is
not.
How can I access the "Identity" header in the dialplan?

Thanks for your time,
Tripon Alexandru
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20200409/8de4b8f0/attachment.html>


More information about the FreeSWITCH-users mailing list