ftocc

DID routing / __FROM_DID=s

kolkoz
Posts: 3
Member Since:
2008-08-24

Hi,

A french provider offered me 10 DIDs for free pointing to a single IAX trunk (.80 to .89)

free=cheap=great !!

I want now to perform DID routing but I am a little bit confused after looking at the CLI
Whatever the number I choose to dial from my mobile phone to reach the pbx I can see:

-- Executing [s@from-trunk:1] Set("IAX2/1106-15093", "__FROM_DID=s") in new stack

What is "__FROM_DID=s" ?
Why “s” and not a correct DID ?

Do you think the provider do not send the DID at all? Or could it be something wrong/missing in my conf?

iax.conf:
---
[general]
language=fr
#include iax_general_additional.conf
#include iax_general_custom.conf
#include iax_registrations_custom.conf
#include iax_registrations.conf
#include iax_custom.conf
#include iax_additional.conf
#include iax_custom_post.conf
---

iax_additional.conf:
---
[1106]
context=from-trunk
type=friend
secret=***pwd***

[ING]
host=sip3.ing-telecom.com
username=1106
secret=***pwd***
type=friend
---

iax_general_additional.conf:
---
bindport=4569
bindaddr=0.0.0.0
disallow=all
allow=ulaw
allow=alaw
allow=gsm
mailboxdetail=yes
tos=ef
---

iax_registrations.conf:
---
register=1106:***pwd***@sip3.ing-telecom.com
---

Any help will be appreciated!
Thx
Nicolas



jgleim
Posts: 98
Member Since:
2006-11-29
Check your inbound context name

Nicolas,

I would suggest you look at the name of the inbound context you are using. I have an IAX trunk working to a provider here in the US and we use the account name (capitalization counts) as the inbound context. It looks like you are using one of the DID numbers. If that is true, I'm not sure what that would do to the inbound routing...

Below is our current trunk settings:

[*** Our Username ***]
type=user
trunk=yes
transfer=no
disallow=all
context=from-trunk
auth=md5
allow=ulaw

[teliax_out]
username=*** Our Username ***
type=peer
trunk=yes
secret=****
qualify=yes
transfer=no
host=den.teliax.net
disallow=all
context=default
auth=md5
allow=ulaw

This is working with DID service from Teliax. You might try using it as the basis for your setup. If the 1106 is truly your DID number, you'll probably need your account username in place of that in the register string as well. All your other configs look fine.

Good luck!
Jason



kolkoz
Posts: 3
Member Since:
2008-08-24
"__FROM_DID=s" still there...

Hi Jason

Thank you for the answer, but actually 1106 is the username... a short one I agree :) but it is the username!
I tried to add some of your parameters (trunk=yes, transfer=no...) to my actual configuration to fit with yours but this did not change anything.

I will have to ask my provider I think...
If the problem was on my side, I will post their answer/solution here

Nicolas



percykwong
Posts: 753
Member Since:
2007-04-30
A SIP Debug of 2 of the DIDs

A SIP Debug of 2 of the DIDs inbound would be great.

--

-----------------------------------------------
Percy Kwong
www.swimminginthought.com
www.iphonebounties.com



TDF
Posts: 341
Member Since:
2006-12-19
Add the phone number to the

Add the phone number to the end of the register string

username:password@itsp.com/NUMBERHERE



SkykingOH
Posts: 3534
Member Since:
2007-12-17
Quote: A SIP Debug It's an
Quote:
A SIP Debug

It's an IAX trunk! IAX debug is not as useful as SIP. Basically only for authentication issues.

--

Scott

aka "Skyking"



kolkoz
Posts: 3
Member Since:
2008-08-24
Problem solved by the provider

Hi,

The service provider told me this morning they reconfigured their equipment to send DIDs and it is now working well!
The "s" is replaced by the DID

I am totally new to asterisk (4 days) and did not know about set debug commands, thanks for the tricks!

Nicolas



TDF
Posts: 341
Member Since:
2006-12-19
Seems Percy wasnt the only

Seems Percy wasnt the only one not thinking straight, my solution would have worked if it had had 10 registrations, not 10 did's on 1 trunk. Strangely that was the first thing that occurred to me on waking this morning. :/



Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.