[Asterisk-Users] Same username on SIP & IAX?

Carlton J. O'Riley CORILEY at comcast.net
Thu Apr 29 11:31:19 MST 2004


Brian,
  You could simply make 

BDARCY => SIP/bdarcy&IAX/bdarcy

This would call both and the first to answer would get the call.  If they're
not registered with IAX on the laptop that won't even ring and the SIP one
will still work and your dial rules will follow.

Carlton

________________________________

From: asterisk-users-admin at lists.digium.com
[mailto:asterisk-users-admin at lists.digium.com] On Behalf Of Brian D'Arcy
Sent: Thursday, April 29, 2004 1:53 PM
To: asterisk-users at lists.digium.com
Subject: [Asterisk-Users] Same username on SIP & IAX?



Hello,

 

In setting up * for my company's office and remote employees, I have a
question about how to log one username into * as either a SIP account, or
IAX account.  For example, we will be using SIP phones in the office locally
to the * server, however some employees travel, and want to use IAX (as it's
much friendlier with firewall/proxy setups than SIP) clients on their
notebooks.

 

We have 100 DID numbers coming into our office, so having a seperate
extension for each user who travels is not really the preferred solution.
It's much easier to just hand out one phone number on your business cards.

 

My setup in extensions.conf looks like the following (simplified) for one
example user:

 

[globals]
BDARCY => SIP/bdarcy
3209 => ${BDARCY}
 
[macro-stdexten]
exten => s,1,Dial(${ARG2},20,tTr)
exten => s,2,Voicemail(u${ARG1})
exten => s,3,Wait(4)
exten => s,4,Hangup
exten => s,102,Voicemail(b${ARG1})
exten => s,103,Wait(4)
exten => s,104,Hangup

 

[inbound]
include => default
exten => _6103XXX,1,Macro(stdexten,${EXTEN:3},${${EXTEN:3}},Tr)

 

[userexten]
exten => 3209,1,Macro(stdexten,3209,${BDARCY})
exten => bdarcy,1,Goto(3209|1)

 

I'm under the impression that, when calling a client extension, you must
pass in the protocol type, IE: SIP/BDARCY or IAX2/BDARCY (as defined in
[globals]) into the dial string (in my macro), so, assuming I have an entry
in sip.conf for my username [bdarcy] and one in iax.conf for [bdarcy], how
can I log in using the same account, dynamically from different locations
using either IAX, or SIP?  Is this possible, or just a pipe dream?

 

Thanks in advance,

 

Brian D'Arcy




More information about the asterisk-users mailing list