Transfer calls impossible.

Status
Not open for further replies.

pbxgeek

Active Member
Jan 19, 2021
254
100
43
38
One issue I saw right away is that you have a ring group with extension 102 and a destination 102 within that ring group. If 102 is an extension in your system, then you have a duplicate. Ring groups and extensions can not have the same extension number. It causes conflicts. I had to program my own code so the system checks for duplicates before saving new items.
 
  • Like
Reactions: Tobey

pbxgeek

Active Member
Jan 19, 2021
254
100
43
38
You should use ring groups, but ensure that you create unique extensions. For example, you could route extension 777100102 to ring group 500. In this case, ring group 500 would have extension 102 set as the destination, ringing for 10 seconds, and the timeout destination should be your trunk.
 
  • Like
Reactions: Tobey

pbxgeek

Active Member
Jan 19, 2021
254
100
43
38
Why are you modifying these settings manually? Use the GUI to create a number and route it to the ring group. It will build the dialplan for you automatically. Screenshot 2b looks good for the ring group setup.
 
  • Like
Reactions: Tobey

pbxgeek

Active Member
Jan 19, 2021
254
100
43
38
I've never tried this particular combination myself, but it's worth a try. As long as you can enter the trunk extension in the ring group, I don't see any issues. Let us know if it worked. It would be good for future readers.
 
  • Like
Reactions: Tobey

pbxgeek

Active Member
Jan 19, 2021
254
100
43
38
From what I can tell, your issue is the transfer directive. Once you use it, you leave this particular dialplan, and that's why your bridge doesn't execute.

Try switching it to the bridge statement. Your final XML file should look similar to this.


Code:
    <extension name="DID_Incoming_Call">
        <!-- Accept the call for a specific DID -->
        <condition field="destination_number" expression="^1234567890$">
            <!-- Answer the call -->
            <action application="answer"/>

            <!-- Stream a greeting file -->
            <action application="playback" data="/path/to/greeting.wav"/>

            <!-- Attempt to call extension 102 -->
            <action application="bridge" data="user/102@${domain_name}"/>

            <!-- If extension 102 does not answer, go to another bridge destination -->
            <action application="bridge" data="sofia/gateway/another_gateway/5023"/>
        </condition>
    </extension>
 
  • Like
Reactions: Tobey
Status
Not open for further replies.