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

Brian D'Arcy bdarcy at akiva.com
Thu Apr 29 10:52:56 MST 2004


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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20040429/6be0f139/attachment.htm


More information about the asterisk-users mailing list