[asterisk-users] Get channel variables via ARI/AMI
TTT
lists at telium.io
Mon Jun 26 15:30:55 CDT 2023
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 request.
So if I use a high value integer (maxint) I’m hoping the UAC will accept my message (though this will mess up future transactions, so other than BYE this is not a viable solution for an ongoing dialog). The other problem I see is that I can't get the route set, so this this would work only with UAC’s on the same network (not NAT/proxies/etc). If I needed to traverse NAT I would need something like Kamilio as Eric points out, to get the route set). Or…maybe PJSIP_HEADERS will give me the route set..I need to experiment with that one).
Since this is just for my learning, I want to see if I can hangup a call in progress, running through the asterisk server. This is fun for my learning, so I realize there is of little practical value :)
Brian
From: asterisk-users [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Joshua C. Colp
Sent: Monday, June 26, 2023 3:56 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion <asterisk-users at lists.digium.com>
Subject: Re: [asterisk-users] Get channel variables via ARI/AMI
On Mon, Jun 26, 2023 at 4:35 PM TTT <lists at telium.io <mailto:lists at telium.io> > 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=<URI>;tag=TAG
And if I use CHANNEL to get remote_uri and remote_tag I can recreate a FROM line like:
TO=<URI>;tag=TAG
Would it be correct to assume that with this info (and ip:port info) I should be able to send a UDP SIP message from the PBX to the UA which appears to be part of the current call dialog? I realize this is an odd thing to do, but I’m just interested in technical feasibility at this point. Before I try to code this I want to ensure I’m not missing something stupid.
Probably not. Sequence number also matters.
--
Joshua C. Colp
Asterisk Project Lead
Sangoma Technologies
Check us out at www.sangoma.com <http://www.sangoma.com> and www.asterisk.org <http://www.asterisk.org>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20230626/4a30d7f3/attachment.html>
More information about the asterisk-users
mailing list