Hello, Dear Asterisk community !
Please help to figure out with my situation.
What I am doing:
I have a loop dial plan workaround for 3rd party application. A background application (daemon) dials trhough “AMI originate” command something like this “91626825XXXX” and connects other side to the 8368 extension which runs an AGI application, this call is being processed by the following dialplan:
[code]extensions.conf:
[default]
exten => 8368,1,AGI(application.agi)
exten => 8368,2,Hangup
exten => _91626825!,1,Dial(IAX2/IAXloop/${EXTEN:2},o)
exten => _91626825!,n,Hangup
exten => _626825!,1,Answer
exten => _626825!,n,Playback(sip-silence)
exten => _626825!,n,Wait(86400)
exten => _626825!,n,Hangup
iax.conf:
register => IAXloop:test@127.0.0.1:40569 ; (this port is provided by ip_relay - it points to a standard IAX2 port locally)
[IAXloop]
accountcode=IAXloop
secret=test
type=friend
requirecalltoken=no
context=default
auth=plaintext
host=dynamic
permit=0.0.0.0/0.0.0.0
allow=all
qualify=yes
[/code]
The problem:
The problem is when I use Asterisk 1.2.* - the AGI application recieves AGI variables and channel is equal to “IAX2/IAXloop-7383” (for example), but when I use Asterisk 1.4.44 - the channel is “Local/9162682520003@default-add1,1”. The thing is that I need to have non Local here!
The question:
I understand that it is a change in the Asterisk source code for some reason, and the best way to dig into the code and find it, but probably someone knows how to configure it (if it is possible) or disable this behaviour by any chance???
Thank you!