Reading Avaya SIP Data Into A Variable

<--- SIP read from UDP:55.55.55.55:5060 --->
SIP/2.0 200 OK
From: <sip:[email protected]>;tag=as1e1c4c0f
Supported: INVITE
Call-ID: c6b3e3fcc0441e8aff00c2gsdga8d
CSeq: 15 INVITE
Via: SIP/2.0/UDP 66.66.66.66:5060;branch=z9hG4bK46fa9164;rport=5060
Av-Global-Session-ID: c6b3dsgrsegrfcf4-c0srgersg04-41esrgsr8-afsgsgrded-00regeagfgaga
Server: Avaya CM AVAYA-SM
To: "Test" <sip:[email protected]>;tag=c6b3e3fcc0441e8aff00c2gsdga8d
Content-Length: 0

The above is just an example, but I am getting similar SIP messaging. My goal is to pull the “Call-ID” field, I would like to grab and store the value as a variable ($ACUID) for the current call. I want to route based on the data I receive.

I believe I can do this with the sip_header command from the dial plan, but am not sure where to go from there.

This is all a little new to me. I was hoping someone could help guide me.

exten => s,1,Set(ACUID=${SIP_HEADER(Call-ID)})

1 Like

Remember that this is an example, this code may not work without additional changes and information. Specifically, the priority number may need to change.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.