Re: [OpenSIPStack] OSSPhone AccountAddress
Brought to you by:
joegenbaclor
From: Joegen E. B. <jb...@so...> - 2007-05-30 12:38:52
|
If your registrar is also the same entity as your outbound proxy, make sure you call SetProxyAddress() aside from SetSIPServer() to 10.16.212.40. Counet Jérémy wrote: > > Hi, > > I’ve a problem with AccountAddress. In OSSPhone, you build the TO > header with the SIPServerAddress. On my SIP server the INVITE is > Forbidden because the From header, is not the same at REGISTER and > INVITE. My SIP server is distant and not on the same computer. > > * In my application * , I’ve set AccountAddress with the local host > address. But when I do an INVITE, the stack build the TO header with > the AccounAddress instead of the SIPServerAddress. So in your case, > I’ve REGISTER with a wrong URI, in my case, the TO INVITE header is > not good. > > Can you change this plz or say me where can I fixe this problem. > > Thanks a lot, > > Jeremy. > > ----------------144:08:09.332---------------- > > *** LISTENER STARTED *** 10.16.213.20:5060 [*** DEFAULT LISTENER ***] > > ----------------144:08:37.442---------------- > > REGISTER sip:10.16.212.40:5060 SIP/2.0 > > From: 9555 <sip:9555@10.16.212.40 -> * 10.16.213.20 > *>;tag=a627f1f9cdf81810918589195ccf8571 > > To: sip:9555@10.16.212.40 -> * 10.16.213.20 * > > … > > ----------------144:08:37.615---------------- > > SIP/2.0 100 Trying > > … > > ----------------144:08:37.632---------------- > > SIP/2.0 200 OK > > … > > ----------------144:09:13.001---------------- > > SEND: XOR=0 644 Bytes to 10.16.212.40:5060:UDP (INVITE > sip:101@10.16.212.40 SIP/2.0) Interface Address=10.16.213.20 > > INVITE sip:101@10.16.212.40 -> * 10.16.213.20 * SIP/2.0 > > From: 9555 <sip:9555@10.16.213.20>;tag=845b27facdf81810918789195ccf8571 > > To: sip:101@10.16.212.40 > > … > > ----------------144:09:13.019---------------- > > SIP/2.0 100 Trying > > … > > ----------------144:09:13.030---------------- > > SIP/2.0 403 Forbidden > > … > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > ------------------------------------------------------------------------ > > _______________________________________________ > opensipstack-devel mailing list > ope...@li... > https://lists.sourceforge.net/lists/listinfo/opensipstack-devel > |