I've tried a few more things, and still can't get it all the way working.
Here is where I am at now:
1. Use NUTAG_M_USERNAME() in the nua_set_hparams(). This seems to work well with all out going requests, but does work with incomming requests that have handles allocated by the stack.
2. Use SIPTAG_CONTACT_STR() in all the nua_respond(). This seems to work for incoming handles allocated by the stack work.

I still have the problem of a the bogus Contact: header for all incoming requests that get auto acknowledged. e.g.
An incoming re-INVITE to an active dialog that was generated via an incoming INVITE, gets automatically responded to with 200 OK, but the Contact: header has no username in the URL.

Colin..


Colin Whittaker wrote:
Well, I spoke too soon again.
I wasn't using the SIPTAG_CONTACT_STR() in the nua_handle() command. If I do that I get duplicate Contact: headers in the REGISTER.
I thought this was fixed some time ago.

What I am doing is using the NUTAG_M_USERNAME() and SIPTAG_FROM_STR in nua_set_hparam() call after creating the handle.

Colin..


Colin Whittaker wrote:
Ok, it builds fine now. Thanks.

Another problem.
Back to the Contact: header issue I have been having.
It appears something changed. My Contact headers for incoming handles are wrong again.
Here is the whole issue in a nut-shell.
I am trying to support multiple lines on one nua agent. Multiplexing on user-name.
This works fine for any handles I create since I can set the Contact string with SIPTAG_CONTACT_STR() when I create the handle.
On incoming INVITEs, the stack creates the handle, and I can not set the contact string. So in version 1.12.4 I would include NUTAG_M_USERNAME() in all my nua_respond() calls. This seemed to fix the Contact: header. This doesn't seem to work any longer.
Now I get the default Contact: header which only includes the IP address.
Here is an example trace of an incomming call, notice the Contact: header in the 180 ringing and 200 OK messages.
Any ideas on how I can make this work ?

=================================================================================
19:24:37.135522 10.2.21.2.5060 > 10.1.64.123.5060:  udp 474 (DF)
INVITE sip:[EMAIL PROTECTED] SIP/2.0
Call-ID:gfebjdgafdfgbabb-ibihfdahbb
CSeq:6001 INVITE
Contact: sip:[EMAIL PROTECTED]
From:.phone 1. <sip:[EMAIL PROTECTED]>;tag=fidafggafdfgbabb-ibihfdahbb
To: sip:[EMAIL PROTECTED]
Via:SIP/2.0/UDP 10.2.21.2:5060
Content-Length: 137
Content-Type:application/sdp
Max-Forwards:70

v=0
o=ast12345sg 2118415746003979100 2862837926349621065 IN IP4 10.1.64.123
s=-
c=IN IP4 10.1.64.123
t=0 0
m=audio 13058 RTP/AVP 0
=================================================================================
19:24:37.155526 10.1.64.123.5060 > 10.2.21.2.5060:  udp 270 (DF) [tos 0xb8]
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 10.2.21.2:5060
From: .phone 1. <sip:[EMAIL PROTECTED]>;tag=fidafggafdfgbabb-ibihfdahbb
To: <sip:[EMAIL PROTECTED]>
Call-ID: gfebjdgafdfgbabb-ibihfdahbb
CSeq: 6001 INVITE
User-Agent: sofia-sip/1.12.4work
Content-Length: 0

=================================================================================
19:24:37.175524 10.1.64.123.5060 > 10.2.21.2.5060:  udp 439 (DF) [tos 0xb8]
SIP/2.0 180 Ringing
Via: SIP/2.0/UDP 10.2.21.2:5060
From: .phone 1. <sip:[EMAIL PROTECTED]>;tag=fidafggafdfgbabb-ibihfdahbb
To: <sip:[EMAIL PROTECTED]>;tag=t8yZp90gK0yQK
Call-ID: gfebjdgafdfgbabb-ibihfdahbb
CSeq: 6001 INVITE
Contact: <sip:10.1.64.123;transport=udp>
User-Agent: sofia-sip/1.12.4work
Accept: application/sdp
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, REFER, UPDATE, NOTIFY
Supported: timer
Content-Length: 0

=================================================================================
19:24:37.215525 10.2.21.2.5060 > 10.1.64.123.5060:  udp 323 (DF)
SIP/2.0 180 Ringing
Call-ID:b21a67e1-2ccc-122a-9c9b-75d8ea89dc17
CSeq:100001001 INVITE
Contact: sip:[EMAIL PROTECTED]
From:"phone 1" <sip:[EMAIL PROTECTED]>;tag=1t844t89QQ5mH
To:<sip:[EMAIL PROTECTED]>;tag=efhhbffhfdfgbabb-ibihfdahbb
Via:SIP/2.0/UDP 10.1.64.123;branch=z9hG4bKB3UtB2X4j2Sap
Content-Length:   0

=================================================================================
19:24:40.175597 10.1.64.123.5060 > 10.2.21.2.5060:  udp 650 (DF) [tos 0xb8]
SIP/2.0 200 OK
Via: SIP/2.0/UDP 10.2.21.2:5060
From: .phone 1. <sip:[EMAIL PROTECTED]>;tag=fidafggafdfgbabb-ibihfdahbb
To: <sip:[EMAIL PROTECTED]>;tag=t8yZp90gK0yQK
Call-ID: gfebjdgafdfgbabb-ibihfdahbb
CSeq: 6001 INVITE
Contact: <sip:10.1.64.123;transport=udp>
User-Agent: sofia-sip/1.12.4work
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, REFER, UPDATE, NOTIFY
Supported: timer
Session-Expires: 1800;refresher=uas
Min-SE: 120
Content-Type: application/sdp
Content-Disposition: session
Content-Length: 128

v=0
o=- 5780481952079897817 7460878766181335184 IN IP4 10.1.64.123
s=-
c=IN IP4 10.1.64.123
t=0 0
m=audio 13062 RTP/AVP 0



Pekka Pessi wrote:
On 2/1/07, Colin Whittaker <[EMAIL PROTECTED]> wrote:
  
Just grabbed the top of darcs, and ran into a build problem:
Looks like it is looking for some file called sys/epoll.h. I'm guessing
my version of the build tools does not support this extension.
gcc version 2.95.3
    

Looks like there was some experimental #define thing that got escaped
from the lab.

I fixed it, together with a more complete su_root_t reactor virtualization.

  

------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

_______________________________________________ Sofia-sip-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel

------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

_______________________________________________ Sofia-sip-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Sofia-sip-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel

Reply via email to