How To Handle Multiple Lines Call

Home » Asterisk Users » How To Handle Multiple Lines Call
Asterisk Users 2 Comments

Hi,

I am new to asterisk, I have set up the asterisk server and successfully I
could make the dialplan between 2 SIPs but when there are more than two sips calling each other, my dialplan seems doing the wrong routing to the sip. Do i need to config anything additionally to asterisk to handle this?

Example:
we have 6 sips
-sip 1 is calling to sip 2
-sip 3 is calling to sip 4
-sip 5 is calling to sip 6

Here is my configuration, exten => _.,1,Dial(SIP/${EXTEN})

I am waiting for your reply, Thank.

Thyda

2 thoughts on - How To Handle Multiple Lines Call

  • That looks about right, but it’s not quite enough information.

    Your sip.conf should have the SIP device descriptions in sections labelled [1]
    , [2] , [3] , [4] , [5] and [6] , since the bit between the square brackets is what gets matched against the SIP/____ bit in the Dial() statement.

  • Hi Thyda

    When you set “exten => _.,1,Dial(SIP/${EXTEN})” Asterisk assume “_.”, an match everything on your dialplan including special extensions as “i”, “h”, etc., these will cause problems onto your system. If you need to match one or more digits you can use _x and _x.
    _x it mean only one pattern digit form 0 to 9
    _x. any pattern digit from 0 to 9 and dot it mean remnant digits could be 2 or 3, 4 … etc., so what ever you dial on sip it will be valid.

    Mc GRATH Ricardo