Topic: Diversion header on the trunk [Comments: 14]
diffen
Tue, 06/01/2010 - 05:14 | Diversion header on the trunk
Hello
From: 20000
To: 10000
Follow me to: 30000
If i recive a number from 20000 and using follow me to number 30000 i get 10000 in the display of device 30000. Thats nice, but if i check " Use original caller's Caller ID when forwarding" i get temporary unavalible fron the operator.
I need to add a diversion header in the trunk options. I belive it should look something like this: Diversion:b-number;reason=unconditional
My question is whats the variable for b-number that i want to add in the diversion header?





Tue, 06/01/2010 - 13:13 | you have to check with your
you have to check with your provider. This is one of those damn no-2-switches do it the same goddamn way problems.
some broadsoft switches want a P-Asserted-Identify, some want a diversion header..
some Sonus switches are perefectly OK receiving Remote-Party-ID info while others are not.
as of now the ONLY data that is automatically part of the sip stack in asterisk is Remote-Party-ID. Its the only headers that will actually relay.
I have no idea if your provider wants straight 10 digits, 11 digits or E.164 (+15025551212)
Erik Smith
CTO
BluegrassNet Voice
dCAP
Thirdlane Support by BluegrassNet Voice
eeman at bluegrassnetvoice dot com
Wed, 06/02/2010 - 09:21 | Hello You are correct in what
Hello
You are correct in what you are saying. But thats something that the operator have to tell me how they want it. I just want to know if its possible to get the B-number from the first calllet ( 10000 in this example) to be added in the diversion header of the second callleg. like this: Diversion:10000;reason=unconditional
Best regards
Jörgen Andersson
Svenska IP-Telefonibolaget AB
Wed, 06/02/2010 - 10:59 | yes, at some point in your
yes, at some point in your dialplan 10000 is the value of ${MACRO_EXTEN}
its my understanding that this feature is supposed to be used exclusively for public numbers
tel:+15021234567
as an example
Erik Smith
CTO
BluegrassNet Voice
dCAP
Thirdlane Support by BluegrassNet Voice
eeman at bluegrassnetvoice dot com
Wed, 06/09/2010 - 09:11 | Hmm when i used Diversion:
Hmm when i used Diversion: sip:${MACRO_EXTEN}@operator.domain;reason=unconditional i got Diversion: sip:s@operator.domain;reason=unconditional in the invite. Strange
Best regards
Jörgen Andersson
Svenska IP-Telefonibolaget AB
Wed, 06/09/2010 - 12:55 | that means its a script
that means its a script inside another script... you will have to trace though dialplan to see what channel variable the macro extension gets assigned to.
Erik Smith
CTO
BluegrassNet Voice
dCAP
Thirdlane Support by BluegrassNet Voice
eeman at bluegrassnetvoice dot com
Wed, 06/09/2010 - 15:26 | Hello Erik, Hmm that sounds
Hello Erik,
Hmm that sounds really hard to do, are there any scripts ready for that?
Best regards
Jörgen Andersson
Svenska IP-Telefonibolaget AB
Wed, 06/09/2010 - 15:35 | ? no there are no scripts
? no there are no scripts that read dialplan for you to return the value of your query.
Erik Smith
CTO
BluegrassNet Voice
dCAP
Thirdlane Support by BluegrassNet Voice
eeman at bluegrassnetvoice dot com
Wed, 06/09/2010 - 15:38 | Ok so I cant get the
Ok so I cant get the extension number dynamically in the diversion header?
Best regards
Jörgen Andersson
Svenska IP-Telefonibolaget AB
Wed, 06/09/2010 - 15:51 | i dont understand why the
i dont understand why the obsession with extension number and not the original callerid.. why would you ever send an internal extension number to the PSTN? they dont give a crap about extensions.. they just want to know who redirected the call to know who to bill =)
Erik Smith
CTO
BluegrassNet Voice
dCAP
Thirdlane Support by BluegrassNet Voice
eeman at bluegrassnetvoice dot com
Tue, 06/15/2010 - 13:21 | Hello The operater have some
Hello
The operater have some feature that they sell to their customers. One price for mobilephone and extension number. you can have like 1500 minutes per month and it will include both mobilephone and the extension phone.
Thats why I need the extension number in the diversion header.
Best regards
Jörgen Andersson
Svenska IP-Telefonibolaget AB
Tue, 06/15/2010 - 13:26 | well you'll need to execute
well you'll need to execute the macro tl-set-myvariables in order to get the values of ${MYEXTENSION} and ${MYID}
Erik Smith
CTO
BluegrassNet Voice
dCAP
Thirdlane Support by BluegrassNet Voice
eeman at bluegrassnetvoice dot com
Tue, 06/29/2010 - 09:21 | Hello Looks nice but i cant
Hello
Looks nice but i cant find out where to run the script to manage to get the diversion header dynamic.
Best regards
Jörgen Andersson
Svenska IP-Telefonibolaget AB
Tue, 06/29/2010 - 12:52 | as a full month has passed,
as a full month has passed, maybe you should consider buying programming time?
Erik Smith
CTO
BluegrassNet Voice
dCAP
Thirdlane Support by BluegrassNet Voice
eeman at bluegrassnetvoice dot com
Tue, 06/29/2010 - 13:00 | Sure thing, do you have
Sure thing, do you have someone that I can contact?
Best regards
Jörgen Andersson
Svenska IP-Telefonibolaget AB