SearchSearch  Log in to check your private messagesLog in to check your private messages  recent posts Recent Posts
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
richardysOffline



Joined: Aug 17, 2005
Posts: 8

Status: Offline
Posted: Sep 15, 2005 - 11:54 AM Reply with quote Back to top
ianplain :
Its a shame that there is no standard of how calls are presented , It all down to knowing the querks of each supplier.

True. I'm just pleased its all sorted now.
View user's profile Send private message
eksiOffline



Joined: Mar 03, 2006
Posts: 3

Status: Offline
Posted: Mar 03, 2006 - 04:30 PM Reply with quote Back to top
I am new to Asterisk and this problem describes exactly what I am experiencing except my problem is it is SIP and that is all that my current provider offers. Is there a SIP solution to this?

We have multiple (virtual phone numbers) VoIP over SIP. Currently the calls do come through, but are all grouped together. We need to identify which number the user dialed in order for us to handle the call correctly.

We have checked with our providers and they are sending the DNID information. Here is a sample of the header that we receive:

Code:
<-- SIP read from 204.xxx.xxx.xxx:5060:
INVITE sip:s@xxx.xxx.xxx.xxx SIP/2.0
v: SIP/2.0/UDP 204.xxx.xxxxxx:5060;branch=z9hG4bK-0de0e327814bb58b0ccf4b981e511ba7
f: <sip:1905xxxxxxx@xxx.xxx.xxx.xxx>;tag=4771DE00-D34
t: <sip:1905xxxyyyy@ss.callcentric.com>
i: 171655-3350352051-451874 [!at] xxx.xxx.xxx.xxx (replace the [!at] with a @)
CSeq: 1 INVITE
Max-Forwards: 10


How can we access the to "t:" value through Asterisk or AGI? Important note: I'm new to Asterisk so please be gentle.

Thanks for all help in advance,
Paul
View user's profile Send private message
richardysOffline



Joined: Aug 17, 2005
Posts: 8

Status: Offline
Posted: Mar 03, 2006 - 05:34 PM Reply with quote Back to top
We used the sip accounts to determine what number they had called.
Quote:
exten => SIP_USERNAME_ONE,1,Goto(mainmenu-one,s,1)
exten => SIP_USERNAME_TWO,1,Goto(mainmenu-two,s,1)
View user's profile Send private message
eksiOffline



Joined: Mar 03, 2006
Posts: 3

Status: Offline
Posted: Mar 03, 2006 - 05:58 PM Reply with quote Back to top
I agree that using the sip accounts to identify the number that was called will/does work. But, since the information that I see being received does contain the dialed number in the "t:" field in the header, how is that accessible? I know that the sip account is a work around, but since the data is present there shouldn't have to be a hack for it.

Does Asterisk simply ignore this data or am I missing something very simple?

Thanks,
Paul
View user's profile Send private message
eksiOffline



Joined: Mar 03, 2006
Posts: 3

Status: Offline
Posted: Mar 04, 2006 - 04:10 AM Reply with quote Back to top
I found a solution after a many days of searching. I have to give the credit to the user on this site - sorry for violating any link references for this forum but I need to place credit where it is due.

http://forums.whirlpool.net.au/forum-replies-archive.cfm/464741.html

The solution is with the SIP_HEADER function and it does give me the DNIS that I was looking for and saw in the header.

Thanks for all your help and hopefully it will be handy for others,
- Paul
View user's profile Send private message


View previous topic Printable version Log in to check your private messages View next topic
Goto page Previous  1, 2

Post new topic   Reply to topic
Forum Rules and Guidelines | About VoIP User | Privacy Policy


All logos and trademarks in this site are property of their respective owner.
Comments and posts are property of the poster, all the rest (c) 2003-2008 VoIP User Limited.

VoIP User Limited is incorporated in England and Wales under Company Number 6694577.

No part of this site may be reproduced without our prior consent.