Displaying 20 results from an estimated 3000 matches similar to: "branching in extensions.conf?"
2019 Feb 20
2
branching in extensions.conf?
On Wed, 2019-02-20 at 11:46 -0700, John Kiniston wrote:
> Use the IF function to evaluate and change the dial command directly.
Thanks for taking the time, but that doesn't actually answer the
question I asked. It in fact answers the caveat I specifically
mentioned:
> Granted the particular above example could probably be better
> written to simply modify $ARG2 based on ${SIP}
2009 May 20
1
Macro with DIALSTATUS
Hi,
I am trying to pass DIALSTATUS to a Macro so that i can set a
variable when a call is placed (call is placed via a call file to
another extension first). Basically i don't want to dial a number
where a call is already bridged and thats why i am setting a variable.
[macro-afterdial];
exten => s,1,Goto(s-${ARG1},1)
exten => s-ANSWER,1,SetGlobalVar(NUM${ARG2} = "ACTIVE")
2019 Apr 17
2
IPv6 transport results in ICE with only IPv6 candidates
On Wed, 2019-04-17 at 10:04 -0400, Joshua C. Colp wrote:
>
> You specify the transport in the SIP URI. For example:
>
> sip:test at example.com;transport=tcp
Hrm. This is probably going to be pretty basic, but some googling
didn't seem to come up with anything. How do you do this when you are
assigning to a variable in extensions.conf such as:
FRED=PJSIP/outgoing/sip:fred at
2019 Apr 17
2
IPv6 transport results in ICE with only IPv6 candidates
On Wed, 2019-04-17 at 11:56 -0400, Joshua C. Colp wrote:
> On Wed, Apr 17, 2019, at 12:51 PM, Brian J. Murrell wrote:
> >
> > I can add it onto the end of the variable in the Dial() command:
> >
> > Dial(${FRED};transport=tcp,${timeout},TtWw);
[ the part you trimmed ]:
and it has the desired effect, but of course specifying at the point
where the Dial command is sets
2016 Jul 20
3
PJSIP_DIAL_CONTACTS issue
Hi,
I'm facing a strange dialplan issue with a PJSIP_DIAL_CONTACTS.
When I try to call an offline endpoint with PJSIP_DIAL_CONTACTS, the dial
command breaks and the call control go to hangup block instead of next
priority. The error in CLI says "*Dial requires an argument
(technology/resource)*".
This error seems legit as there are no contacts for an offline endpoint.
The dialplan
2006 May 09
2
exten statement execution order
In the following macro, a call is dialed and control branches according
to DIALSTATUS, much like the default std-exten macro. What I'm trying
to figure out is how to regain control when the call is answered.
; Standard extension logic
[macro-stdexten]
; ${ARG1}=Extension ${ARG2}=Device(s) to ring
exten => s,1,NoOp(stdexten ${EXTEN})
exten =>
2019 Nov 26
2
multiple softphone clients and same/different account credentials
>> So which option is preferred?
>>
>> A) Have a softphone aor/auth_user/password for a particular human, and
>> expect them to configure it on multiple devices. Do not worry that 1)
>> multiple are registered at once (because that's normal in SIP) and 2)
>> asterisk has no idea which is which (because the intent is to place a
>> call to
2019 Jun 09
2
Dial(${PJSIP_DIAL_CONTACTS(Alice)} & ${PJSIP_DIAL_CONTACTS(Bob)}) how not to fail if one endpoint has no registered AOR?
Dear List
It's probably been more than a year now I switched from chan_sip to
pjsip. pjsip works much cleaner than chan_sip.
But!
I have come across a Problem I was not able to solve with Asterisk
Dialplan Logic.
With pjsip an endpoint can have multiple AOR, so you need to expand
them with ${PJSIP_DIAL_CONTACTS()} to be able to Dial() all of them
simultaneously.
But there are also
2007 Jun 12
1
call from ISDN
Hello everybody, I have installed the Billion ISDN on a Debian machine.
I proved to call with a ISDN telephone conected to ISDN Box and it is OK. So
I connect the Billion ISDN to the ISDN Box and I call from a extension to
outside.
But it doesn't work, that is what I have in the CLI:
*CLI> -- Executing Dial("SIP/101-f9eb", "ZAP/g1/943833473|45|tTwW") in
new
2007 Jun 19
1
problem with mISDN
Hello, I have some problems with mISDN.
I can't send or receive call from the Billion ISDN card
Mi configuration files are thoose:
extensions.conf:
[general]
static=yes
writeprotect=yes
[SOME]
exten => 101,1,Dial(SIP/101,30,Ttm)
exten => 101,2,Hangup
exten => 102,1,Dial(SIP/102,30,Ttm)
exten => 102,2,Hangup
include => outgoing
[outgoing]
exten
2019 Nov 26
2
multiple softphone clients and same/different account credentials
(I'm new to Asterisk, after having started VOIP with vat on the mbone in
the 90s.)
I am setting up my first Asterisk system, and trying to read
docs/guidance and follow best practices. I have read the 5th Edition of
"Asterisk: The Definitive Guide" and like the 3rd Edition on the web it
recommends that hardphones and softphones both have a unique name
distinct from any concept of
2007 Jun 13
2
mISDN problem
Hello everybody.
I am trying to configure an Asterisk on Debian with the Billion ISDN card. I
am using mISDN.
But when I call on the CLI apears this:
-- Executing Dial("SIP/101-081805b8", "mISDN/1/943833473|45|tTwW") in new
stack
-- Called 1/943833473
P[ 1] empty_chan_in_stack: cannot empty channel 255
P[ 1] --> we have already send Release_complete
== Everyone is
2006 Mar 21
3
Zap<-->IAX codec?
Hi,
at my Asterisk box, I have a few of IAX2 phones (configured with
alaw/ulaw/gsm codecs, in this order) and a PRI E1 line.
In iax.conf I hav:
disallow=all
allow=alaw
allow=ulaw
allow=gsm
During some incoming call, I read at console:
-- Executing Dial("Zap/2-1", "IAX2/215|20|TtwW") in new stack
-- Called 215
-- Call accepted by 10.97.1.7 (format ulaw)
--
2023 Jun 21
3
Multiple phones on same PJSIP account
Ok I've got multiple phone sets registered with the same extension/secret.
However, this causes a strange problem. If I have 3 phone sets registered on extension 123, and I then call extension 123 (from extension 456), only a SINGLE phone set will ring.
Is this by design or a bug? Does only the most recently registered phone set ring when I call the extension? Seems odd...is there a way
2020 Oct 02
1
PJSIP_DIAL_CONTACTS and Queues
Is there a solution to dial multiple contacts for a Queue agent?
Since the pandemic started many of our customers have begun to move
agents off site. Since most of them were using softphones we did not
have any problems but now we have one case where the agents have a desk
phone in their cubicle and are using a softphone from home. For regular
calls there is no problem as
2014 Oct 30
1
Register multiple phones to a single AOR with PJSIP
I just finished installing Asterisk 13 on our test server and I can
now use PJSIP to register phones and make and receive calls. The only
problem I am having is that when I register multiple phones to a single
account only one of them rings. The AOR for the account has maxcontacts
at 3.
If I do a pjsip show endpoints I can see two "Contact" entries
which I take to mean that
2008 Oct 21
4
subscripting a one column matrix drops dimension
Hi all,
Why subscripting a one column matrix drops one dimension?
> x<- matrix(rnorm(100), ncol=1)
> str(x)
num [1:100, 1] -0.413 -0.845 -1.625 -1.393 0.507 ...
> str(x[20:30,])
num [1:11] -0.315 -0.693 -0.771 0.448 0.204 ...
> str(x[20:30])
num [1:11] -0.315 -0.693 -0.771 0.448 0.204 ...
This breaks:
> cov(x)
[,1]
[1,] 0.9600812
>
2015 Jul 15
2
How to dial extensions asynchronous-sequentially ?
Heya Rodrigo
Not sure, but this expansion on Sammy's concept may help you achieve the delayed ring on the secondary extensions you were looking for.
exten => _600.,1,Dial(PJSIP/${EXTEN})
exten => _600.,n,Hangup
exten => _600.wait5,1,Wait(5)
exten => _600.wait5,n,Dial(PJSIP/${EXTEN:0:4})
exten => _600.wait5,n,Hangup
exten => 555,1,Dial(LOCAL/6001&LOCAL/6002.wait5)
2016 Jun 30
6
[PATCH 0/6] lib: string: add function strtolower()
This series introduces a new generic function strtolower(), which
converts strings to lowercase in-place, overwriting the original
string. This kind of functionality is needed in several places in the
kernel. Right now, everybody seems to be implementing their own copy of
this function. So, we replace several custom "strtolower"
implementations with this new library function.
Another
2019 Sep 13
2
if statement with true value that contains a colon
How can I use an IF statement with a true value being a variable that
has a colon in it? The colon in the true value variable is being taken
as the delimiter for the false value.
The only solution I came up with was some hackery to use STRREPLACE to
replace the : with a % before the IF statement and then use STRREPLACE
again after to change the % back to a :.
i.e.: