Trunk IAX sequential

I checked and tryed
I find the parameter “t” o “T” but dont work

You’re going to need to be more specific and provide console log as well as current configuration.

This are the files

queues.conf

member => IAX2/host01/1001
member => IAX2/host03/1003
member => IAX2/host10/1010
member => IAX2/host11/1011

extensions.conf

[tohost01]

exten => _39.,1,Queue(tohost01)

exten => 1001,1,Dial(IAX2/gateway:XXXXX@192.168.1.210),${EXTEN},t
exten => 1003,1,Dial(IAX2/gateway:XXXXX@192.168.1.100),${EXTEN},t
exten => 1010,1,Dial(IAX2/gateway:XXXXX@192.168.1.220),${EXTEN},t
exten => 1011,1,Dial(IAX2/gateway:XXXXX@192.168.1.230),${EXTEN},t

The dial arguments and strings are incorrect, the correct string would be:

exten => 1011,1,Dial(IAX2/gateway:XXXXX@192.168.1.230/${EXTEN},t)

Today not is a good day

File GATEWAY

queues.conf

member => IAX2/host01/1001
member => IAX2/host03/1003
member => IAX2/host10/1010
member => IAX2/host11/1011

extensions.conf

[tohost01]

exten => _39.,1,Queue(tohost01)

exten => 1001,1,Dial(IAX2/gateway:XXXXX@192.168.1.210/${EXTEN},t)
exten => 1003,1,Dial(IAX2/gateway:XXXXX@192.168.1.100/${EXTEN},t)
exten => 1010,1,Dial(IAX2/gateway:XXXXX@192.168.1.220/${EXTEN},t)
exten => 1011,1,Dial(IAX2/gateway:XXXXX@192.168.1.230/${EXTEN},t)

Dont work
Tommorrow is other day.
I hope tommorow to find the error

We need to see the console output on each system to understand what is going on and why it doesn’t work.

GATEWAY

== Using SIP RTP CoS mark 5
– Executing [39111111111@tohost01:1] Queue(“SIP/200-00000010”, “tohost01”) in new stack
– Music class requested but no musiconhold loaded.
– Call accepted by 192.168.1.210 (format gsm)
– IAX2/host01-21765 answered SIP/200-00000010
– Hungup ‘IAX2/host01-21765’
== Spawn extension (tohost01, 39111111111, 1) exited non-zero on ‘SIP/200-00000010’

HOSY
– Accepting AUTHENTICATED call from 192.168.1.200:
– Executing [1001@tohost01:1] NoOp(“IAX2/host01-770”, “”) in new stack
– Executing [1001@tohost01:2] Playback(“IAX2/host01-770”, “one-moment-please”) in new stack
– <IAX2/host01-770> Playing ‘one-moment-please.gsm’ (language ‘en’)
– Auto fallthrough, channel ‘IAX2/host01-770’ status is ‘UNKNOWN’
– Hungup 'IAX2/host01-770’
HOST01*CLI>

If you see the GATEWAY dont passing the number 39111111111 to HOST

Why would the gateway be passing 39111111111 to HOST? As I said unless you explicitly put 39111111111 in as the extension for the member line in queues.conf it won’t get passed. You can’t have it dynamically put the extension in.

The number 39111111111 is the number calling, the number is dynamic
The GATEWAY passing to the HOST the number and the operator see who is calling
I must add the EXTEN in queues.conf ?

You can not dynamically add the dialed extension to a member in queues.conf, it has to be static.

1 Like

I dont have other solution?
I have only one HOST and is connect with lswitch to …

Why are you unable to do this with caller ID, as would be normally expected?

Hi david
Because in the HOST there is AGENT Bussines o secretary office thats need who know call

You could add a header that has the information you need and retrieve it on your Host.

GATEWAY
exten => 100,n,Set(IAXVAR(CALLERNUM)=${CALLERID(NUM})
exten => 100,n,Set(IAXVAR(DNID)=${CALLERID(dnid)})
exten => 100,n,Set(IAXVAR(RDNIS)=${CALLERID(rdnis)})
exten => 100,n,Dial(IAX2/gateway…

and on HOST:
exten => 200,n,Set(ORIGCALLERIDNUM=${IAXVAR(CALLERNUM)})
exten => 200,n,Set(ORIGDNID=${IAXVAR(DNID)})
exten => 200,n,Set(ORIGRDNIS=${IAXVAR(RDNIS)})

Dont work

File GATEWAY

queues.conf

member => IAX2/host01/1000
member => IAX2/host03/1000
member => IAX2/host10/1000
member => IAX2/host11/1000

extensions.conf

exten => _39.,1,Queue(tohost01)

exten => 1000,n,Set(IAXVAR(CALLERNUM)=${CALLERID(NUM})
exten => 1000,n,Set(IAXVAR(DNID)=${CALLERID(dnid)})
exten => 1000,n,Set(IAXVAR(RDNIS)=${CALLERID(rdnis)})
exten => 1000,1,Dial(IAX2/gateway01:XXXXX@192.168.1.210/${EXTEN},t)
exten => 1000,2,Dial(IAX2/gateway03:XXXXX@192.168.1.100/${EXTEN},t)
exten => 1000,3,Dial(IAX2/gateway10:XXXXX@192.168.1.220/${EXTEN},t)
exten => 1000,4,Dial(IAX2/gateway11:XXXXX@192.168.1.230/${EXTEN},t)

HOST in the CLI i dont have the number
– Executing [1000@tohost01:1] Playback(“IAX2/host01-4873”, “one-moment-please”) in new stack
– <IAX2/host01-4873> Playing ‘one-moment-please.gsm’ (language ‘en’)
– Auto fallthrough, channel ‘IAX2/host01-4873’ status is ‘UNKNOWN’
– Hungup ‘IAX2/host01-4873’

That won’t work as the ‘n’ priorities are coming before the 4 priority, the console would warn you about this on reload.

Even if it did load you would be dialing your 4 peers before setting the variables.

I don’t know if it’s a language problem or a lack of knowledge but I think you may want to hire a consultant for this task.

I have wrong when edit the file on post