Olivier
2018-Oct-10 07:27 UTC
[asterisk-users] How to defer SDP in ACK for unit testing purposes
Hello, I think I met a case similar to the one solved by [1] . Quoting this case : * res_pjsip: Handle deferred SDP hold/unhold properly. Some SIP devices indicate hold/unhold using deferred SDP reinvites. In other words, they provide no SDP in the reinvite. A typical transaction that starts hold might look something like this: * Device sends reinvite with no SDP * Asterisk sends 200 OK with SDP indicating sendrecv on streams. * Device sends ACK with SDP indicating sendonly on streams. Now, I would like to configure an Asterisk instance to act as those SIP devices, ie to defer all SDP signaling in ACK. This is for testing purpose as I would like to reproduce in a lab an issue with those SIP devices. 1. Is it possible ? I can use any Asterisk version for implementation. 2. Alternatively, do you know any softphone "implementing SDP in ACK" ? 3. Alternatively, do you know any SIP hardphone implementing this ? 4. Suggestions ? [1] http://lists.digium.com/pipermail/asterisk-code-review/2016-April/019483.html Cheers -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20181010/090fa7b2/attachment.html>
Joshua Colp
2018-Oct-10 10:25 UTC
[asterisk-users] How to defer SDP in ACK for unit testing purposes
On Wed, Oct 10, 2018, at 4:27 AM, Olivier wrote:> Hello, > > I think I met a case similar to the one solved by [1] . Quoting this case : > > * res_pjsip: Handle deferred SDP hold/unhold properly. > > Some SIP devices indicate hold/unhold using deferred SDP reinvites. In > other words, they provide no SDP in the reinvite. > > A typical transaction that starts hold might look something like this: > > * Device sends reinvite with no SDP > * Asterisk sends 200 OK with SDP indicating sendrecv on streams. > * Device sends ACK with SDP indicating sendonly on streams. > > > Now, I would like to configure an Asterisk instance to act as those SIP > devices, ie to defer all SDP signaling in ACK. > > This is for testing purpose as I would like to reproduce in a lab an issue > with those SIP devices. > > 1. Is it possible ? I can use any Asterisk version for implementation.It is not possible to configure Asterisk for this. The chan_pjsip module only does normal reinvites with SDP when configured to pass through MOH signaling. -- Joshua Colp Digium - A Sangoma Company | Senior Software Developer 445 Jan Davis Drive NW - Huntsville, AL 35806 - US Check us out at: www.digium.com & www.asterisk.org
Olivier
2018-Oct-10 11:11 UTC
[asterisk-users] How to defer SDP in ACK for unit testing purposes
Le mer. 10 oct. 2018 à 12:26, Joshua Colp <jcolp at digium.com> a écrit :> On Wed, Oct 10, 2018, at 4:27 AM, Olivier wrote: > > Hello, > > > > I think I met a case similar to the one solved by [1] . Quoting this > case : > > > > * res_pjsip: Handle deferred SDP hold/unhold properly. > > > > Some SIP devices indicate hold/unhold using deferred SDP > reinvites. In > > other words, they provide no SDP in the reinvite. > > > > A typical transaction that starts hold might look something like > this: > > > > * Device sends reinvite with no SDP > > * Asterisk sends 200 OK with SDP indicating sendrecv on streams. > > * Device sends ACK with SDP indicating sendonly on streams. > > > > > > Now, I would like to configure an Asterisk instance to act as those SIP > > devices, ie to defer all SDP signaling in ACK. > > > > This is for testing purpose as I would like to reproduce in a lab an > issue > > with those SIP devices. > > > > 1. Is it possible ? I can use any Asterisk version for implementation. > > It is not possible to configure Asterisk for this. The chan_pjsip module > only does normal reinvites with SDP when configured to pass through MOH > signaling. >This is the answser I feared ;-) Thanks for replying. If someone has a clue for alternatives (softphones, hardphones, ...), I'll curious to know> > -- > Joshua Colp > Digium - A Sangoma Company | Senior Software Developer > 445 Jan Davis Drive NW - Huntsville, AL 35806 - US > Check us out at: www.digium.com & www.asterisk.org > > -- > _____________________________________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > > Astricon is coming up October 9-11! Signup is available at: > https://www.asterisk.org/community/astricon-user-conference > > Check out the new Asterisk community forum at: > https://community.asterisk.org/ > > New to Asterisk? Start here: > https://wiki.asterisk.org/wiki/display/AST/Getting+Started > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20181010/62335136/attachment.html>
Possibly Parallel Threads
- sip rfc bye violated?
- Reproducible ReInvites sent by UAS after exactly 900s despite session-timers=refuse
- WARNING: chan_sip.c:3470 process_sdp: Unknown SDP media type in offer: image 5004 udptl t38
- Asterisk put call on hold when receive 183 Session Progress with media address 0.0.0.0 in SDP
- PJSIP reInvite