Unsupported [Flow] Target endpoint for 102@3CX-MyComany can not be built!

Status
Not open for further replies.

b2bgroup

Free User
Joined
Aug 12, 2021
Messages
10
Reaction score
1
Hello dear gurus
im trying to connect asterisk to 3cx, and partially I got success. I know, this wide discussed topic, and I found many replies in forums that helped me
Right now, I can make call from 3cx client to Asterisk client, using 3cx bridge, I can hear, and get the name of who is calling from 3cx. This part is ok

But it is not working vice versa
on 3 cx i get lof like
Target endpoint for 102@3CX-HALAL can not be built!

on asterisk logs says


1142340[2021-10-18 16:00:21] VERBOSE[30010][C-000000fe] pbx.c: Executing [s@func-apply-sipheaders:5] While("SIP/3CX Bridge Outgoing-00000092", "0") in new stack
1142341[2021-10-18 16:00:21] VERBOSE[30010][C-000000fe] pbx.c: Executing [s@func-apply-sipheaders:14] Return("SIP/3CX Bridge Outgoing-00000092", "") in new stack
1142342[2021-10-18 16:00:21] VERBOSE[30010][C-000000fe] app_stack.c: Spawn extension (from-trunk, 102, 1) exited non-zero on 'SIP/3CX Bridge Outgoing-00000092'
1142343[2021-10-18 16:00:21] VERBOSE[30010][C-000000fe] app_stack.c: SIP/3CX Bridge Outgoing-00000092 Internal Gosub(func-apply-sipheaders,s,1(3)) complete GOSUB_RETVAL=
1142344[2021-10-18 16:00:21] VERBOSE[30010][C-000000fe] app_dial.c: Called SIP/3CX Bridge Outgoing/102@3CX-HALAL
1142345[2021-10-18 16:00:21] VERBOSE[30010][C-000000fe] app_dial.c: Everyone is busy/congested at this time (1:0/0/1)
1142346[2021-10-18 16:00:21] VERBOSE[30010][C-000000fe] pbx.c: Executing [s@macro-dialout-trunk:35] NoOp("PJSIP/2000-00000137", "Dial failed for some reason with DIALSTATUS = CHANUNAVAIL and HANGUPCAUSE = 1") in new stack
1142347[2021-10-18 16:00:21] VERBOSE[30010][C-000000fe] pbx.c: Executing [s@macro-dialout-trunk:36] GotoIf("PJSIP/2000-00000137", "0?continue,1:s-CHANUNAVAIL,1") in new stack
1142348[2021-10-18 16:00:21] VERBOSE[30010][C-000000fe] pbx_builtins.c: Goto (macro-dialout-trunk,s-CHANUNAVAIL,1)
1142349[2021-10-18 16:00:21] VERBOSE[30010][C-000000fe] pbx.c: Executing [s-CHANUNAVAIL@macro-dialout-trunk:1] Set("PJSIP/2000-00000137", "RC=1") in new stack
1142350[2021-10-18 16:00:21] VERBOSE[30010][C-000000fe] pbx.c: Executing [s-CHANUNAVAIL@macro-dialout-trunk:2] Goto("PJSIP/2000-00000137", "1,1") in new stack
1142351[2021-10-18 16:00:21] VERBOSE[30010][C-000000fe] pbx_builtins.c: Goto (macro-dialout-trunk,1,1)
1142352[2021-10-18 16:00:21] VERBOSE[30010][C-000000fe] pbx.c: Executing [1@macro-dialout-trunk:1] Goto("PJSIP/2000-00000137", "s-INVALIDNMBR,1") in new stack
1142353[2021-10-18 16:00:21] VERBOSE[30010][C-000000fe] pbx_builtins.c: Goto (macro-dialout-trunk,s-INVALIDNMBR,1)
1142354[2021-10-18 16:00:21] VERBOSE[30010][C-000000fe] pbx.c: Executing [s-INVALIDNMBR@macro-dialout-trunk:1] NoOp("PJSIP/2000-00000137", "Dial failed due to trunk reporting Address Incomplete - giving up") in new stack
1142355[2021-10-18 16:00:21] VERBOSE[30010][C-000000fe] pbx.c: Executing [s-INVALIDNMBR@macro-dialout-trunk:2] Progress("PJSIP/2000-00000137", "") in new stack
1142356[2021-10-18 16:00:21] VERBOSE[30010][C-000000fe] pbx.c: Executing [s-INVALIDNMBR@macro-dialout-trunk:3] Playback("PJSIP/2000-00000137", "ss-noservice,noanswer") in new stack
1142357[2021-10-18 16:00:21] VERBOSE[30010][C-000000fe] file.c: <PJSIP/2000-00000137> Playing 'ss-noservice.g722' (language 'en')
1142358[2021-10-18 16:00:26] VERBOSE[30010][C-000000fe] pbx.c: Executing [s-INVALIDNMBR@macro-dialout-trunk:4] Busy("PJSIP/2000-00000137", "20") in new stack
1142359[2021-10-18 16:00:26] VERBOSE[30010][C-000000fe] app_macro.c: Spawn extension (macro-dialout-trunk, s-INVALIDNMBR, 4) exited non-zero on 'PJSIP/2000-00000137' in macro 'dialout-trunk'
1142360[2021-10-18 16:00:26] VERBOSE[30010][C-000000fe] pbx.c: Spawn extension (from-internal, 102, 11) exited non-zero on 'PJSIP/2000-00000137'
1142361[2021-10-18 16:00:26] VERBOSE[30010][C-000000fe] pbx.c: Executing [h@from-internal:1] Macro("PJSIP/2000-00000137", "hangupcall") in new stack
1142362[2021-10-18 16:00:26] VERBOSE[30010][C-000000fe] pbx.c: Executing [s@macro-hangupcall:1] GotoIf("PJSIP/2000-00000137", "1?theend") in new stack
1142363[2021-10-18 16:00:26] VERBOSE[30010][C-000000fe] pbx_builtins.c: Goto (macro-hangupcall,s,3)
1142364[2021-10-18 16:00:26] VERBOSE[30010][C-000000fe] pbx.c: Executing [s@macro-hangupcall:3] ExecIf("PJSIP/2000-00000137", "0?Set(CDR(recordingfile)=)") in new stack
1142365[2021-10-18 16:00:26] VERBOSE[30010][C-000000fe] pbx.c: Executing [s@macro-hangupcall:4] NoOp("PJSIP/2000-00000137", " montior file= ") in new stack
1142366[2021-10-18 16:00:26] VERBOSE[30010][C-000000fe] pbx.c: Executing [s@macro-hangupcall:5] GotoIf("PJSIP/2000-00000137", "1?skipagi") in new stack
1142367[2021-10-18 16:00:26] VERBOSE[30010][C-000000fe] pbx_builtins.c: Goto (macro-hangupcall,s,7)
1142368[2021-10-18 16:00:26] VERBOSE[30010][C-000000fe] pbx.c: Executing [s@macro-hangupcall:7] Hangup("PJSIP/2000-00000137", "") in new stack
1142369[2021-10-18 16:00:26] VERBOSE[30010][C-000000fe] app_macro.c: Spawn extension (macro-hangupcall, s, 7) exited non-zero on 'PJSIP/2000-00000137' in macro 'hangupcall'
1142370[2021-10-18 16:00:26] VERBOSE[30010][C-000000fe] pbx.c: Spawn extension (from-internal, h, 1) exited non-zero on 'PJSIP/2000-00000137'
1142371[2021-10-18 16:00:26] VERBOSE[30010][C-000000fe] app_stack.c: PJSIP/2000-00000137 Internal Gosub(crm-hangup,s,1) start
1142372[2021-10-18 16:00:26] VERBOSE[30010][C-000000fe] pbx.c: Executing [s@crm-hangup:1] NoOp("PJSIP/2000-00000137", "Sending Hangup to CRM") in new stack
1142373[2021-10-18 16:00:26] VERBOSE[30010][C-000000fe] pbx.c: Executing [s@crm-hangup:2] NoOp("PJSIP/2000-00000137", "HANGUP CAUSE: 17") in new stack
1142374[2021-10-18 16:00:26] VERBOSE[30010][C-000000fe] pbx.c: Executing [s@crm-hangup:3] ExecIf("PJSIP/2000-00000137", "0?Set(__CRM_VOICEMAIL=)") in new stack
1142375[2021-10-18 16:00:26] VERBOSE[30010][C-000000fe] pbx.c: Executing [s@crm-hangup:4] NoOp("PJSIP/2000-00000137", "MASTER CHANNEL: 1634558421.457 = 1634558421.457") in new stack
1142376[2021-10-18 16:00:26] VERBOSE[30010][C-000000fe] pbx.c: Executing [s@crm-hangup:5] GotoIf("PJSIP/2000-00000137", "0?return") in new stack
1142377[2021-10-18 16:00:26] VERBOSE[30010][C-000000fe] pbx.c: Executing [s@crm-hangup:6] Set("PJSIP/2000-00000137", "__CRM_HANGUP=1") in new stack
1142378[2021-10-18 16:00:26] VERBOSE[30010][C-000000fe] pbx.c: Executing [s@crm-hangup:7] AGI("PJSIP/2000-00000137", "agi://127.0.0.1/sangomacrm.agi") in new stack
1142379[2021-10-18 16:00:26] VERBOSE[30010][C-000000fe] res_agi.c: <PJSIP/2000-00000137>AGI Script agi://127.0.0.1/sangomacrm.agi completed, returning 0
1142380[2021-10-18 16:00:26] VERBOSE[30010][C-000000fe] pbx.c: Executing [s@crm-hangup:8] Return("PJSIP/2000-00000137", "") in new stack
1142381[2021-10-18 16:00:26] VERBOSE[30010][C-000000fe] app_stack.c: Spawn extension (from-internal, h, 1) exited non-zero on 'PJSIP/2000-00000137'
1142382[2021-10-18 16:00:26] VERBOSE[30
010][C-000000fe] app_stack.c: PJSIP/2000-00000137 Internal Gosub(crm-hangup,s,1) complete GOSUB_RETVAL=


I have also captured the traffic while Im tried to call from asterisk to 3cx.
What can be a reason can someone help me please
 
Last edited by a moderator:
Hello dear gurus
im trying to connect asterisk to 3cx, and partially I got success. I know, this wide discussed topic, and I found many replies in forums that helped me
Right now, I can make call from 3cx client to Asterisk client, using 3cx bridge, I can hear, and get the name of who is calling from 3cx. This part is ok

But it is not working vice versa
on 3 cx i get lof like
Target endpoint for 102@3CX-HALAL can not be built!

on asterisk logs says


1142340[2021-10-18 16:00:21] VERBOSE[30010][C-000000fe] pbx.c: Executing [s@func-apply-sipheaders:5] While("SIP/3CX Bridge Outgoing-00000092", "0") in new stack



I have also captured the traffic while Im tried to call from asterisk to 3cx.
What can be a reason can someone help me please
Have you used a SIP trunk or a Bridge in 3CX? SIP trunk doesn't work because you cannot set it to grab any DID and call it (meaning, it cannot call a user extension directly.)

Using a bridge it can, but then you have less settings and Caller ID and stuff like that gets messed up.
 
Yes
I used a bridge. Pic is attached
I had to create a SIP trunk on asterisk

here is sip trunk info

username=10002
type=friend&peer
trustrpid=yes
sendrpid=yes
secret=**********
qualify=yes
nat=yes
keepalive=45
insecure=port,invite
host=192.168.24.252
port=5060
fromuser=10002
fromdomain=192.168.24.252
dtmfmode=rfc2833
disallow=all
directmedia=no
context=from-trunk
canreinvite=yes
allow=ulaw&alaw


10002:************@192.168.24.252/10002
 

Attachments

  • bridge.jpg
    bridge.jpg
    6.5 KB · Views: 2
Problem resolved
Bur one more thing
When I'm callink from asterisk PBX to 3cx, 3cx phone gets on dispay birdge's virtual nuber

How do I send caller name from asterisk to 3cx?
 
Problem resolved
Bur one more thing
When I'm callink from asterisk PBX to 3cx, 3cx phone gets on dispay birdge's virtual nuber

How do I send caller name from asterisk to 3cx?
We never got it to work. That's the main issue with bridging 3CX and other systems.

Try playing with parameters. The 3CX bridge has some options. Try using those.
 
any manual I can read?
 
and is that because of 3cx or because of asterisk?
I think Asterisk dont send caller name inspite of sendrpid=yes
or 3cx does not accept asterisk's caller name ?
 
and is that because of 3cx or because of asterisk?
I think Asterisk dont send caller name inspite of sendrpid=yes
or 3cx does not accept asterisk's caller name ?
3CX looks for specific headers on bridged calls, probably the From header or PAI. RPID will not work.
 
You might want to make use of Wireshark to see exactly what is being sent, If correct caller ID is not being sent, then it may be an Asterisk issue, if it is being sent, then there may be something that can be changed in 3CX.
 
  • Like
Reactions: Evolute IT
Keep in mind that 3CX bridges are designed for bridging 2 3CX systems together and not bridging 3CX with other systems. Although it might work there might be some things that will not.
 
  • Like
Reactions: Evolute IT
Keep in mind that 3CX bridges are designed for bridging 2 3CX systems together and not bridging 3CX with other systems. Although it might work there might be some things that will not.


I checked with Wiresshark.... I wasn't able to find My Extension (2000)
dump is attached
 
Last edited by a moderator:
Remote Party ID is 10002. This is 3cx bridge Virtual number
 
Please do not attach captures in the public forum as they contain sensitive info you do not want to share with everybody.
 
  • Like
Reactions: Evolute IT
Status
Not open for further replies.

Latest Posts

Forum statistics

Threads
111,990
Messages
590,161
Members
164,926
Latest member
tohoken1