So, do you have any ideas or suggestions for this problem? Please, help me! Thanks a lot!
Paolinho9 ---------- Initial Header ----------- >From : "paolinho9" [EMAIL PROTECTED] To : "watchersparadise" [EMAIL PROTECTED] Cc : "sipxtapi-dev" [email protected] Date : Tue, 24 Jul 2007 16:44:12 +0200 Subject : Re: [sipxtapi-dev] problems with sip MESSAGE and PUBLISH > My complete architecture is: > > my client ---- b2b -----wengo-----wengo client > > i've added to b2b MESSAGE and PUBLISH capabilities. > Call works well, in both directions, and MESSAGE works from my client to > wengo client. > Wengo client find me on line, but when he tryes to send a MESSAGE to me, he > receives a 404 not found... > My client is thd party client(complete), and i works only on b2b... > here there are capture wengo client side and my client side.. > I post also my code of publish > > > UtlBoolean > SipLineMgr::publishLine(const Url& identity) > { > SipLine *line = NULL; > line = sLineList.getLine(identity) ; > if ( line == NULL) > { > syslog(FAC_LINE_MGR, PRI_ERR, "unable to enable line (not found): %s", > identity.toString().data()) ; > return FALSE; > } > > //SipLineEvent lineEvent(line, SipLineEvent::SIP_LINE_EVENT_LINE_ENABLED); > //queueMessageToObservers(lineEvent); > > line->setState(SipLine::LINE_STATE_PUBLISHING); > Url canonical = line->getCanonicalUrl(); > Url preferredContact ; > Url* pPreferredContact = NULL ; > > if (line->getPreferredContactUri(preferredContact)) > { > pPreferredContact = &preferredContact ; > } > > > > SipMessage publishMessage; > > UtlString publishCallId; > generateCallId( > line->getLineId(), > SIP_PUBLISH_METHOD, > publishCallId ); > > > UtlString contactField; > getContactField( canonical, contactField, line->getLineId(), > pPreferredContact); > > > UtlString fromUrl(canonical.toString()); > UtlString toUrl("<"+UtlString(canonical.toString())+">"); > UtlString tagVal; > > createTagNameValuePair(tagVal); > publishMessage.setUriTag(&fromUrl, tagVal.data()); > fromUrl.prepend("<"); > fromUrl.append(">"); > publishMessage.setPublishData(canonical.toString(), > > fromUrl.data(), > toUrl.data(), > > publishCallId, > 20, > "presence", > NULL, > NULL, > -1, > NULL > > ); > > /* const char *package = > "<tuple id=\"azersdqre\">\n" > "<status>\n" > "<basic>open</basic>\n" > "<note>Online</note>\n" > "</status>\n" > "<contact priority =\"1\">sip:[EMAIL PROTECTED]</contact>\n" > "</tuple>\n" > "</presence>\n" > ; > > SipPresenceEvent *presenceEvent= new > SipPresenceEvent((canonical.toString(), package));*/ > > > SipPresenceEvent *presenceEvent= new > SipPresenceEvent(canonical.toString()); > > UtlString id = "azersdque"; > Tuple* tuple = new Tuple(id); > > tuple->setStatus(STATUS_OPEN); > tuple->setNote("Online"); > > tuple->setContact(canonical.toString(), 1); > presenceEvent->insertTuple(tuple); > > > > > presenceEvent->buildBody(); > > publishMessage.setBody(presenceEvent); > > > > > publishMessage.setResponseListenerQueue((getMessageQueue())); > > mMyUserAgent->send(publishMessage); > > > > SipPresenceEvent *presenceEvent2= new SipPresenceEvent(canonical.toString()); > > UtlString id2 = "azersdque"; > Tuple* tuple2 = new Tuple(id2); > > tuple2->setStatus(STATUS_OPEN); > > tuple2->setContact(canonical.toString(), 1); > presenceEvent2->insertTuple(tuple2); > > presenceEvent2->buildBody(); > > publishMessage.setBody(presenceEvent2); > > mMyUserAgent->send(publishMessage); > > > line = NULL; > > syslog(FAC_LINE_MGR, PRI_INFO, "enabled line: %s", > identity.toString().data()) ; > > return TRUE; > } > > i send 2 publish message because i try to copy exact behaviour of wengo > client, but it's the same with only 1 message.. > > > ---------- Initial Header ----------- > > >From : "Amith Nambiar" [EMAIL PROTECTED] > To : "paolinho9" [EMAIL PROTECTED] > Cc : "sipxtapi-dev" [email protected] > Date : Tue, 24 Jul 2007 12:24:48 +0400 > Subject : Re: [sipxtapi-dev] problems with sip MESSAGE and PUBLISH > > > > > > > > > If you could elaborate on it , like sending the network captures , sipxtapi > > log etc would be helpful in figuring out the problem. > > I have tried MESSAGE using Sipxtapi and it works well for me. > > > > best, > > Amith > > > > On 7/23/07, paolinho9 <[EMAIL PROTECTED]> wrote: > > > > > > Hello, > > > i'm trying to use SipPimClient for implementing chat via sip MESSAGE. > > > I used also low level funcion on sipxtacklib for PUBLISH..in this way > > > other clients can find me on-line > > > and send me their messages. > > > But I have experimented a problem...after sending my PUBLISH message other > > > sip users, > > > that found me on line, try to send me a sip MESSAGE, but they receive 404 > > > not found. > > > Call works well, so I think that this isn't a REGISTER problem... > > > please, help me!! > > > > > > Thanks a lot! > > > > > > paolinho9 > > > > > > > > > ------------------------------------------------------ > > > Leggi GRATIS le tue mail con il telefonino i-modeTM di Wind > > > http://i-mode.wind.it/ > > > > > > _______________________________________________ > > > sipxtapi-dev mailing list > > > [email protected] > > > List Archive: http://list.sipfoundry.org/archive/sipxtapi-dev/ > > > > > > > > > ------------------------------------------------------ > Scegli infostrada: ADSL gratis per tutta lÂ’estate e telefoni senza canone > Telecom > http://click.libero.it/infostrada > > ------------------------------------------------------ Scegli infostrada: ADSL gratis per tutta lÂ’estate e telefoni senza canone Telecom http://click.libero.it/infostrada _______________________________________________ sipxtapi-dev mailing list [email protected] List Archive: http://list.sipfoundry.org/archive/sipxtapi-dev/
