...inline...
On Tue, Jul 13, 2010 at 5:26 PM, Eric Cozzi
<ericc@xxxxxxxxxx> wrote:
All,
Let me first apologize for the obvious new user questions. I've recently started looking at Resiprocate to enable PSTN integration with a product under development. I am using the DialogUsageManager, and have been playing with the SipDial example. However, there are a couple of things that I've not yet been able to understand how to do.
1) How do I modify the Codec list on my invite? I've added a OutboundDecorator. Do I do this there? I would think that I should be able to set a list of supported codecs either in the MasterProfile or elsewhere that gets copied into the invite.
You need to build up the SDP contents offer to be sent in your INVITE and pass in the initialOffer parameter to the DialogUsageManager::makeInvitesSession API. For responding to an inbound invite you need to add code to the onOffer callback and call the InviteSession::provideAnswer API.
2) Once my call is connected, where do I exact the negotiated SDP from, including the remote media port/address, codec, etc? Do I get that in the OnOffer callback?
You need to examine the SDP in the onOffer or onAnswer callbacks. DUM abstracts the offer/answer state machine, but it does not provide any higher level API's for creating offers or responding to offers. The recon project however is a higher level API, and implements this functionality. You can consider using recon as a starting place, or a sample UA implementation.
Scott
Thanks in advance,
Eric
_______________________________________________
resiprocate-users mailing list
resiprocate-users@xxxxxxxxxxxxxxx
List Archive: http://list.resiprocate.org/archive/resiprocate-users/