IAX2 passing back and forth variables

Report
Question

Hi all, I have two asterisk servers A and B. And I would like from A, dial to B passing some IAX variables. Then B handles the calls, setup some other variables that become available
to A which can continue. So far, I have used IAXVAR function. It works when sending call from A to B But variables setup on B are not available on A. Any idea how I can do it ? Here are my dialplans. +++++++++++ SERVER A +++++++++++ [contextA] exten => s,1,Set(IAXVAR(TESTVAR1)=abcd) exten => s,n,Dial(IAX2/serverb/s,30,g) exten => s,n,Noop( The out variable is : ${IAXVAR(TESTVAR2)} )…

Asterisk Users 3.3 years ago 4 Answers

SET SIP_CODEC and Video issues

Report
Question


Greetings List.
I Have a small test server and i'm facing a small issue.
i have setup two SIP PEERS and they are able to do Video calls.
now I'm testing SET SIP_CODEC in a dial plan and when ever i'm setting the codec .. the inbound (=first) leg stops receiving or sending video and SIP SHOW CHANNELS shows only the Codec i set in the dialplan.
is it possible to avoid this problem? Asterisk version
1.8.11.0 SIP.CONF
======= [TK1000]
type=friend
secret=0jCiOdT81P
videosupport=yes
qualify=yes
host=dynamic
dtmfmode=rfc2833

Asterisk Users 3.3 years ago 2 Answers

Realtime peers and trunks coming from the same IP

Report
Question

I use an SBC to protect my pool of asterisk servers and as trunking
endpoint with SIP Telcos. Now I'm trying to implement SIP phone
registration to be delegated through the SBC, as a proxy. It doesn't work. It just works when I don't use realtime peers at the
asterisk servers. Using realtime SIP peers, since there is one SIP phone
that gets his registration delegated through the SBC, any inbound call that
tries to reach any asterisk server, coming from any SIP Telco trunk ended
at my SBC, gets refused in asterisk. As…

Asterisk Users 3.3 years ago 3 Answers

Slow AMI Originate

Report
Question


Hello, We use AMI to originate calls. Sometimes, lately every morning, the AMI Originate process operates extremely slowly. I cannot see the calls in "core show channels verbose", I don't know where they are, what state they are in, after 2-3 minutes the calls go through one after the other. As mentioned, it usually happens in the morning as soon as people start their workday, where there are a lot of logins and calls being made, but no where close to a peak in terms of simultaneous channels, etc. In some cases restarting asterisk, in others just taking…

Asterisk Users 3.3 years ago 1 Answer

Extensions routing

Report
Question

Greetings! I've been playing around with "clustering" some
Asterisk servers for sake of fail-over and load balancing with DNS
round-robin, and came to one problem. If I have, say, 2 servers, and
clients register either on 1 or 2, how can I route extensions between
them? I mean, if today user with extension 101 is registered on server1,
and tomorrow he will register with server2 - how would any of servers
know where to route it? As some examples, if I have only 2 servers,
things are not so bad. I can use…

Asterisk Users 3.3 years ago 3 Answers