Jump to content

One trunk with several numbers


Worm78
 Share

Recommended Posts

What is the best method to setup several lines on one trunk.

 

Scenario being Trunk has 3 phone numbers with on registration. I only see one place to route the trunk to. Is there an alias or addition you add to te trunk settings to specify where each number goes?

 

 

 

One lines goes to ext 301 which is an auto attendant

Second line goes to 302 for a fax

Third line goes direct to an Exec. I read through the incoming routing on the Wiki but I'm not following.

 

Thanks

Link to comment
Share on other sites

What is the best method to setup several lines on one trunk.

 

Scenario being Trunk has 3 phone numbers with on registration. I only see one place to route the trunk to. Is there an alias or addition you add to te trunk settings to specify where each number goes?

 

One lines goes to ext 301 which is an auto attendant

Second line goes to 302 for a fax

Third line goes direct to an Exec. I read through the incoming routing on the Wiki but I'm not following.

 

Maybe take a look at http://wiki.pbxnsip.com/index.php/Inbound_Calls_on_Trunk. Depending on your service provider, you probably find the destination in the To-header. In your case, maybe a pattern like "!([0-9]*)!\1!t!301" make sense.

Link to comment
Share on other sites

Maybe take a look at http://wiki.pbxnsip.com/index.php/Inbound_Calls_on_Trunk. Depending on your service provider, you probably find the destination in the To-header. In your case, maybe a pattern like "!([0-9]*)!\1!t!301" make sense.

 

I think I understand the patterns but lost on where this gets placed. Would it go on the trunks page in the extension field? If so does it sort in order and the use a back up at the end? 300 would be the auto attendant.

 

Example exact typing in field being

 

Extension: !1([8128675308]*)!\1!t!301 !1([8128675309]*)!\1!t!302 300

Link to comment
Share on other sites

I think I understand the patterns but lost on where this gets placed. Would it go on the trunks page in the extension field? If so does it sort in order and the use a back up at the end? 300 would be the auto attendant.

 

Example exact typing in field being

 

Extension: !1([8128675308]*)!\1!t!301 !1([8128675309]*)!\1!t!302 300

 

Those brackets are probably not right. Maybe you wanted:

 

Extension: !1(8128675308)!\1!t!301 !1(8128675309)!\1!t!302 300

Link to comment
Share on other sites

Those brackets are probably not right. Maybe you wanted:

 

Extension: !1(8128675308)!\1!t!301 !1(8128675309)!\1!t!302 300

 

 

I have this line in where I did have just 396. With only 396 in the field both phone numbers rolled to the auto attend. Im trying to add a direct line for the fax.

 

 

!1(3176440272)!\1!t!396 !1(3176440274)!\1!t!310

 

and this is what I get in the log.

 

 

[5] 2007/12/31 20:41:28: Trunk Teliax sends call to Consciencium

[5] 2007/12/31 20:41:28: Trunk call: Could not identify user

 

 

[5] 2007/12/31 20:59:37: Identify trunk (line match) 2

[5] 2007/12/31 20:59:37: Trunk Teliax sends call to Consciencium

[5] 2007/12/31 20:59:37: Trunk call: Could not identify user

[5] 2007/12/31 21:00:05: Dialplan Standard User: Match 99858299@192.168.1.79 to <sip:3179858299@nyc.teliax.net;user=phone> on trunk Teliax

[5] 2007/12/31 21:00:12: INVITE Response: Terminate 6ca9e8eb@pbx

[5] 2007/12/31 21:00:20: Identify trunk (line match) 2

[5] 2007/12/31 21:00:20: Trunk Teliax sends call to Consciencium

[5] 2007/12/31 21:00:20: Trunk call: Could not identify user

[3] 2007/12/31 21:03:30: Could not connect to 68.142.234.44:443

[1] 2007/12/31 21:03:30: Could not send via TCP:?;Gy�r�a���:U����%3�h���L ǧ�5l db

[5] 2007/12/31 21:04:04: INVITE Response: Terminate 95fe1964@pbx

[5] 2007/12/31 21:04:21: BYE Response: Terminate NWRiYTIwOTg3ZmY1NTlkNTJlM2E4MmEyZTBlY2YxZjU.

 

 

 

 

 

396 is the auto attend and 310 is my fax

 

 

 

Any ideas? This is a cs410 device if that matters. the info is entered under "Send call to extension:" under the trunk screen.

Link to comment
Share on other sites

Maybethe problem is that the first pattern already contains a default (396), so it would not try the 2nd one. So try:

 

!13176440274!310!t 396

 

 

With this they both go to 396.

 

5] 2007/12/31 19:05:19: Trunk Teliax sends call to 396

[5] 2007/12/31 19:06:05: Identify trunk (line match) 2

[5] 2007/12/31 19:06:05: Trunk Teliax sends call to 396

[5] 2007/12/31 19:06:22: Identify trunk (line match) 2

[5] 2007/12/31 19:06:22: Trunk Teliax sends call to 396

 

Any other thoughts? Ca I use alias to do the same task?

Link to comment
Share on other sites

Figured it out. Provider was not sending the 10 digit number in the caller id

 

To: <sip:Consciencium@192.168.1.90:5060;transport=udp;line=c81e728d>;tag=520db5f9ff

Call-ID: 26278635405878f077deb4145429fc53@64.74.188.23

 

 

Thanks for your help.

 

I still couldn't get the filter to work so I went with using an alias. Working well

Link to comment
Share on other sites

Go to admin mode, settings/logging and turn SIP "other" packets on. Make sure that the log level is at least 7.

 

 

Figured it out. Provider was not sending the 10 digit number in the caller id

 

To: <sip:Consciencium@192.168.1.90:5060;transport=udp;line=c81e728d>;tag=520db5f9ff

Call-ID: 26278635405878f077deb4145429fc53@64.74.188.23

 

 

Thanks for your help.

 

I still couldn't get the filter to work so I went with using an alias. Working well

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...