Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[asterisk-users] re-invite (bypass asterisk) post call establishment


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
ben4asterisk at yahoo.com
Guest





PostPosted: Mon Apr 21, 2008 3:34 am    Post subject: [asterisk-users] re-invite (bypass asterisk) post call estab Reply with quote

Hello ppl,
Any way to do a re-invite and make RTP bypass Asterisk, after call establishment.
In other words, I would like to control when to do the bypass work for peer-peer RTP flow.
The issue is that I need to send DTMFs after dialing the user because most of the users are behind PBXes (having individual extensions) themselves and almost all of the PBXes send a 200 OK and then play out the PBX messages.
So I need to send the extension DTMFs first, bridge the calls and then re-invite users for them to do a peer-peer rtp conversation.

TiA,
- Ben.






____________________________________________________________________________________
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080421/de44dfdd/attachment-0001.htm
Back to top
davies147 at gmail.com
Guest





PostPosted: Mon Apr 21, 2008 4:16 am    Post subject: [asterisk-users] re-invite (bypass asterisk) post call estab Reply with quote

On 21/04/2008, Benjamin Jacob <ben4asterisk at yahoo.com> wrote:
Quote:


Hello ppl,
Any way to do a re-invite and make RTP bypass Asterisk, after call
establishment.
In other words, I would like to control when to do the bypass work for
peer-peer RTP flow.
The issue is that I need to send DTMFs after dialing the user because most
of the users are behind PBXes (having individual extensions) themselves and
almost all of the PBXes send a 200 OK and then play out the PBX messages.
So I need to send the extension DTMFs first, bridge the calls and then
re-invite users for them to do a peer-peer rtp conversation.

TiA,
- Ben.

You don't say what you've tried already, but as long as
canreinvite=yes is set against the SIP peer, the RTP stream should be
redirected once the connection is open.

As far as DTMF to dial an extension at the remote end, have you looked
at the D() parameter to the Dial command?

Regards,
Steve
Back to top
ben4asterisk at yahoo.com
Guest





PostPosted: Tue Apr 22, 2008 12:39 am    Post subject: [asterisk-users] re-invite (bypass asterisk) post call estab Reply with quote

Apologies for not explaining the set up .

Using AstMan API, I Originate a call to user A. User A is a conference bridge which needs pin authentication. So post 200 OK, I need to send DTMFs for that pin.
After sending the pin, I Dial (using the Originate context) user B. Now user B is behind a PBX, so I need to dial the extension for user B. I send the extension digits using DTMFs again.

So, if I set canreinvite=yes, as soon as I get a 183/200 OK from user B, re-Invites are sent to both participants with the other's SDP.

So, my question : once the SDPs are exchanged, what will happen to the DTMFs sent by Asterisk using sendDTMF or the D option in dial.

Another scenario would be to call user B first and then user A first. The same case applies over there as well.

Is there any other way to tell asterisk when to do a re-Invite/control the timing of the re-Invite?

Hope I am clear this time.

cheerz
- Ben.
Steve Davies <davies147 at gmail.com> wrote: On 21/04/2008, Benjamin Jacob wrote:
Quote:


Hello ppl,
Any way to do a re-invite and make RTP bypass Asterisk, after call
establishment.
In other words, I would like to control when to do the bypass work for
peer-peer RTP flow.
The issue is that I need to send DTMFs after dialing the user because most
of the users are behind PBXes (having individual extensions) themselves and
almost all of the PBXes send a 200 OK and then play out the PBX messages.
So I need to send the extension DTMFs first, bridge the calls and then
re-invite users for them to do a peer-peer rtp conversation.

TiA,
- Ben.

You don't say what you've tried already, but as long as
canreinvite=yes is set against the SIP peer, the RTP stream should be
redirected once the connection is open.

As far as DTMF to dial an extension at the remote end, have you looked
at the D() parameter to the Dial command?

Regards,
Steve

_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users



---------------------------------
Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080421/c3c8e2c1/attachment-0001.htm
Back to top
davies147 at gmail.com
Guest





PostPosted: Tue Apr 22, 2008 3:58 am    Post subject: [asterisk-users] re-invite (bypass asterisk) post call estab Reply with quote

2008/4/22 Benjamin Jacob <ben4asterisk at yahoo.com>:
[snip]
Quote:

So, my question : once the SDPs are exchanged, what will happen to the DTMFs
sent by Asterisk using sendDTMF or the D option in dial.

[snip]

As far as I can tell, the D() option will be executed before the
re-invite takes place, so Asterisk will still be in-line. I believe
that the dial is not considered "complete/connected" until the D() is
finished.

Cheers,
Steve
Back to top
ben4asterisk at yahoo.com
Guest





PostPosted: Tue Apr 22, 2008 6:54 am    Post subject: [asterisk-users] re-invite (bypass asterisk) post call estab Reply with quote

Hi again,
I tried this again, but the reInvite happens immediately after the 200 OK/ACK. And then the D() specified DTMF is sent.

Attached is the SIP trace for the calls.
I call (from Asterisk) - 0119198807xxxxx
After connect, I dial - 31927xxxxx.
This number 31927xxxxx is the conference bridge and I need to send DTMF (the bridge PIN) to it after connection. But alas, the reinvite happens before the D() is executed.
The SIP gateway is MySIPGateway at 204.aaa.bbb.ccc.

cheers
- Ben.


Steve Davies <davies147 at gmail.com> wrote: 2008/4/22 Benjamin Jacob :
[snip]
Quote:

So, my question : once the SDPs are exchanged, what will happen to the DTMFs
sent by Asterisk using sendDTMF or the D option in dial.

[snip]

As far as I can tell, the D() option will be executed before the
re-invite takes place, so Asterisk will still be in-line. I believe
that the dial is not considered "complete/connected" until the D() is
finished.

Cheers,
Steve

_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users



---------------------------------
Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080422/a2753a4d/attachment-0001.htm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: reInvite
Type: application/octet-stream
Size: 24529 bytes
Desc: 1957794313-reInvite
Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20080422/a2753a4d/attachment-0001.obj
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services