[Asterisk-Users] Same username on SIP & IAX?
Brian D'Arcy
bdarcy at akiva.com
Thu Apr 29 12:45:05 MST 2004
Carlton and Chris,
Thank you both for your responses! This is exactly what I was looking
for.
On a side note, is this the appropriate way to do "call groups" or
"workgroups" which contain multiple members? IE: Setup a workgroup
extension such as 4000 for sales, and then in the definition, include
each of their variables? IE:
[globals]
4000 => ${BDARCY}&${PERSON1}&${PERSON2}&etc.....
Thanks again for the quick response!
Brian D'Arcy
-----Original Message-----
From: asterisk-users-admin at lists.digium.com
[mailto:asterisk-users-admin at lists.digium.com] On Behalf Of Carlton J.
O'Riley
Sent: Thursday, April 29, 2004 11:31 AM
To: asterisk-users at lists.digium.com
Subject: RE: [Asterisk-Users] Same username on SIP & IAX?
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
_______________________________________________
Asterisk-Users mailing list
Asterisk-Users at lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
More information about the asterisk-users
mailing list