<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">I have setup an ARI application the same way the "getting started" documentation states. I'm using the swagger UI to do my testing. <br class=""><br class="">Using swagger and ARI I can setup a bridge. I can create channels to either internal SIP extensions or through external SIP trunks to a real phone number. Then I can add the channels to the bridge (mixing type) and the channels are able to speak to each other. <br class=""><br class="">The problem is that if I only use external SIP channels then when the second channel is added to the bridge, both lines are hung up. I've done this using my home phone and my cell phone. <br class=""><br class="">If I have an internal SIP extension connected to the bridge then everything works. I've tried one extension and one or more external phone numbers and it works fine. <br class=""><br class="">To be a bit more clear on what exactly I'm doing...<br class=""><br class="">In the "create a new channel (originate)" UI on Swagger I use an endpoint of SIP/101 for what I call the "internal channel." This exists in the "from-internal" context but I do not specify it here as it does not appear to be needed. I also set the app (name) and timeout and hit "Try it out!". All works fine. Extension 101's phone rings. <br class=""><br class="">I then do the same for the external channels except the only difference is the endpoint syntax. In this case I use SIP/[phone number]@from-trunk. "from-trunk" is the context I have setup for my sip-trunk. I do this once (or twice to a second phone number) and the phone rings and I pick it up. <br class=""><br class="">Then I use the id's that were generated from the create channel function and use that to add to my bridge that I've already created. This all works fine and the 3 channels are able to talk to each other. <br class=""><br class="">The problem arises if I do not include the SIP/101 channel. Just the SIP/[phone number]@from-trunk. If I only use this type of endpoint then when I add them both to the bridge, the lines disconnect. <br class=""><br class="">I’ve posted this over on <a href="http://community.asterisk.org" class="">community.asterisk.org</a> as well and my log files don’t seem to be pointing to anything obvious. But here is one of the log files. This is the log of when the second channel is added. The logs don’t immediately show anything when the lines are actually dropped. I kept it running for a bit more in case it shows something. <br class=""><br class="">Log file is at <font color="#4787ff" class=""><u class=""><a href="http://pasted.co/3050a39e" class="">http://pasted.co/3050a39e</a> </u></font>and the password is asteriskhelp99<br class=""><br class="">Here are my current SIP Peer settings for my trunk. <div class=""><br class=""></div><div class="">[101]<br class="">deny=0.0.0.0/0.0.0.0<br class="">secret= XXXXXXX<br class="">dtmfmode=rfc2833<br class="">canreinvite=no<br class="">context=from-internal<br class="">host=dynamic<br class="">trustrpid=yes<br class="">mediaencryption=no<br class="">sendrpid=pai<br class="">type=friend<br class="">nat=force_rport,comedia<br class="">port=5060<br class="">qualify=yes<br class="">qualifyfreq=60<br class="">transport=tcp,udp,tls<br class="">avpf=no<br class="">force_avp=no<br class="">icesupport=no<br class="">encryption=no<br class="">callgroup=<br class="">pickupgroup=<br class="">dial=SIP/101<br class="">mailbox=101@default<br class="">permit=0.0.0.0/0.0.0.0<br class="">callerid=Test User <101><br class="">callcounter=yes<br class="">faxdetect=no<br class="">cc_monitor_policy=generic</div><div class=""><br class=""></div><div class="">[trunk403]<br class="">disallow=all<br class="">host=XXXXXXX<br class="">defaultuser= XXXXXXX<br class="">secret= XXXXXXX<br class="">type=friend<br class="">allow=ulaw<br class="">qualify=yes<br class="">insecure=invite<br class="">directmedia=no<br class="">context=from-trunk-sip-trunk403<br class=""><br class="">[trunk587]<br class="">disallow=all<br class="">host= XXXXXXX<br class="">defaultuser= XXXXXXX<br class="">secret= XXXXXXX<br class="">type=friend<br class="">allow=ulaw<br class="">qualify=yes<br class="">insecure=invite<br class="">directmedia=no<br class="">context=from-trunk-sip-trunk587<br class=""><br class="">[from-trunk]<br class="">disallow=all<br class="">defaultuser= XXXXXXX<br class="">secret= XXXXXXX<br class="">type=friend<br class="">allow=ulaw<br class="">host= XXXXXXX<br class="">canreinvite=nonat<br class="">qualify=yes<br class="">insecure=invite<br class="">context=from-trunk-sip-trunk403<br class=""><br class="">Of note is that the [from-trunk] context has the defaultuser set as the same as the trunk403 default user. Not sure this is a factor at all. However trunk587 is not used because trunk403 has 2 channels so you won’t see it in the log. So this may not be a factor at all.<br class=""><br class="">Any ideas? Very much appreciate any insight here. I’ve been struggling with this for awhile. Figure it has to be some sort of config I’ve messed up. <br class=""><br class="">Regards,<br class=""><br class="">Peter</div></body></html>