Hi,
I've got a class that I think should work for dialing out from a
conference but I get no onSessionStart() call.
I do get all the SIP replies etc and it all works O.K. except the
onSessionStart() function is never called.
Obviously I've done something wrong. Any suggestions appreciated.
Here is the constructor which does most of the work.
conferenceCalloutDialog::conferenceCalloutDialog ( string ConferenceID,
string CallGroup, string Target, string CallingDomain, multicallFactory
* theFactory ) : _playlist ( this )
{
_target = Target;
_callgroup = CallGroup;
_waiting_termination = false;
gettimeofday ( & _create_ts, NULL );
_state = roomParticipant::NotStarted;
_factory = theFactory;
_conf_id = ConferenceID;
_session_id = AmSession::getNewId();
rtp_str.setPlayoutType ( ADAPTIVE_PLAYOUT );
string uri = "sip:" + Target;
dlg.local_tag = _session_id;
dlg.callid = AmSession::getNewId() + "@" + AmConfig::LocalIP;
dlg.local_party = _conf_id + "@" + CallingDomain;
dlg.remote_party = uri;
dlg.remote_uri = uri;
string body;
int local_port = rtp_str.getLocalPort();
sdp.genRequest ( AmConfig::LocalIP, local_port, body );
DBG("conferenceCalloutDialog::conferenceCalloutDialog for %s has
callgroup %s\n", uri.c_str(), _callgroup.c_str() );
_factory->monitorDialog ( _conf_id, dlg.local_tag, Target );
dlg.sendRequest ( "INVITE", "application/sdp", body, "" );
start();
AmSessionContainer::instance()->addSession ( _session_id, this );
}
Thanks
Jeremy
_______________________________________________
Sems mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/sems