Can multiple FWD accounts be registered? I have the following output in my sip.conf file: register=74928:xxx@fwd.pulver.com/74928 register=75160:xxx@fwd.pulver.com/75160 register=74573:xxx@fwd.pulver.com/74573 [fwd-74928] type=friend secret=xxx username=74928 host=fwd.pulver.com [fwd-75160] type=friend secret=xxx username=75160 host=fwd.pulver.com [fwd-74573] type=friend secret=xxx username=74573 host=fwd.pulver.com Two questions : What exactly does [fwd-74573] mean in this case anyway? Does this category define a local users which another client can then logon to (e.g. I don't really need this) - or is this actually necessary to get FWD working? I notice in online examples that people use [fwd.pulver.com] - but I gather I can't have three of these as it would conflict. The register=74928:xxx@fwd.pulver.com/74928 clause already does the logging in surely - so are the [] required? Secondly, using the above setup - when an incoming call comes in to 74928 I get the following output: -- Executing Answer("SIP/74573-aeb6", "") in new stack -- Executing Wait("SIP/74573-aeb6", "1") in new stack -- Executing Playback("SIP/74573-aeb6", "welcomemsg") in new stack -- Playing 'welcomemsg' (language 'en') - which is strange, considering it was 74928 that was dialled!! However, the extension correctly associated with 74928 does ring (even when called from a true FWD client outside of this asterisk server). The other extensions work fine too. So it almost seems like FWD is correctly registered three times... but just the cosmetic log output is wrong. Is there actually a problem with this? My extensions.conf is attached below for reference. Thanks, Terence --------------------- exten => 74928,1,Answer exten => 74928,2,Wait(1) exten => 74928,3,Playback(welcomemsg) exten => 74928,4,Dial(SIP/TerenceParker&SIP/DavidLiu&SIP/GardenVista&SIP/PeterLiu,90,tm) exten => 74928,5,Voicemail,u999 exten => 74928,6,Hangup exten => 74928,102,Voicemail,b999 exten => 74928,103,Hangup exten => 75160,1,Answer exten => 75160,2,Dial(SIP/DavidLiu,180,tm) exten => 75160,3,Voicemail,u1000 exten => 75160,4,Hangup exten => 75160,102,Voicemail,b1000 exten => 75160,103,Hangup exten => 74573,1,Answer exten => 74573,2,Dial(SIP/TerenceParker,180,tm) exten => 74573,3,Voicemail,u1001 exten => 74573,4,Hangup exten => 74573,102,Voicemail,b1001 exten => 74573,103,Hangup -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20040117/9bc91732/attachment.htm
Philipp von Klitzing
2004-Jan-18 08:18 UTC
[Asterisk-Users] Registering multiple FWD accounts
Hi!> Can multiple FWD accounts be registered?Yes.> I have the following output in my sip.conf file: > > register=74928:xxx@fwd.pulver.com/74928 > register=75160:xxx@fwd.pulver.com/75160 > register=74573:xxx@fwd.pulver.com/74573Ok so far. Now consider this: 1. you register in order to be called: FWD must know where at which IP address to to find you. That is all that the register does, nothing else. 2. you need to set up a SIP user to treat incoming FWD calls so that you can at least set a context for those 3. finally you need SIP user accounts for dialing out via FWD If you would like to dial out to FWD with always the same FWD account when users are connected to Asterisk, then you can combine [fwd-74928] and [FreeWorldDialup] under the section name [fwd-74928] by merging the entries and using type=friend instead. --- extensions.conf --- [fwd-in] ; here we treat incoming FWD calls ; we arrive here because we defined host=fwd.pulver.com ; for the peer [FreeWorldDialup] that has this context [fwd-in] exten => s,1,Hangup exten => 74928,1,Answer exten => 74928,2,Goto(voicemenu,s,1) exten => 74928,3,Hangup exten => 75160,1,Dial(SIP/john,20,rt) exten => 75160,2,Hangup [default] ; dialing out to FWD ; prefix 1 for calling as user 74928, prefix 2 for ... ; we might also insert a SetCallerID() statement here exten => _1X.,1,Dial(SIP/${EXTEN:1}@fwd-74928) exten => _2X.,1,Dial(SIP/${EXTEN:1}@fwd-75160) [sip-john] ; dialing out to FWD ; alternative: have a personal context for each SIP user, ; this way we don't need to add a dial prefix like above ; and we don't need to offer FWD dialout with our private ; accounts to everyone that has access to [default] include => default exten => _X.,1,Dial(SIP/${EXTEN:1}@fwd-74573) --- sip.conf --- [FreeWorldDialup] ; we don't do any authentication for calls coming from FWD context=fwd-in type=user hostname=fwd.pulver.com> [fwd-74928]; fwd alias for this Asterisk PBX ; as you can see this is for outgoing calls only> type=peer > secret=xxxauth=md5> username=74928fromuser=74928> host=fwd.pulver.com > > [fwd-75160]; fwd alias for john> type=peer > secret=xxxauth=md5> username=75160fromuser=75160> host=fwd.pulver.com > > [fwd-74573]; fwd alias for mary> type=peerauth=md5> secret=xxx > username=74573fromuser=74573> host=fwd.pulver.com[john] context=sip-john type=friend secret=xxxx host=dynamic disallow=all allow=ualw allow=gsm ... [mary] context=default ...> FWD working? I notice in online examples that people use > [fwd.pulver.com]If you can avoid it don't use sip.conf usernames in [] that are identical to a FQDN hostname. It works, but it is usually cause for a lot of confusion, makes your setup much harder to understand. Cheers, Philipp