Hello,

is there a possibility to get (by dialplan variable?) the entry ID of
the realtime extensions table,
that matched the current call?

For example (simplified):

ID ----- exten
-----------------------------
1        +49123456
2        _+49555.


If I receive a call on +49123456 this surely works with REALTIME_FIELD
and ${EXTEN} as matching field value.
But for ID 2 in ${EXTEN} the full dialed number is stored, so I would
never find a matching field in the database using this way.


Is there any way to get the ID field of the current channel or at
least a variable, where the unexpanded matched "exten" pattern is
stored (i.e. the "_+49555.")?
I just need something unique to find the dialed extension in the table...


Thanks!

Greetings,
 Max

Attachment: pgpYSs8pSplWt.pgp
Description: Digitale PGP-Signatur

-- 
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Join the Asterisk Community at the 13th AstriCon, September 27-29, 2016
      http://www.asterisk.org/community/astricon-user-conference

New to Asterisk? Start here:
      https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to