Hi Benny, I've been looking at the output in this situation and I've noticed that when I make a call from account 0 to account 1 the URI isn't in fact, as you suggested, the same. I have the following accounts: Account list: [ 0] sip:+351302013894 at myserver: 200/OK (expires=52) Online status: Offline *[ 1] sip:+351302007329 at myserver: 200/OK (expires=52) Online status: Offline When I make the call from account 0 to account 1 the following happens: 13:15:52.668 pjsua_app.c Call 1 state changed to INCOMING 13:15:52.668 pjsua_app.c Incoming call for account 0! From: <sip:+351302007329@myserver> To: <sip:302007329 at myserver> Press a to answer or h to reject call What's missing is the country code in "To: <sip:302007329 at myserver>". This doesn't happen when I call this account via mobile or any other netmork because what appears in this cases is "To: <sip:+351302007329 at myserver>". Does pjsip strip off the country code when it makes a call? Thanks, Jorge P.S. Sorry about the Cc, I didn't noticed. Hope it doesn't happen this time. Quoting Benny Prijono <bennylp at pjsip.org>: > On 2/19/08, jorge.amador at withus.pt <jorge.amador at withus.pt> wrote: >> Hi everyone, >> >> I?m using the same pjsip application with 2 accounts registering to >> the same server. When I call account 1 with account 0 I get in the >> output the following: >> >> Incoming call for account 0! >> >> Then the application crashes after I try to answer the incoming call. >> Shouldn't it be for account 1? Best regards, >> > > Using 2 accounts with the same domain inside the same pjsua > application generally is not a good idea, as pjsip will have a hard > time determining which account to use for the incoming call. > > Having said that, if the URI exactly matches the account's URI, pjsip > should be able to select that account correctly, and definitely it > shouldn't crash. I've just tested this with the SVN version. > > cheers, > -benny > > P.S.: > btw no need to Cc me in the mail as I'm subscribed to this list > > >> Jorge >> >> > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip at lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org >