Thanks Benny, that might have made it work but I solved the problem differently - my solution might mean that there is a bug in pjsip but maybe not. First I found that the main pjsua has local-port and ip-addr parameters so I played with this. I found that I got the same wrong behaviour if I set the local-port parameter but if I set the ip-addr parameter it goes to the right port! I changed my code to set the ipaddress (its set to 0 in simpleua.c) and it worked fine. Julian --------------------------------- Sent from Yahoo! Mail. A Smarter Inbox. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20080301/50460943/attachment.html