SOLVED Dial out on an alternate port not working

Status
Not open for further replies.

magic.coast.user

New Member
Jan 18, 2022
5
0
1
59
I need to dynamically dial end points that may be on random SIP ports ( not 5060 ).

I have tried adding the port to the dial string like this: user@<ip address>:5070 but it connects and hangs up. The server log says:

BYE due to: Reason: SIP;cause=500;text="Internal Error"

Anyone have any ideas about how I can specify an alternate port in the dial plan?
 

magic.coast.user

New Member
Jan 18, 2022
5
0
1
59
That's what I did, but I can see in the logs that it mangles the address like this:

${caller_destination}(xx.xxx.xxx.1515070) -- see how it removes the colon? this is supposed to be ....151:5070
 

magic.coast.user

New Member
Jan 18, 2022
5
0
1
59
[SOLVED] strange thing.

Had to read the incoming destination number in a lua script, parse it into IP:port and then transfer it back into internal.
Once it comes back into internal, the destination_number is correct, so I can then bridge it out to the correct user@${destination_number} which contains the :port.
 
Status
Not open for further replies.