Re: [asterisk-users] Get channel variables via ARI/AMI

2023-06-26 Thread Jeff LaCoursiere
I need to get hooked up with this class, I could have students doing projects for homework :) Interested in RTCP? j On 6/26/23 7:45 PM, TTT wrote: I’m in training, so I have to demonstrate something SIP related.  I figure it would be cool to hack a call, hanging it up while in progress

Re: [asterisk-users] Get channel variables via ARI/AMI

2023-06-26 Thread TTT
And I have to admit, I have learned a lot just investigating this. (And appreciate the advice) From: asterisk-users [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Jeff LaCoursiere Sent: Monday, June 26, 2023 6:22 PM To: asterisk-users@lists.digium.com Subject: Re:

Re: [asterisk-users] Get channel variables via ARI/AMI

2023-06-26 Thread TTT
I’m in training, so I have to demonstrate something SIP related. I figure it would be cool to hack a call, hanging it up while in progress from outside Asterisk. Doing so will demonstrate use/knowledge of ARI, AMI, SIP, route-sets, UDP, etc. Practical value: zero :) Who knows,

Re: [asterisk-users] Get channel variables via ARI/AMI

2023-06-26 Thread Jeff LaCoursiere
On 6/26/23 5:19 PM, Jeff LaCoursiere wrote: On 6/26/23 9:00 AM, Joshua C. Colp wrote: On Mon, Jun 26, 2023 at 10:57 AM TTT wrote: I am connecting to the ARI with subscribe all, so I can see channels being created.  I now want to extract a variety of header variables (at the moment

Re: [asterisk-users] Get channel variables via ARI/AMI

2023-06-26 Thread Jeff LaCoursiere
On 6/26/23 9:00 AM, Joshua C. Colp wrote: On Mon, Jun 26, 2023 at 10:57 AM TTT wrote: I am connecting to the ARI with subscribe all, so I can see channels being created. I now want to extract a variety of header variables (at the moment the from and to tag).  I tried to read

Re: [asterisk-users] Get channel variables via ARI/AMI

2023-06-26 Thread TTT
According to RFC3261 : It is possible for the CSeq sequence number to be higher than the remote sequence number by more than one. This is not an error condition, and a UAS SHOULD be prepared to receive and process requests with CSeq values more than one higher than the previous received

Re: [asterisk-users] Get channel variables via ARI/AMI

2023-06-26 Thread Eric Wieling
If you want to do more than just get headers from the INVITE, then you'll need to use an actual SIP Proxy like Kamailio. On 6/26/23 15:03, TTT wrote: It looks like if I call Getvar and pass PJSIP_HEADERS() I can get the entire SIP header for a channel.  I also read (on stackoverflow) that

Re: [asterisk-users] Get channel variables via ARI/AMI

2023-06-26 Thread Joshua C. Colp
On Mon, Jun 26, 2023 at 4:35 PM TTT wrote: > I think that’s getting me close. I’m trying to get (or recreate) the FROM > and TO lines of the header, from a system running PJSIP. I think if I use > CHANNEL to get local_uri and local_tag I can recreate a FROM line like: > > *FROM=;tag=TAG* > > >

Re: [asterisk-users] Get channel variables via ARI/AMI

2023-06-26 Thread TTT
I think that’s getting me close. I’m trying to get (or recreate) the FROM and TO lines of the header, from a system running PJSIP. I think if I use CHANNEL to get local_uri and local_tag I can recreate a FROM line like: FROM=;tag=TAG And if I use CHANNEL to get remote_uri and remote_tag I

Re: [asterisk-users] Get channel variables via ARI/AMI

2023-06-26 Thread Joshua C. Colp
On Mon, Jun 26, 2023 at 4:04 PM TTT wrote: > It looks like if I call Getvar and pass PJSIP_HEADERS() I can get the > entire SIP header for a channel. I also read (on stackoverflow) that the > PJSIP_HEADER function will only return the headers from the INVITE of the > *inbound* channel. > > > >

Re: [asterisk-users] Get channel variables via ARI/AMI

2023-06-26 Thread TTT
It looks like if I call Getvar and pass PJSIP_HEADERS() I can get the entire SIP header for a channel. I also read (on stackoverflow) that the PJSIP_HEADER function will only return the headers from the INVITE of the inbound channel. If that’s correct, how would I get the headers from the

Re: [asterisk-users] Get channel variables via ARI/AMI

2023-06-26 Thread Joshua C. Colp
On Mon, Jun 26, 2023 at 10:57 AM TTT wrote: > I am connecting to the ARI with subscribe all, so I can see channels being > created. I now want to extract a variety of header variables (at the > moment the from and to tag). I tried to read them from the ARI but > Asterisk refuses since the

[asterisk-users] Get channel variables via ARI/AMI

2023-06-26 Thread TTT
I am connecting to the ARI with subscribe all, so I can see channels being created. I now want to extract a variety of header variables (at the moment the from and to tag). I tried to read them from the ARI but Asterisk refuses since the channel is not in a stasis app. Is there a way to