Worm78 Posted May 22, 2008 Report Share Posted May 22, 2008 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 Quote Link to comment Share on other sites More sharing options...
Vodia PBX Posted May 22, 2008 Report Share Posted May 22, 2008 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. Quote Link to comment Share on other sites More sharing options...
Worm78 Posted May 23, 2008 Author Report Share Posted May 23, 2008 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 Quote Link to comment Share on other sites More sharing options...
shopcomputer Posted May 23, 2008 Report Share Posted May 23, 2008 You can leave the route to field empty on the trunk, just add an alias on the extensions, with the DID that needs to be routed to that extension. Quote Link to comment Share on other sites More sharing options...
Vodia PBX Posted May 23, 2008 Report Share Posted May 23, 2008 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 Quote Link to comment Share on other sites More sharing options...
Worm78 Posted May 27, 2008 Author Report Share Posted May 27, 2008 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. Quote Link to comment Share on other sites More sharing options...
Vodia PBX Posted May 27, 2008 Report Share Posted May 27, 2008 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 Quote Link to comment Share on other sites More sharing options...
Worm78 Posted May 27, 2008 Author Report Share Posted May 27, 2008 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? Quote Link to comment Share on other sites More sharing options...
Vodia PBX Posted May 27, 2008 Report Share Posted May 27, 2008 Can you give us the INVITE packet that should be routed to 310? Quote Link to comment Share on other sites More sharing options...
Worm78 Posted May 27, 2008 Author Report Share Posted May 27, 2008 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 Quote Link to comment Share on other sites More sharing options...
Worm78 Posted May 27, 2008 Author Report Share Posted May 27, 2008 hhh Quote Link to comment Share on other sites More sharing options...
Vodia PBX Posted May 27, 2008 Report Share Posted May 27, 2008 Sure, how can I obtain it? Go to admin mode, settings/logging and turn SIP "other" packets on. Make sure that the log level is at least 7. Quote Link to comment Share on other sites More sharing options...
Worm78 Posted May 27, 2008 Author Report Share Posted May 27, 2008 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 Quote Link to comment Share on other sites More sharing options...
Vodia PBX Posted May 27, 2008 Report Share Posted May 27, 2008 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 Whow! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.