Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SIP Trunking Routing

Status
Not open for further replies.

Bibbyboy

Programmer
Jan 26, 2009
70
US
I have a customer who has SIP trunking at one location, and they have another IP Office at another location that just has 4 analog lines. Both IP Offices' are 406 on 4.2 software. Because the phone company at the phone system with the analog lines would not release the numbers to the carrier they are doing SIP trunking with, they could not port those numbers over to the SIP trunk, therefore they had to come in as analog lines. However, I want outgoing calls from that phones system to go through the other phone system that has the SIP trunking, I figured the way I would do this is to make the line group ID on the ARS table the same as the one on the other phone system (even though it wasn't on the dropdown) but all I got was a waiting-for-line, what can I do to make this work?
 
I assume you have SCN/IP link between systems. In the system with the analogue trunks point outgoing calls to the Line group ID of the link to the other system, the other system will then match whatever is sent down that link against it's own shortcodes, so don't forget to send the 9 if that's what that site expects.

ACS - IP Office Implement

"I'm just off to Hartlepool to buy some exploding trousers
 
amriddle01...I think I know what your saying, however the line group ID for the shortcodes on the phone system with the SIP trunking are 0, and the line group ID for outgoing calls is 16, so how would the phone calls know where to go once they reach the other phone system?
 
Site B (NO SIP);

9N
Dial
9N
Line ID SCN


Site A (SIP);

Leave it as it is.

So i assume you have a shortcode that starts with a 9

9N;
Dial
N"@xxx.xxx.xxx.xxx
16

Avaya_Red.gif

___________________________________________
It works! Now if only I could remember what I did...
___________________________________________
 
You're welcome, let us know if it worked.

Avaya_Red.gif

___________________________________________
It works! Now if only I could remember what I did...
___________________________________________
 
I have a much simpler solution,
forward the main incoming line to new SIP lines that you purchase from the SIP provider, then you have your outgoing direct over SIP you can tell the line provider where to go and only keep one analog line for emergencies (always a good idea) and you can save yourself the whole hassle with back and forth programming.

Joe W.

FHandw., ACS

If you can't be good, be good at it!
 
bas1234, I did my shortcodes as you suggested, but the phones just get a waiting-for-line. I messed with a few things, I changed the shortcode to have the Line Group ID of the line connecting the systems, but just got an "incompatible" or "unattainable" (one of those messages) and then I changed the shortcode to have the Group ID of the ARS table, and then changed the ARS table to have the Group ID of the ID connecting the phone system, and then I got a "waiting-for-line" Im not sure what Im doing wrong.
 
Site B (NO SIP);

9N
Dial
9N
Line ID SCN

do you have the 9 in there as it will need that to dial out on the second site

Joe W.

FHandw., ACS

If you can't be good, be good at it!
 
Yes I did it with just the N and then tried it with the 9N
 
Check if it goes to ARS first

You need to be sure that there is not another 9N shortcode


RTFM.gif



ACS - Implement IP Office
ACA - Implement IP Telephony -- ACA - Design IP Telephony
ACA - Voice Services Management
______________
Women and cats can do as they please and men and dogs should relax and get used to the idea!
 
Your right I had something else in there, I took it out, and now I can hit 9 and then the number, but then I get a "number busy
 
Use monitor and see what happens
Also open a monitor for the other site and see if it hits it

Monitor provides a storm of information but read between the lines and search for what you need


RTFM.gif



ACS - Implement IP Office
ACA - Implement IP Telephony -- ACA - Design IP Telephony
ACA - Voice Services Management
______________
Women and cats can do as they please and men and dogs should relax and get used to the idea!
 
Alright, I looked at monitor on the phone system that has the SIP Trunking and this is what I got:

IE CMIERespondingPartyNumber (230)(P:100 S:100 T:0 N:100 R:4) number=93792074
IE CMIEDeviceDetail (231) LOCALE=enu HW=8 VER=4 class=CMDeviceSIPTrunk type=0 number=16 channel=0 rx_gain=32 tx_gain=32 ep_callid=1381 ipaddr=70.43.124.10 apps=0
10246756mS CMARS: LINE ep Received: CMProceeding - child->state = CMCSOffering - ARS Call State = CMCSOverlapRecv
10246756mS CMARS: LINE IS NOW THE B END OF THE CALL - CMARSEndpoint::RequestEnd()
10246757mS CMARS: CMARSEndpoint::CallLost(cause=124) - Address: 0.1380.0 105 ARS for [9] - Call State: CMCSOverlapRecv
10246757mS CMCallEvt: 0.1380.0 -1 ARS for [9]: StateChange: END=X CMCSOverlapRecv->CMCSDelete
10246758mS CMCallEvt: 16.1381.0 105 SIPTrunk Endpoint: StateChange: END=B CMCSOffering->CMCSAccept
10246760mS CMLineTx: v=9
CMFacility
Line: type=IPLine 9 Call: lid=9 id=39 in=1
IE CMIEFastStartInfoData (6)
10246761mS CMLineTx: v=9
CMProceeding
Line: type=IPLine 9 Call: lid=9 id=39 in=1
IE CMIERespondingPartyNumber (230)(P:100 S:100 T:0 N:100 R:4) number=93792074
IE CMIEDeviceDetail (231) LOCALE=enu HW=8 VER=4 class=CMDeviceSIPTrunk type=0 number=16 channel=0 rx_gain=32 tx_gain=32 ep_callid=1381 ipaddr=70.43.124.10 apps=0
10246762mS CMCallEvt: 0.1380.0 -1 BaseEP: DELETE CMEndpoint fe92d8a8 TOTAL NOW=2 CALL_LIST=1
10246765mS H323Evt: v=0 stacknum=9 State, new=ICProceeding, old=OverlapRecv id=39
10246773mS SIP Rx: UDP 74.223.147.141:5060 -> 70.43.124.10:5060
SIP/2.0 480 Temporarily not available
Via: SIP/2.0/UDP 70.43.124.10:5060;branch=z9hG4bK6436c8478ab799d33d747380eef2e970;rport=5060
From: "8432085219" <sip:8432085219@74.223.147.141>;tag=81ac37422525d29c
To: <sip:3792074@74.223.147.141>;tag=gK098c0904
Call-ID: c3ab5c6ff114893b8f9f74b25dab876e@70.43.124.10
CSeq: 1998100915 INVITE
Content-Length: 0

10246778mS SIP Tx: UDP 70.43.124.10:5060 -> 74.223.147.141:5060
ACK sip:3792074@74.223.147.141 SIP/2.0
Via: SIP/2.0/UDP 70.43.124.10:5060;rport;branch=z9hG4bK6436c8478ab799d33d747380eef2e970
From: "8432085219" <sip:8432085219@74.223.147.141>;tag=81ac37422525d29c
To: <sip:3792074@74.223.147.141>;tag=gK098c0904
Call-ID: c3ab5c6ff114893b8f9f74b25dab876e@70.43.124.10
CSeq: 1998100915 ACK
Max-Forwards: 70
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, INFO
Content-Length: 0

10246779mS CMLineRx: v=0
CMReleaseComp
Line: type=IPLine 16 Call: lid=16 id=1381 in=0
IE CMIERespondingPartyNumber (230)(P:100 S:100 T:0 N:100 R:4) number=93792074

The 480 Temporarily Unavailable is the key error message I guess,
 
Is there a 9N/Dial/N/ARS in the shortcodes?
If not, try to add one.

Avaya_Red.gif

___________________________________________
It works! Now if only I could remember what I did...
___________________________________________
 
Yes there is a shortcode already for that. Whats throwing me off is the fact that monitor is showing the call rerouting to the other phone system and then heading out the sip trunk....from the point it hits the other phone system it should look like all the other calls on that phone system, why then would they call still not work.
 
remove the 9N/Dial/N/ARS in the shortcodes, is there still the ?/Dial/./ARS in it, if not add it, and put the 9N/Dial/N"@xxx.xxx.xxx.xxx"/LineID in the ARS

Avaya_Red.gif

___________________________________________
It works! Now if only I could remember what I did...
___________________________________________
 
bas1234, when you say remove the 9N/Dial/N/ARS in the shortcodes, I assume you mean the phone system with the SIP trunking, also when you say ?/dial/./ARS, do you actually mean ? is the shortcode and . should be the number?
 
I've forgot the ; in the 9N;/Dial/N"@xxx.xxx.xxx.xxx" of the ARS

Avaya_Red.gif

___________________________________________
It works! Now if only I could remember what I did...
___________________________________________
 
Yes that's what he means, ? means anything the system doesn't recognise as an extn, huntgroup or shortcode and the . means to add the number that the user dialled to match the shortcode.

ACS - IP Office Implement

"I'm just off to Hartlepool to buy some exploding trousers
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top