Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OUTNUM is zeroed #31

Open
pnepus opened this issue Dec 7, 2016 · 0 comments
Open

OUTNUM is zeroed #31

pnepus opened this issue Dec 7, 2016 · 0 comments

Comments

@pnepus
Copy link

pnepus commented Dec 7, 2016

hello
i have problem if module freepbx-trunk-balancing is enabled (even if no Balanced Trunk created)
we use custom trunk like this

Custom Dial String:
Local/$OUTNUM$@from-trunk

after test call from 1129 to 89059341823
OUTNUM is zeroed

log:

[2016-12-07 15:32:58] VERBOSE[17487][C-0003c110] res_agi.c: > trunkbalance.php,2,89059341823: Running SQL Command SELECT * FROM trunks WHERE trunkid='2'
[2016-12-07 15:32:58] VERBOSE[17487][C-0003c110] res_agi.c: > trunkbalance.php,2,89059341823: Connected to MySQL database OK.
[2016-12-07 15:32:58] VERBOSE[17487][C-0003c110] res_agi.c: > trunkbalance.php,2,89059341823: Selected database OK.
[2016-12-07 15:32:58] VERBOSE[17487][C-0003c110] res_agi.c: -- trunkbalance.php,2,89059341823: No balancing rules are defined for this trunk
[2016-12-07 15:32:58] VERBOSE[17487][C-0003c110] res_agi.c: -- <SIP/1129-0005df27>AGI Script trunkbalance.php completed, returning 0
.
.

[2016-12-07 15:32:58] VERBOSE[17487][C-0003c110] pbx.c: -- Executing [s@macro-dialout-trunk:14] Set("SIP/1129-0005df27", "OUTNUM=") in new stack
[2016-12-07 15:32:58] VERBOSE[17487][C-0003c110] pbx.c: -- Executing [s@macro-dialout-trunk:15] Set("SIP/1129-0005df27", "custom=SIP/PROTEI-3110000-OUT") in new stack
.
.
[2016-12-07 15:32:58] VERBOSE[17487][C-0003c110] pbx.c: -- Executing [s@macro-dialout-trunk:22] GotoIf("SIP/1129-0005df27", "0?customtrunk") in new stack
[2016-12-07 15:32:58] VERBOSE[17487][C-0003c110] pbx.c: -- Executing [s@macro-dialout-trunk:23] Dial("SIP/1129-0005df27", "SIP/PROTEI-3110000-OUT/,300,Tt") in new stack
[2016-12-07 15:32:58] VERBOSE[17487][C-0003c110] app_dial.c: -- Called SIP/PROTEI-3110000-OUT/
[2016-12-07 15:32:58] VERBOSE[5751][C-0003c110] chan_sip.c: -- Got SIP response 484 "Address Incomplete" back from 10.125.183.4:5060
[2016-12-07 15:32:58] VERBOSE[17487][C-0003c110] app_dial.c: == Everyone is busy/congested at this time (1:0/0/1)
[2016-12-07 15:32:58] VERBOSE[17487][C-0003c110] pbx.c: -- Executing [s@macro-dialout-trunk:24] NoOp("SIP/1129-0005df27", "Dial failed for some reason with DIALSTATUS = CHANUNAVAIL and HANGUPCAUSE = 2

same call when module freepbx-trunk-balancing is disabled

.
.
[2016-12-07 15:49:26] VERBOSE[20759][C-0003c237] pbx.c: -- Executing [s@macro-dialout-trunk:12] GosubIf("Local/1129@from-trunk-00010813;1", "0?sub-flp-2,s,1()") in new stack
[2016-12-07 15:49:26] VERBOSE[20759][C-0003c237] pbx.c: -- Executing [s@macro-dialout-trunk:13] Set("Local/1129@from-trunk-00010813;1", "OUTNUM=89059341823") in new stack
[2016-12-07 15:49:26] VERBOSE[20759][C-0003c237] pbx.c: -- Executing [s@macro-dialout-trunk:14] Set("Local/1129@from-trunk-00010813;1", "custom=SIP/PROTEI-3110000-OUT") in new stack
.
.
[2016-12-07 15:49:26] VERBOSE[20759][C-0003c237] pbx.c: -- Executing [s@macro-dialout-trunk:21] GotoIf("Local/1129@from-trunk-00010813;1", "0?customtrunk") in new stack
[2016-12-07 15:49:26] VERBOSE[20759][C-0003c237] pbx.c: -- Executing [s@macro-dialout-trunk:22] Dial("Local/1129@from-trunk-00010813;1", "SIP/PROTEI-3110000-OUT/89059341823,300,Tt") in new stack
[2016-12-07 15:49:26] VERBOSE[20759][C-0003c237] netsock2.c: == Using SIP RTP TOS bits 184
[2016-12-07 15:49:26] VERBOSE[20759][C-0003c237] netsock2.c: == Using SIP RTP CoS mark 5
[2016-12-07 15:49:26] VERBOSE[20759][C-0003c237] app_dial.c: -- Called SIP/PROTEI-3110000-OUT/89059341823

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant